"use client"; import Layout from "@/components/layout/Layout"; import { Flat } from "@alptugidin/react-circular-progress-bar"; import Link from "next/link"; import CounterUpDirectly from "@/components/elements/CounterUpDirectly"; import About2 from "@/components/sections/About2"; import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; export default function Report() { const [reportData, setReportData] = useState(null); const [reportResult, setReportResult] = useState(null); const router = useRouter(); useEffect(() => { const storedData = sessionStorage.getItem("reportData"); const storedResult = sessionStorage.getItem("reportResult"); if (storedData) { try { const parsedData = JSON.parse(storedData); setReportData(parsedData); } catch (error) { console.error("Error parsing JSON from sessionStorage", error); setReportData(null); } } else { setReportData(null); router.push("/"); } if (storedResult) { try { const parsedResult = JSON.parse(storedResult); setReportResult(parsedResult); } catch (error) { console.error("Error parsing JSON from sessionStorage", error); setReportResult(null); } } else { setReportResult(null); router.push("/"); } }, []); let domainAuthority = reportResult?.domainAuthority; let spamScore = reportResult?.spamScore; let authority = reportResult?.rankingKeywords; let backlinks = reportResult?.backlinksTotal; let backlinksSuffix = ""; if (backlinks > 1000 && backlinks < 1000000) { backlinksSuffix = "K"; backlinks = backlinks / 1000; } else if (backlinks > 1000000) { backlinksSuffix = "M"; backlinks = backlinks / 1000000; } const formatCount = (value) => { if (value >= 1000000) { return (value / 1000000).toFixed(1); } else if (value >= 1000) { return (value / 1000).toFixed(1); } return value; }; backlinks = formatCount(backlinks); let overallScore; if (domainAuthority < 91) { overallScore = Math.floor(domainAuthority * 1.1); } else { overallScore = domainAuthority; } const averageScore = 74; let comparison; if (overallScore > averageScore) { comparison = "higher"; } else if (overallScore < averageScore) { comparison = "lower"; } else { comparison = "the same"; } return ( <> {reportData && reportResult && (
cosmetic cosmetic

Site Audit Result for{" "} {reportResult.websiteName}

https://{reportResult.websiteName}

{reportResult.websiteName} received an SEO score of{" "} {overallScore} out of 100, which is {comparison} than the average score of {averageScore}. Our preliminary analysis has identified{" "} {reportResult.errorIssueCount + reportResult.importantIssueCount}{" "} Crucial Issues {" "} that should be addressed in order to improve your website's search visibility.

Domain Overview Errors - {reportResult.errorIssueCount} Warnings - {reportResult.importantIssueCount} Growth Potentials

Domain Overview

Domain Authority

Backlinks

{backlinksSuffix}

Page Authority

Spam Score

%

{61 <= spamScore ? (

A domain with a bad spam score is likely flagged in multiple spam databases and may have a history of sending spammy or unwanted emails. This score indicates a high risk of being{" "} blocked or filtered by email providers, impacting email deliverability significantly. It's crucial to investigate and address the reasons behind the bad score, such as cleaning email lists, avoiding spammy practices, and improving overall domain reputation.

) : 31 <= spamScore >= 61 ? (

A domain with this spam score rate may have a moderate presence in spam databases or could occasionally send emails that some recipients may mark as spam. This score doesn't necessarily indicate malicious intent but suggests that there may be some instances where email deliverability could be affected. It's advisable to monitor and ensure best practices to maintain or improve the score over time.

) : (

A domain with a low spam score indicates that it has a minimal or negligible presence in spam databases. This suggests that the domain has a clean reputation, with little to no reported incidents of spam activity. Websites with a good score are typically trusted by email providers and less likely to be flagged as spam when sending emails.

)}
{reportResult.mostDomain.map((item, index) => ( ))}
Most Visited Pages Visibility Page Authority
{index + 1} -{" "} {item.url} {item.score < 39 ? ( ) : item.score <= 59 ? ( ) : ( )} {item.score}

Errors - {reportResult.errorIssueCount}

These are the most significant issues currently preventing your website from achieving a higher ranking in any search engine, including Google Search.

    {reportResult?.errorList.map((error) => (
  • {error}
  • ))}

Warnings - {reportResult.importantIssueCount}

These are less significant, yet still important issues that should be addressed and resolved in order to further enhance your website's Google search visibility.

    {reportResult?.warningList.map((warning) => (
  • {warning}
  • ))}

Growth Potentials

A domain with a low spam score indicates that it has a{" "} minimal or negligible presence in spam databases. This suggests that the domain has a clean reputation, with little to no reported incidents of spam activity. Websites with a good score are typically trusted by email providers and less likely to be flagged as spam when sending emails.

{reportResult?.dataPotentials.map((item, index) => ( ))}
Variables Current Metrics Potentials Outcome
{item.variable} {item.current} {item.potentials}
)} ); }