No data available.

'; return; } $max = 0; foreach ($items as $value) { $max = max($max, ai_seo_cro_number($value)); } foreach ($items as $label => $value) { $width = ai_seo_cro_percent_width($value, $max); ?>
|→)\s+/', $sample); $target = trim((string) end($parts)); if (wp_parse_url($target, PHP_URL_HOST)) { $targets[] = $target; } } return array_values(array_unique($targets)); } function ai_seo_cro_report_is_resolved_local_broken_link_issue($issue) { if ( !ai_seo_cro_report_is_broken_internal_link_issue($issue) || !function_exists('ai_seo_cro_is_local_url') || !function_exists('ai_seo_cro_validate_url') ) { return false; } $targets = ai_seo_cro_report_issue_link_targets($issue); return !empty($targets) && count(array_filter($targets, function ($target) { if (!ai_seo_cro_is_local_url($target)) { return true; } $result = ai_seo_cro_validate_url($target); return empty($result['ok']); })) === 0; } function ai_seo_cro_report_is_local_only_issue($issue) { $urls = ai_seo_cro_report_issue_urls($issue); return !empty($urls) && count(array_filter($urls, function ($url) { return !function_exists('ai_seo_cro_is_local_url') || !ai_seo_cro_is_local_url($url); })) === 0; } function ai_seo_cro_report_should_exclude_issue($issue) { $url = ai_seo_cro_report_item_url($issue); if ($url && function_exists('ai_seo_cro_is_seo_excluded_url') && ai_seo_cro_is_seo_excluded_url($url)) { return true; } return ( ai_seo_cro_report_is_https_redirect_issue($issue) && ai_seo_cro_report_is_local_only_issue($issue) && function_exists('ai_seo_cro_is_force_https_enabled') && function_exists('ai_seo_cro_has_force_https_htaccess_rules') && ai_seo_cro_is_force_https_enabled() && ai_seo_cro_has_force_https_htaccess_rules() ) || ai_seo_cro_report_is_resolved_local_broken_link_issue($issue); } function ai_seo_cro_report_item_url($item) { if (!is_array($item)) { return ''; } foreach (['url', 'pageUrl', 'page_url', 'href', 'loc', 'location'] as $key) { if (!empty($item[$key]) && wp_parse_url((string) $item[$key], PHP_URL_HOST)) { return (string) $item[$key]; } } if (isset($item['page']) && is_array($item['page'])) { return ai_seo_cro_report_item_url($item['page']); } return ''; } function ai_seo_cro_report_filter_excluded_urls($items) { return array_values(array_filter((array) $items, function ($item) { return !ai_seo_cro_report_should_exclude_issue($item); })); } function ai_seo_cro_report_filter_issue_samples($items) { $filtered = []; foreach ((array) $items as $item) { if (!is_array($item)) { $filtered[] = $item; continue; } $had_samples = false; foreach (['samples', 'sampleUrls', 'sample_urls', 'urls'] as $key) { if (!array_key_exists($key, $item)) { continue; } $had_samples = true; $samples = ai_seo_cro_as_list($item[$key]); $item[$key] = array_values(array_filter($samples, function ($url) { return !function_exists('ai_seo_cro_is_seo_excluded_url') || !ai_seo_cro_is_seo_excluded_url((string) $url); })); } $samples = ai_seo_cro_issue_samples($item); if (ai_seo_cro_report_should_exclude_issue($item)) { continue; } if ($had_samples && empty($samples)) { continue; } if ($had_samples) { foreach (['affectedPages', 'affectedCount', 'affected_count', 'count', 'pageCount', 'page_count'] as $count_key) { if (array_key_exists($count_key, $item)) { $item[$count_key] = count($samples); } } } $filtered[] = $item; } return array_values($filtered); } function ai_seo_cro_issue_edit_url($url) { if (!$url || !function_exists('url_to_postid') || !function_exists('get_edit_post_link')) { return ''; } $post_id = url_to_postid($url); if (!$post_id) { return ''; } $edit_url = get_edit_post_link($post_id, 'raw'); return $edit_url ?: ''; } function ai_seo_cro_issue_where_text($issue) { $parts = []; $url = ai_seo_cro_first_issue_url($issue); $location = ai_seo_cro_array_get($issue, ['location', 'selector'], ''); if ($url) { $parts[] = 'Page: ' . $url; } if ($location) { $parts[] = 'Location: ' . $location; } $affected_pages = ai_seo_cro_issue_affected_count($issue); if ($affected_pages !== '') { $parts[] = 'Affected pages: ' . $affected_pages; } return implode(' | ', $parts); } function ai_seo_cro_render_issue_help($issue) { $title = ai_seo_cro_array_get($issue, ['message', 'title', 'issue', 'code'], 'Issue'); $recommendation = ai_seo_cro_array_get($issue, ['recommendation', 'fix'], ''); $where = ai_seo_cro_issue_where_text($issue); $url = ai_seo_cro_first_issue_url($issue); $edit_url = ai_seo_cro_issue_edit_url($url); if (!$recommendation) { $recommendation = 'Review the affected page and update the content, markup, or setting related to this issue.'; } if (!$where) { $where = 'Fix this in the affected page content, theme template, SEO plugin setting, or linked asset that controls the reported element.'; } ?> Issue How to solve Where to fix Link Edit page | Open page Scan Report - <?php echo esc_attr($title); ?>

SEO Platform Scan Report

Scan ID:
Generated:
Status:
SEO Score
CRO Score

Page issue severity distribution

Page issue category distribution

Top Site Issues

Top CRO Issues

Detailed Page Issues

URLSeverityCategoryIssueLocationRecommendation

Weakest Pages

'Weak page performance', 'url' => $page_url, 'location' => 'Score: ' . ($p['score'] ?? '') . ' | Issue count: ' . ($p['issueCount'] ?? ''), 'recommendation' => 'Open or edit this page and fix the listed top issues first. Start with high-severity SEO/CRO problems, then rerun the scan.', ]; $weak_issue_help = [ 'title' => $top_issues ?: 'Top issues for this page', 'url' => $page_url, 'location' => 'Top issues column', 'recommendation' => $top_issues ? 'Resolve these top issues on the affected page. They are the main reasons this page appears in Weakest Pages.' : 'Review this page for SEO/CRO issues and improve the elements flagged by the scan.', ]; ?>
URLScoreIssue countTop issues

Failed Pages

$failed_messages ?: 'Page crawl failed', 'url' => $failed_url, 'location' => 'Status: ' . ($f['statusCode'] ?? $f['status'] ?? '') . ' | Depth: ' . ($f['depth'] ?? ''), 'recommendation' => 'Check that this URL loads, is not blocked by authentication, redirects correctly, and does not return an error status. Fix server, redirect, or access issues, then rerun the scan.', ]; ?>
URLStatusDepthIssue messages

Sample Pages

'Sample page details', 'url' => $sample_url, 'location' => 'Title: ' . ($s['title'] ?? '') . ' | H1: ' . ($s['h1'] ?? '') . ' | Word count: ' . ($s['wordCount'] ?? '') . ' | HTML size: ' . ($s['htmlSize'] ?? ''), 'recommendation' => 'Use this sample data to review the page title, H1, content depth, and HTML weight. Edit the page if these values look incomplete or unusually low/high.', ]; ?>
URLTitleH1Word countHTML size