seo-supervisor 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/icon.png +0 -0
- package/.claude-plugin/marketplace.json +16 -0
- package/.claude-plugin/plugin.json +27 -0
- package/CHANGELOG.md +461 -0
- package/LICENSE +25 -0
- package/NOTICE +7 -0
- package/README.md +402 -2
- package/agents/seo-auditor.md +16 -0
- package/agents/seo-reviewer.md +16 -0
- package/bin/agents.mjs +230 -0
- package/bin/extras.mjs +422 -0
- package/bin/prompt.mjs +96 -0
- package/bin/seo-supervisor.mjs +477 -0
- package/commands/seo-audit.md +33 -0
- package/commands/seo-brief.md +28 -0
- package/commands/seo-connect.md +27 -0
- package/commands/seo-fix.md +34 -0
- package/commands/seo-grow.md +26 -0
- package/commands/seo-launch.md +21 -0
- package/commands/seo-review.md +19 -0
- package/commands/seo-rewrite.md +25 -0
- package/commands/seo-setup.md +35 -0
- package/commands/seo-watch.md +28 -0
- package/hooks/hooks.json +117 -0
- package/package.json +58 -4
- package/skills/seo-supervisor/NOTICE +7 -0
- package/skills/seo-supervisor/SKILL.md +480 -0
- package/skills/seo-supervisor/audience.md +61 -0
- package/skills/seo-supervisor/examples/drafts/security.md +41 -0
- package/skills/seo-supervisor/examples/hooks/README.md +28 -0
- package/skills/seo-supervisor/examples/hooks/claude-code-settings.json +15 -0
- package/skills/seo-supervisor/examples/hooks/codex-hooks.json +17 -0
- package/skills/seo-supervisor/examples/hooks/copilot-hooks.json +15 -0
- package/skills/seo-supervisor/examples/hooks/cursor-hooks.json +11 -0
- package/skills/seo-supervisor/examples/hooks/github-actions.yml +21 -0
- package/skills/seo-supervisor/examples/hooks/pre-commit +17 -0
- package/skills/seo-supervisor/examples/hooks/reading-ease.yml +24 -0
- package/skills/seo-supervisor/examples/sample-audit.json +532 -0
- package/skills/seo-supervisor/examples/sample-report.html +704 -0
- package/skills/seo-supervisor/examples/sample-report.md +360 -0
- package/skills/seo-supervisor/examples/scheduled-runs.md +89 -0
- package/skills/seo-supervisor/examples/security-tools-profile.md +73 -0
- package/skills/seo-supervisor/examples/snippets.md +781 -0
- package/skills/seo-supervisor/frameworks/nextjs.md +98 -0
- package/skills/seo-supervisor/frameworks/rails.md +34 -0
- package/skills/seo-supervisor/frameworks/spa.md +14 -0
- package/skills/seo-supervisor/grow.md +342 -0
- package/skills/seo-supervisor/og-images.md +85 -0
- package/skills/seo-supervisor/page-types.md +124 -0
- package/skills/seo-supervisor/planning.md +157 -0
- package/skills/seo-supervisor/profile-template.md +96 -0
- package/skills/seo-supervisor/report-format.md +313 -0
- package/skills/seo-supervisor/rewrite.md +59 -0
- package/skills/seo-supervisor/rules/ai-search.md +93 -0
- package/skills/seo-supervisor/rules/content.md +84 -0
- package/skills/seo-supervisor/rules/crawl-index.md +92 -0
- package/skills/seo-supervisor/rules/internal-linking.md +104 -0
- package/skills/seo-supervisor/rules/launch-monitoring.md +57 -0
- package/skills/seo-supervisor/rules/media.md +42 -0
- package/skills/seo-supervisor/rules/metadata.md +71 -0
- package/skills/seo-supervisor/rules/performance.md +78 -0
- package/skills/seo-supervisor/rules/rendering.md +79 -0
- package/skills/seo-supervisor/rules/search-intent.md +32 -0
- package/skills/seo-supervisor/rules/sitemaps-robots.md +49 -0
- package/skills/seo-supervisor/rules/structured-data.md +98 -0
- package/skills/seo-supervisor/rules/trust-security.md +48 -0
- package/skills/seo-supervisor/rules/urls.md +54 -0
- package/skills/seo-supervisor/scripts/ai-answers.mjs +314 -0
- package/skills/seo-supervisor/scripts/backlinks.mjs +412 -0
- package/skills/seo-supervisor/scripts/change-check.mjs +281 -0
- package/skills/seo-supervisor/scripts/checks/agents.mjs +488 -0
- package/skills/seo-supervisor/scripts/checks/assets.mjs +404 -0
- package/skills/seo-supervisor/scripts/checks/bots.mjs +146 -0
- package/skills/seo-supervisor/scripts/checks/business-type.mjs +193 -0
- package/skills/seo-supervisor/scripts/checks/content.mjs +391 -0
- package/skills/seo-supervisor/scripts/checks/coverage.mjs +184 -0
- package/skills/seo-supervisor/scripts/checks/crawl.mjs +95 -0
- package/skills/seo-supervisor/scripts/checks/hreflang.mjs +396 -0
- package/skills/seo-supervisor/scripts/checks/hygiene.mjs +227 -0
- package/skills/seo-supervisor/scripts/checks/lighthouse.mjs +271 -0
- package/skills/seo-supervisor/scripts/checks/link-strength.mjs +59 -0
- package/skills/seo-supervisor/scripts/checks/links.mjs +360 -0
- package/skills/seo-supervisor/scripts/checks/local.mjs +101 -0
- package/skills/seo-supervisor/scripts/checks/media.mjs +194 -0
- package/skills/seo-supervisor/scripts/checks/outbound.mjs +53 -0
- package/skills/seo-supervisor/scripts/checks/page.mjs +223 -0
- package/skills/seo-supervisor/scripts/checks/probes.mjs +130 -0
- package/skills/seo-supervisor/scripts/checks/render.mjs +552 -0
- package/skills/seo-supervisor/scripts/checks/robots.mjs +144 -0
- package/skills/seo-supervisor/scripts/checks/schema.mjs +206 -0
- package/skills/seo-supervisor/scripts/checks/site-agents.mjs +79 -0
- package/skills/seo-supervisor/scripts/checks/site-content.mjs +135 -0
- package/skills/seo-supervisor/scripts/checks/site-hygiene.mjs +202 -0
- package/skills/seo-supervisor/scripts/checks/site-pages.mjs +474 -0
- package/skills/seo-supervisor/scripts/checks/site-security.mjs +102 -0
- package/skills/seo-supervisor/scripts/checks/sitemap.mjs +473 -0
- package/skills/seo-supervisor/scripts/checks/speed.mjs +267 -0
- package/skills/seo-supervisor/scripts/checks/technical.mjs +368 -0
- package/skills/seo-supervisor/scripts/checks/tls.mjs +297 -0
- package/skills/seo-supervisor/scripts/checks/trust.mjs +421 -0
- package/skills/seo-supervisor/scripts/checks/visual.mjs +1132 -0
- package/skills/seo-supervisor/scripts/checks/writing.mjs +192 -0
- package/skills/seo-supervisor/scripts/commoncrawl.mjs +452 -0
- package/skills/seo-supervisor/scripts/connect-keys.mjs +422 -0
- package/skills/seo-supervisor/scripts/content-scan.mjs +530 -0
- package/skills/seo-supervisor/scripts/crawl/catalog.mjs +1248 -0
- package/skills/seo-supervisor/scripts/crawl/fetch.mjs +362 -0
- package/skills/seo-supervisor/scripts/crawl/page.mjs +741 -0
- package/skills/seo-supervisor/scripts/crawl/queue.mjs +190 -0
- package/skills/seo-supervisor/scripts/dashboard.mjs +140 -0
- package/skills/seo-supervisor/scripts/data/ai-bots.json +38 -0
- package/skills/seo-supervisor/scripts/data/build-schema-vocab.mjs +57 -0
- package/skills/seo-supervisor/scripts/data/business-types.json +338 -0
- package/skills/seo-supervisor/scripts/data/google-rich-results.json +79 -0
- package/skills/seo-supervisor/scripts/data/schema-vocab.json +1 -0
- package/skills/seo-supervisor/scripts/deploy-check.mjs +462 -0
- package/skills/seo-supervisor/scripts/disavow.mjs +176 -0
- package/skills/seo-supervisor/scripts/doctor.mjs +174 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-BricolageGrotesque.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-Geist.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-GeistMono.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/bricolage-grotesque.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist-mono.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist.woff2 +0 -0
- package/skills/seo-supervisor/scripts/geo-grid.mjs +371 -0
- package/skills/seo-supervisor/scripts/google/search-console.mjs +151 -0
- package/skills/seo-supervisor/scripts/google/session.mjs +167 -0
- package/skills/seo-supervisor/scripts/google-updates.mjs +189 -0
- package/skills/seo-supervisor/scripts/google.mjs +1341 -0
- package/skills/seo-supervisor/scripts/gsc-import.mjs +298 -0
- package/skills/seo-supervisor/scripts/guard/adapters/claude-code.mjs +149 -0
- package/skills/seo-supervisor/scripts/guard/adapters/cline.mjs +28 -0
- package/skills/seo-supervisor/scripts/guard/adapters/codex.mjs +26 -0
- package/skills/seo-supervisor/scripts/guard/adapters/copilot.mjs +36 -0
- package/skills/seo-supervisor/scripts/guard/adapters/cursor.mjs +33 -0
- package/skills/seo-supervisor/scripts/guard/adapters/devin.mjs +25 -0
- package/skills/seo-supervisor/scripts/guard/adapters/edits.mjs +124 -0
- package/skills/seo-supervisor/scripts/guard/mode.mjs +37 -0
- package/skills/seo-supervisor/scripts/guard/rules.mjs +931 -0
- package/skills/seo-supervisor/scripts/guard.mjs +74 -0
- package/skills/seo-supervisor/scripts/images.mjs +408 -0
- package/skills/seo-supervisor/scripts/indexnow.mjs +300 -0
- package/skills/seo-supervisor/scripts/issues.mjs +217 -0
- package/skills/seo-supervisor/scripts/keys/authority.mjs +135 -0
- package/skills/seo-supervisor/scripts/keys/bing.mjs +239 -0
- package/skills/seo-supervisor/scripts/keys/clarity.mjs +137 -0
- package/skills/seo-supervisor/scripts/keys/dataforseo.mjs +57 -0
- package/skills/seo-supervisor/scripts/keys/googleplaces.mjs +26 -0
- package/skills/seo-supervisor/scripts/keys/http.mjs +212 -0
- package/skills/seo-supervisor/scripts/keys/matomo.mjs +138 -0
- package/skills/seo-supervisor/scripts/keys/openai.mjs +26 -0
- package/skills/seo-supervisor/scripts/keys/perplexity.mjs +26 -0
- package/skills/seo-supervisor/scripts/keys/posthog.mjs +165 -0
- package/skills/seo-supervisor/scripts/keys/semrush.mjs +25 -0
- package/skills/seo-supervisor/scripts/keys/services.mjs +41 -0
- package/skills/seo-supervisor/scripts/keys/store.mjs +140 -0
- package/skills/seo-supervisor/scripts/keys/visits.mjs +58 -0
- package/skills/seo-supervisor/scripts/keys/youtube.mjs +84 -0
- package/skills/seo-supervisor/scripts/keyword-data.mjs +316 -0
- package/skills/seo-supervisor/scripts/keyword-ideas.mjs +503 -0
- package/skills/seo-supervisor/scripts/lib/args.mjs +56 -0
- package/skills/seo-supervisor/scripts/lib/business.mjs +27 -0
- package/skills/seo-supervisor/scripts/lib/cdp.mjs +242 -0
- package/skills/seo-supervisor/scripts/lib/cli.mjs +56 -0
- package/skills/seo-supervisor/scripts/lib/csv.mjs +38 -0
- package/skills/seo-supervisor/scripts/lib/findings.mjs +100 -0
- package/skills/seo-supervisor/scripts/lib/google-client.mjs +9 -0
- package/skills/seo-supervisor/scripts/lib/html.mjs +146 -0
- package/skills/seo-supervisor/scripts/lib/http.mjs +28 -0
- package/skills/seo-supervisor/scripts/lib/image-size.mjs +78 -0
- package/skills/seo-supervisor/scripts/lib/is-main.mjs +13 -0
- package/skills/seo-supervisor/scripts/lib/net.mjs +116 -0
- package/skills/seo-supervisor/scripts/lib/proxy.mjs +47 -0
- package/skills/seo-supervisor/scripts/lib/recheck.mjs +106 -0
- package/skills/seo-supervisor/scripts/lib/redact.mjs +78 -0
- package/skills/seo-supervisor/scripts/lib/robots.mjs +73 -0
- package/skills/seo-supervisor/scripts/lib/score.mjs +266 -0
- package/skills/seo-supervisor/scripts/lib/settings-dir.mjs +81 -0
- package/skills/seo-supervisor/scripts/links-import.mjs +603 -0
- package/skills/seo-supervisor/scripts/log-scan.mjs +597 -0
- package/skills/seo-supervisor/scripts/og-card.mjs +273 -0
- package/skills/seo-supervisor/scripts/osm.mjs +359 -0
- package/skills/seo-supervisor/scripts/rdap.mjs +164 -0
- package/skills/seo-supervisor/scripts/render-report.mjs +340 -0
- package/skills/seo-supervisor/scripts/report/client.js +37 -0
- package/skills/seo-supervisor/scripts/report/diff.mjs +264 -0
- package/skills/seo-supervisor/scripts/report/findings.mjs +165 -0
- package/skills/seo-supervisor/scripts/report/format.mjs +111 -0
- package/skills/seo-supervisor/scripts/report/markdown.mjs +250 -0
- package/skills/seo-supervisor/scripts/report/model.mjs +171 -0
- package/skills/seo-supervisor/scripts/report/overview-lines.mjs +158 -0
- package/skills/seo-supervisor/scripts/report/overview.mjs +224 -0
- package/skills/seo-supervisor/scripts/report/page.mjs +127 -0
- package/skills/seo-supervisor/scripts/report/panel.mjs +172 -0
- package/skills/seo-supervisor/scripts/report/panels/ai.mjs +211 -0
- package/skills/seo-supervisor/scripts/report/panels/connections.mjs +139 -0
- package/skills/seo-supervisor/scripts/report/panels/content.mjs +204 -0
- package/skills/seo-supervisor/scripts/report/panels/data-search.mjs +379 -0
- package/skills/seo-supervisor/scripts/report/panels/data-site.mjs +44 -0
- package/skills/seo-supervisor/scripts/report/panels/links.mjs +380 -0
- package/skills/seo-supervisor/scripts/report/panels/local.mjs +221 -0
- package/skills/seo-supervisor/scripts/report/panels/site.mjs +359 -0
- package/skills/seo-supervisor/scripts/report/panels/speed-media.mjs +267 -0
- package/skills/seo-supervisor/scripts/report/sources.mjs +163 -0
- package/skills/seo-supervisor/scripts/report/styles.css +223 -0
- package/skills/seo-supervisor/scripts/report/traffic.mjs +264 -0
- package/skills/seo-supervisor/scripts/report-plan.mjs +241 -0
- package/skills/seo-supervisor/scripts/schema-check.mjs +717 -0
- package/skills/seo-supervisor/scripts/seo-crawl.mjs +1151 -0
- package/skills/seo-supervisor/scripts/seo-diff.mjs +584 -0
- package/skills/seo-supervisor/scripts/update-check.mjs +82 -0
- package/skills/seo-supervisor/site-types/content.md +55 -0
- package/skills/seo-supervisor/site-types/ecommerce.md +64 -0
- package/skills/seo-supervisor/site-types/local-business.md +118 -0
- package/skills/seo-supervisor/site-types/services.md +68 -0
- package/skills/seo-supervisor/site-types/tools.md +127 -0
- package/skills/seo-supervisor/strategy.md +232 -0
- package/skills/seo-supervisor/troubleshooting.md +56 -0
|
@@ -0,0 +1,1248 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
// Every rule and check, with each check module's CHECKS merged in. Later merges win, so keep their order.
|
|
3
|
+
// lib/score.mjs knownChecks() scans this file's text for check keys, so keep one entry per line.
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
5
|
+
import { CHECKS as HREFLANG_CHECKS } from "../checks/hreflang.mjs";
|
|
6
|
+
import { CHECKS as TLS_CHECKS } from "../checks/tls.mjs";
|
|
7
|
+
import { CHECKS as SPEED_CHECKS } from "../checks/speed.mjs";
|
|
8
|
+
import { CHECKS as RENDER_CHECKS } from "../checks/render.mjs";
|
|
9
|
+
import { CHECKS as VISUAL_CHECKS, MORE_CHECKS as RENDER_MORE_CHECKS } from "../checks/visual.mjs";
|
|
10
|
+
import { CHECKS as AGENT_CHECKS } from "../checks/agents.mjs";
|
|
11
|
+
import { CHECKS as BUSINESS_CHECKS } from "../checks/business-type.mjs";
|
|
12
|
+
import { CHECKS as TECH_CHECKS, SERVER_CHECK } from "../checks/technical.mjs";
|
|
13
|
+
import { CHECKS as OUTBOUND_CHECKS } from "../checks/outbound.mjs";
|
|
14
|
+
import { CHECKS as MEDIA_CHECKS } from "../checks/media.mjs";
|
|
15
|
+
import { CHECKS as CONTENT_CHECKS } from "../checks/content.mjs";
|
|
16
|
+
import { CHECKS as PAGE_CHECKS } from "../checks/page.mjs";
|
|
17
|
+
import { CHECKS as CRAWL_CHECKS } from "../checks/crawl.mjs";
|
|
18
|
+
import { CHECKS as HYGIENE_CHECKS } from "../checks/hygiene.mjs";
|
|
19
|
+
|
|
20
|
+
// Old check ids -> current ones, so settings.json lists and findings filed before a rename (won't-fix ones too) keep
|
|
21
|
+
// working. A split check maps to all its new ids, and a setting for the old id applies to each.
|
|
22
|
+
/** @type {Record<string, string | string[]>} */
|
|
23
|
+
export const ID_ALIASES = {
|
|
24
|
+
// Not renames: short ids that settings.json files may still use.
|
|
25
|
+
"image-missing": "product-image-missing",
|
|
26
|
+
"adult-unlabelled": "product-adult-unlabelled",
|
|
27
|
+
// Split because Google treats a missing H1 and several H1s differently.
|
|
28
|
+
"h1-count": ["h1-missing", "h1-multiple"],
|
|
29
|
+
};
|
|
30
|
+
/** Follows ID_ALIASES through chained renames and splits; an id with no alias comes back alone. */
|
|
31
|
+
export function currentIds(id, seen = new Set()) {
|
|
32
|
+
if (!Object.hasOwn(ID_ALIASES, id) || seen.has(id)) return [id];
|
|
33
|
+
seen.add(id);
|
|
34
|
+
return [...new Set([ID_ALIASES[id]].flat().flatMap(n => currentIds(n, seen)))];
|
|
35
|
+
}
|
|
36
|
+
export const currentId = id => currentIds(id)[0];
|
|
37
|
+
|
|
38
|
+
export const RULES = {
|
|
39
|
+
"CRAWL-01": ["robots.txt lets search engines crawl the site", "Crawling & indexing"],
|
|
40
|
+
"CRAWL-02": ["Pages meant to rank are not set to noindex", "Crawling & indexing"],
|
|
41
|
+
"CRAWL-05": ["Correct status codes, and no soft 404s", "Crawling & indexing"],
|
|
42
|
+
"CRAWL-06": ["Sitemap URLs return 200", "Crawling & indexing"],
|
|
43
|
+
"CRAWL-07": ["No internal links to broken pages", "Crawling & indexing"],
|
|
44
|
+
"CRAWL-08": ["Redirects take one hop, and internal links skip them", "Crawling & indexing"],
|
|
45
|
+
"CRAWL-09": ["Bot protection doesn't block real search crawlers", "Crawling & indexing"],
|
|
46
|
+
"URL-01": ["One clean URL pattern per content type", "URLs & canonicals"],
|
|
47
|
+
"URL-02": ["One trailing-slash style, with the other variant redirecting", "URLs & canonicals"],
|
|
48
|
+
"URL-04": ["Every indexable page has a self-referencing, absolute canonical", "URLs & canonicals"],
|
|
49
|
+
"URL-05": ["Breadcrumbs are visible, match their schema, and every level is a real page", "URLs & canonicals"],
|
|
50
|
+
"URL-07": ["Renames redirect automatically", "URLs & canonicals"],
|
|
51
|
+
"REND-01": ["Content is in the server HTML, not only in JavaScript", "Rendering"],
|
|
52
|
+
"REND-04": ["Navigation uses real `<a href>` links", "Rendering"],
|
|
53
|
+
"CONTENT-09": ["No placeholder, test or broken text on live pages", "Headings & content"],
|
|
54
|
+
"CONTENT-10": ["Every claim is true and sourced", "Headings & content"],
|
|
55
|
+
"META-01": ["Every indexable page has a unique title of a sensible length", "Metadata"],
|
|
56
|
+
"META-02": ["Every indexable page has a unique meta description of 120–160 characters", "Metadata"],
|
|
57
|
+
"META-03": ["All metadata comes from one helper", "Metadata"],
|
|
58
|
+
"META-04": ["Open Graph and Twitter tags on every page; key pages get their own image", "Metadata"],
|
|
59
|
+
"META-05": ["The page language is declared", "Metadata"],
|
|
60
|
+
"META-09": ["Each title matches what its page is about", "Metadata"],
|
|
61
|
+
"META-10": ["The site has a favicon search results can show", "Metadata"],
|
|
62
|
+
"CONTENT-01": ["Exactly one H1 per page", "Headings & content"],
|
|
63
|
+
"CONTENT-02": ["Heading levels are never skipped", "Headings & content"],
|
|
64
|
+
"CONTENT-04": ["Templated pages have unique content", "Headings & content"],
|
|
65
|
+
"CONTENT-05": ["Indexable pages have substance", "Headings & content"],
|
|
66
|
+
"CONTENT-08": ["Images have alt text", "Headings & content"],
|
|
67
|
+
"SCHEMA-01": ["JSON-LD parses and comes from data", "Structured data"],
|
|
68
|
+
"SHOP-05": ["Product schema from live data", "Structured data"],
|
|
69
|
+
"SCHEMA-02": [
|
|
70
|
+
"Organization (or the right business subtype) and WebSite, once, with stable `@id`s",
|
|
71
|
+
"Structured data",
|
|
72
|
+
],
|
|
73
|
+
"SCHEMA-03": ["Each page type carries the schema the profile assigns", "Structured data"],
|
|
74
|
+
"SCHEMA-04": ["Schema matches what the page visibly shows", "Structured data"],
|
|
75
|
+
"SCHEMA-05": ["No schema kept for rich results that no longer exist", "Structured data"],
|
|
76
|
+
"SCHEMA-07": ["BreadcrumbList on every page below the home page", "Structured data"],
|
|
77
|
+
"LOCAL-05": ["NAP is identical everywhere", "Local business"],
|
|
78
|
+
"MAP-01": ["An XML sitemap exists and robots.txt references it", "Sitemaps & robots"],
|
|
79
|
+
"MAP-02": ["The sitemap lists only canonical, indexable URLs on the production host", "Sitemaps & robots"],
|
|
80
|
+
"MAP-03": ["Every indexable page is in the sitemap", "Sitemaps & robots"],
|
|
81
|
+
"MAP-04": ["lastmod dates are real", "Sitemaps & robots"],
|
|
82
|
+
"MAP-05": ["robots.txt blocks only junk, and never CSS or JS", "Sitemaps & robots"],
|
|
83
|
+
"MAP-06": ["The AI crawler policy is a deliberate, written decision", "Sitemaps & robots"],
|
|
84
|
+
"MAP-07": ["/llms.txt is published", "Sitemaps & robots"],
|
|
85
|
+
"LINK-01": ["Hubs exist, and every page is within three clicks of home", "Internal linking"],
|
|
86
|
+
"LINK-02": ["No orphan pages", "Internal linking"],
|
|
87
|
+
"LINK-05": ["Anchor text says what the target is", "Internal linking"],
|
|
88
|
+
"LINK-06": ["Link blocks stay focused", "Internal linking"],
|
|
89
|
+
"PERF-01": ["Core Web Vitals pass on mobile", "Performance"],
|
|
90
|
+
"PERF-03": ["The LCP element loads first", "Performance"],
|
|
91
|
+
"PERF-04": ["Layout doesn't jump", "Performance"],
|
|
92
|
+
"PERF-09": ["The next page starts loading before the click (speculation rules)", "Performance"],
|
|
93
|
+
"PERF-10": ["Back and Forward are instant (back/forward cache)", "Performance"],
|
|
94
|
+
"PERF-06": ["Documents and third parties stay light", "Performance"],
|
|
95
|
+
"TRUST-01": ["HTTPS with security headers", "Trust & security"],
|
|
96
|
+
"TRUST-02": ["/.well-known/security.txt is published", "Trust & security"],
|
|
97
|
+
"TRUST-07": ["The HTTPS certificate is trusted, covers every host and renews in time", "Trust & security"],
|
|
98
|
+
"URL-03": ["One host, HTTPS only", "URLs & canonicals"],
|
|
99
|
+
"AI-01": ["Key pages are eligible to be used in AI answers", "AI search"],
|
|
100
|
+
"AI-03": ["Bing/Copilot preferences use the new directives", "AI search"],
|
|
101
|
+
"AI-05": ["Pages work for AI agents that browse", "AI search"],
|
|
102
|
+
"REND-06": ["JavaScript doesn't fight the HTML", "Rendering"],
|
|
103
|
+
"REND-07": ["Mobile shows the same content as desktop", "Rendering"],
|
|
104
|
+
"PERF-07": ["Popups don't block content or crawlers", "Performance"],
|
|
105
|
+
"REND-08": ["HTML stays under Googlebot's 2 MB limit", "Rendering"],
|
|
106
|
+
"META-08": ["hreflang only when there are real language or region versions", "Metadata"],
|
|
107
|
+
"REND-09": ["Pages declare a doctype, a charset and a mobile viewport", "Rendering"],
|
|
108
|
+
"REND-10": ["No obsolete HTML tags", "Rendering"],
|
|
109
|
+
"META-06": ["Robots meta depends on page type, using the object form", "Metadata"],
|
|
110
|
+
"MEDIA-03": ["Each page signals its preferred thumbnail", "Media"],
|
|
111
|
+
"PERF-08": ["Images are a sensible weight and in a modern format", "Performance"],
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// Types whose Google rich result is retired. One marked keep (FAQPage) is never flagged, but its note still shows.
|
|
115
|
+
const GONE = JSON.parse(readFileSync(new URL("../data/google-rich-results.json", import.meta.url), "utf8")).retired;
|
|
116
|
+
export const RETIRED = GONE.filter(r => !r.keep),
|
|
117
|
+
KEPT = GONE.filter(r => r.keep && r.note);
|
|
118
|
+
|
|
119
|
+
// key -> [rule, severity, title(n), why, fix]
|
|
120
|
+
export const CHECKS = {
|
|
121
|
+
"robots-blocks-all": [
|
|
122
|
+
"CRAWL-01",
|
|
123
|
+
"blocker",
|
|
124
|
+
() => "robots.txt blocks the whole site",
|
|
125
|
+
"The group Googlebot obeys says `Disallow: /`: its own `User-agent: Googlebot` group, or `User-agent: *` when it has none (Google reads only the most specific group that names it, and never combines the two). Google can't crawl any page, so nothing new gets indexed and existing pages decay.",
|
|
126
|
+
"Allow crawling in production (`Allow: /`). Keep staging out of Google with a noindex header and a password instead.",
|
|
127
|
+
],
|
|
128
|
+
"robots-server-error": [
|
|
129
|
+
"CRAWL-01",
|
|
130
|
+
"high",
|
|
131
|
+
() => "robots.txt answers with a server error, so Google stops crawling",
|
|
132
|
+
"When robots.txt fails with a 5xx or 429 status, or doesn't answer, Google stops crawling the whole site for the first 12 hours while it retries. After that it uses the last copy it read, for up to 30 days, so rule changes go unseen; if the rest of the site is unreachable too, crawling stops altogether. Only a 404 means “no rules”.",
|
|
133
|
+
"Make `/robots.txt` return 200 with its rules, or 404 if there are none. Check that the server, CDN or framework route that builds it isn't failing, timing out or rate-limiting crawlers.",
|
|
134
|
+
],
|
|
135
|
+
"sitemap-url-disallowed": [
|
|
136
|
+
"CRAWL-01",
|
|
137
|
+
"high",
|
|
138
|
+
n => `${n} sitemap URL(s) are blocked by robots.txt`,
|
|
139
|
+
"The sitemap asks Google to index these URLs while robots.txt forbids crawling them. Google gets contradictory signals and may index them without content.",
|
|
140
|
+
"Either remove the Disallow rule for these paths or remove the URLs from the sitemap.",
|
|
141
|
+
],
|
|
142
|
+
"home-noindex": [
|
|
143
|
+
"CRAWL-02",
|
|
144
|
+
"blocker",
|
|
145
|
+
() => "The home page is set to noindex",
|
|
146
|
+
"A noindex home page usually means a staging or launch setting leaked into production. The whole site can drop out of search.",
|
|
147
|
+
"Remove the noindex (meta robots or X-Robots-Tag) in production. Drive it from one environment variable.",
|
|
148
|
+
],
|
|
149
|
+
"noindex-in-sitemap": [
|
|
150
|
+
"CRAWL-02",
|
|
151
|
+
"high",
|
|
152
|
+
n => `${n} sitemap URL(s) are set to noindex`,
|
|
153
|
+
"The sitemap says “index this” and the page says “don't”. Either the page should rank and the noindex is a bug, or it shouldn't be in the sitemap.",
|
|
154
|
+
"Decide per page type. Remove noindex from pages meant to rank, or drop noindex pages from the sitemap.",
|
|
155
|
+
],
|
|
156
|
+
"noindex-review": [
|
|
157
|
+
"CRAWL-02",
|
|
158
|
+
"low",
|
|
159
|
+
n => `${n} crawled page(s) are noindex`,
|
|
160
|
+
"Noindex is right for search, filter, account and result pages, and wrong anywhere you want traffic.",
|
|
161
|
+
"Check each against the project's SEO profile. Keep noindex only on page types meant to stay hidden.",
|
|
162
|
+
],
|
|
163
|
+
"soft-404": [
|
|
164
|
+
"CRAWL-05",
|
|
165
|
+
"high",
|
|
166
|
+
() => "Unknown URLs don't return 404 (soft 404)",
|
|
167
|
+
"A made-up URL returned a page instead of a 404 status. Google wastes crawls on these and may index junk URLs.",
|
|
168
|
+
"Return a real 404 status for unknown paths (and 410 for removed content). Don't redirect unknown URLs to the home page.",
|
|
169
|
+
],
|
|
170
|
+
"server-error": [
|
|
171
|
+
"CRAWL-05",
|
|
172
|
+
"high",
|
|
173
|
+
n => `${n} URL(s) returned a server error (5xx)`,
|
|
174
|
+
"Repeated 5xx responses make Google crawl less and drop pages from the index.",
|
|
175
|
+
"Find the failing route in the server logs and fix it. A page must not fail because a slow API is down.",
|
|
176
|
+
],
|
|
177
|
+
"sitemap-bad-status": [
|
|
178
|
+
"CRAWL-06",
|
|
179
|
+
"high",
|
|
180
|
+
n => `${n} sitemap URL(s) don't return 200`,
|
|
181
|
+
"Sitemaps should only list final, working URLs. Redirects and errors in the sitemap waste crawl budget and lower trust in the sitemap.",
|
|
182
|
+
"Generate the sitemap from the same live data the pages use, and list only the final URL of each page.",
|
|
183
|
+
],
|
|
184
|
+
"broken-internal-link": [
|
|
185
|
+
"CRAWL-07",
|
|
186
|
+
"high",
|
|
187
|
+
n => `${n} internal link target(s) are broken (4xx/5xx)`,
|
|
188
|
+
"Every broken link is a dead end for visitors and crawlers and wastes the authority passed through it.",
|
|
189
|
+
"Fix or remove each link. Filter generated links (related, next, breadcrumbs) through the set of live pages.",
|
|
190
|
+
],
|
|
191
|
+
"redirect-chain": [
|
|
192
|
+
"CRAWL-08",
|
|
193
|
+
"medium",
|
|
194
|
+
n => `${n} URL(s) redirect through more than one hop`,
|
|
195
|
+
"Each extra hop slows crawling and loses a little signal. Chains also often end somewhere unintended.",
|
|
196
|
+
"Point each old URL straight at its final destination in one 301/308.",
|
|
197
|
+
],
|
|
198
|
+
"link-to-redirect": [
|
|
199
|
+
"CRAWL-08",
|
|
200
|
+
"low",
|
|
201
|
+
n => `${n} internal link target(s) point at a redirect`,
|
|
202
|
+
"Linking to a redirecting URL costs a hop on every click and crawl.",
|
|
203
|
+
"Update the links to the final URL (often a missing or extra trailing slash).",
|
|
204
|
+
],
|
|
205
|
+
"googlebot-blocked": [
|
|
206
|
+
"CRAWL-09",
|
|
207
|
+
"high",
|
|
208
|
+
n => `${n} page(s) give Googlebot an error or a noindex that visitors don't get`,
|
|
209
|
+
"Asked with Googlebot's user agent, these pages returned an error or a noindex, while the same request as a visitor got the page. A bot blocker, a firewall rule or a failing prerender service for bots usually does this, and Google drops such pages. A real Googlebot comes from Google's IP addresses, so a firewall that checks IPs can treat it differently than this test shows: some block anything that claims to be Googlebot from other addresses, which is right.",
|
|
210
|
+
"Check the CDN, firewall and bot-protection settings and any prerender service for rules on Googlebot, and let verified Googlebot through. Then run the live test in Search Console's URL Inspection, which uses the real Googlebot.",
|
|
211
|
+
],
|
|
212
|
+
"googlebot-differs": [
|
|
213
|
+
"CRAWL-09",
|
|
214
|
+
"medium",
|
|
215
|
+
n => `${n} page(s) show Googlebot something different from what visitors get`,
|
|
216
|
+
"Asked with Googlebot's user agent, these pages redirected elsewhere or gave a different canonical, title or much less text than a visitor gets. A prerender service serving stale or broken pages, or code that switches content for bots, does this; showing search engines something other than what visitors see is cloaking under Google's spam policies. A real Googlebot comes from Google's IP addresses, so a firewall that checks IPs can treat it differently than this test shows.",
|
|
217
|
+
"Serve Googlebot the same HTML as visitors: fix or remove the prerender service or bot-specific code, and render pages on the server for everyone. Confirm with the live test in Search Console's URL Inspection.",
|
|
218
|
+
],
|
|
219
|
+
"googlebot-firewall": [
|
|
220
|
+
"CRAWL-09",
|
|
221
|
+
"needs-decision",
|
|
222
|
+
n => `${n} page(s) turn away requests that claim to be Googlebot`,
|
|
223
|
+
"Asked with Googlebot's user agent, these pages answered 403, 429 or 503 or showed a bot challenge, while the same request as a visitor got the page. A firewall that verifies Google by IP does exactly this, and it's right to: a request that claims to be Googlebot from an address that isn't Google's is a fake, and Cloudflare's fake-Googlebot rule, Wordfence and Sucuri block them. A firewall that goes by the user agent alone blocks the real Googlebot too, and pages then drop out of search. This test runs from this machine, not Google's addresses, so it can't tell the two apart.",
|
|
224
|
+
"Run the live test in Search Console's URL Inspection on one of these pages; it uses the real Googlebot. If it gets the page, the firewall is verifying Google by IP and nothing needs to change. If it doesn't, let verified Googlebot through in the CDN, firewall or bot-protection settings (by Google's IP ranges or the CDN's verified-bots list, not by user agent).",
|
|
225
|
+
],
|
|
226
|
+
"link-http": [
|
|
227
|
+
"CRAWL-08",
|
|
228
|
+
"medium",
|
|
229
|
+
n => `${n} page(s) link to the site's own pages over http://`,
|
|
230
|
+
"The site runs on HTTPS, so every http:// link to it goes through a redirect on each click and crawl before the page loads, and points search engines at an address that isn't the real one.",
|
|
231
|
+
"Use https:// or a relative path (such as `/pricing/`) in every internal link. Hard-coded http:// links usually sit in old content, menus or a base-URL setting.",
|
|
232
|
+
],
|
|
233
|
+
"url-format": [
|
|
234
|
+
"URL-01",
|
|
235
|
+
"low",
|
|
236
|
+
n => `${n} URL(s) have uppercase letters, underscores, spaces or double slashes`,
|
|
237
|
+
"Mixed-case and underscored URLs are easy to duplicate and hard to share.",
|
|
238
|
+
"Use lowercase words joined by hyphens. Redirect old variants once.",
|
|
239
|
+
],
|
|
240
|
+
"trailing-slash-mixed": [
|
|
241
|
+
"URL-02",
|
|
242
|
+
"high",
|
|
243
|
+
n => `${n} page(s) break the site's trailing-slash style`,
|
|
244
|
+
"`/page` and `/page/` are different URLs to search engines. Mixing them splits ranking signals.",
|
|
245
|
+
"Pick one style (record it in the SEO profile), configure the framework to redirect the other, and use it in every link, canonical, sitemap entry and schema URL.",
|
|
246
|
+
],
|
|
247
|
+
"slash-variant-no-redirect": [
|
|
248
|
+
"URL-02",
|
|
249
|
+
"high",
|
|
250
|
+
n => `${n} page(s) answer 200 on both the slash and no-slash URL`,
|
|
251
|
+
"Both versions return the page, so every page exists twice.",
|
|
252
|
+
"Redirect the non-preferred variant with a 301/308 (in Next.js: `trailingSlash`).",
|
|
253
|
+
],
|
|
254
|
+
"slash-redirect-temporary": [
|
|
255
|
+
"URL-02",
|
|
256
|
+
"medium",
|
|
257
|
+
n => `${n} page(s) redirect the other trailing-slash form temporarily (302, 303 or 307)`,
|
|
258
|
+
"A temporary redirect tells search engines the other form may come back, so they can keep both URLs and split the page's signals between them.",
|
|
259
|
+
"Make the trailing-slash redirect permanent (301 or 308) in the framework or server config. Hand-written redirects are the usual cause: `res.redirect()` in Express and `redirect_to` in Rails send a 302 unless told otherwise.",
|
|
260
|
+
],
|
|
261
|
+
"canonical-missing": [
|
|
262
|
+
"URL-04",
|
|
263
|
+
"high",
|
|
264
|
+
n => `${n} indexable page(s) have no canonical tag`,
|
|
265
|
+
"Without a canonical, Google picks one itself among parameter, slash and tracking variants. A canonical in the `<body>`, or after an element that ended the head early, doesn't count: Google accepts it only in the `<head>`.",
|
|
266
|
+
"Add a self-referencing absolute canonical to every indexable page through the shared metadata helper.",
|
|
267
|
+
],
|
|
268
|
+
"canonical-multiple": [
|
|
269
|
+
"URL-04",
|
|
270
|
+
"high",
|
|
271
|
+
n => `${n} page(s) declare more than one canonical`,
|
|
272
|
+
'Conflicting canonicals are ignored. A `Link` header with rel="canonical" counts too: Google says giving one URL there and another in the page\'s link element is the error to avoid.',
|
|
273
|
+
"Emit exactly one canonical per page from one place: the HTML link element or the `Link` header, not both.",
|
|
274
|
+
],
|
|
275
|
+
"canonical-not-self": [
|
|
276
|
+
"URL-04",
|
|
277
|
+
"medium",
|
|
278
|
+
n => `${n} indexable page(s) canonicalize to a different URL`,
|
|
279
|
+
"That tells Google to rank another URL instead. Right for variants, wrong for pages meant to rank.",
|
|
280
|
+
"Check each against the profile. Pages meant to rank need a canonical to themselves, with the same trailing-slash style.",
|
|
281
|
+
],
|
|
282
|
+
"noindex-canonical": [
|
|
283
|
+
"CRAWL-02",
|
|
284
|
+
"medium",
|
|
285
|
+
n => `${n} noindex page(s) also name a different page as canonical`,
|
|
286
|
+
"The noindex says “leave this page out of search” while the canonical says “this is a copy of that page, rank that one instead”. Google has called the pair contradictory: it may ignore the canonical, or carry the noindex over to the page it points at.",
|
|
287
|
+
"Pick one per page. A duplicate of another page keeps the canonical and drops the noindex; a page that should stay out of search keeps the noindex and points its canonical at itself, or has none.",
|
|
288
|
+
],
|
|
289
|
+
"canonical-query": [
|
|
290
|
+
"URL-04",
|
|
291
|
+
"high",
|
|
292
|
+
n => `${n} canonical(s) contain a query string`,
|
|
293
|
+
"Canonicals built from the request URL leak `?utm_` and other parameters, creating duplicates.",
|
|
294
|
+
"Build canonicals from the clean path, never from the incoming request URL.",
|
|
295
|
+
],
|
|
296
|
+
"canonical-origin": [
|
|
297
|
+
"URL-04",
|
|
298
|
+
"high",
|
|
299
|
+
n => `${n} canonical(s) point at the wrong host`,
|
|
300
|
+
"Canonicals on staging, localhost or the wrong www/https variant send signals to the wrong site.",
|
|
301
|
+
"Set the base URL (e.g. `metadataBase`) from one production origin setting.",
|
|
302
|
+
],
|
|
303
|
+
"canonical-bad-target": [
|
|
304
|
+
"URL-04",
|
|
305
|
+
"high",
|
|
306
|
+
n => `${n} canonical target(s) don't return 200`,
|
|
307
|
+
"A canonical pointing at a redirect or error is ignored.",
|
|
308
|
+
"Point canonicals at the final, working URL.",
|
|
309
|
+
],
|
|
310
|
+
"breadcrumb-dead-level": [
|
|
311
|
+
"URL-05",
|
|
312
|
+
"high",
|
|
313
|
+
n => `${n} breadcrumb level URL(s) don't return 200`,
|
|
314
|
+
"Every breadcrumb level except the last is a link on every page below it. A missing hub page is a broken link sitewide.",
|
|
315
|
+
"Create a real hub page for each level, or fix the breadcrumb URL.",
|
|
316
|
+
],
|
|
317
|
+
"client-rendered": [
|
|
318
|
+
"REND-01",
|
|
319
|
+
"blocker",
|
|
320
|
+
n => `${n} page(s) have almost no content in the server HTML`,
|
|
321
|
+
"The HTML the server sends is nearly empty, so crawlers that don't run JavaScript (most AI crawlers, and Google's first pass) see a blank page.",
|
|
322
|
+
"Server-render or pre-render page content. Only interactive widgets should depend on client JavaScript.",
|
|
323
|
+
],
|
|
324
|
+
"title-missing-sitewide": [
|
|
325
|
+
"META-01",
|
|
326
|
+
"blocker",
|
|
327
|
+
n => `${n} indexable pages have no title, or all share one default title`,
|
|
328
|
+
"The title is the headline in search results. With none, or one default title such as “Create Next App” on almost every page, search engines write their own and every page looks the same.",
|
|
329
|
+
"Give every page a unique title through the shared metadata helper.",
|
|
330
|
+
],
|
|
331
|
+
"h1-missing-sitewide": [
|
|
332
|
+
"CONTENT-01",
|
|
333
|
+
"blocker",
|
|
334
|
+
n => `${n} indexable pages have no H1`,
|
|
335
|
+
"Almost no page states its topic in a main heading, so search engines have to guess what each page is about.",
|
|
336
|
+
"Give every page template one H1 that names the page's topic.",
|
|
337
|
+
],
|
|
338
|
+
"canonical-missing-sitewide": [
|
|
339
|
+
"URL-04",
|
|
340
|
+
"blocker",
|
|
341
|
+
n => `${n} indexable pages have no canonical tag`,
|
|
342
|
+
"With no canonicals anywhere, search engines choose among the slash, parameter and tracking variants of every page themselves.",
|
|
343
|
+
"Add a self-referencing absolute canonical to every indexable page through the shared metadata helper.",
|
|
344
|
+
],
|
|
345
|
+
"title-multiple": [
|
|
346
|
+
"META-01",
|
|
347
|
+
"high",
|
|
348
|
+
n => `${n} page(s) have more than one <title>`,
|
|
349
|
+
"Two titles usually mean a hard-coded layout title plus a page title, or two SEO plugins. Search engines may pick the wrong one.",
|
|
350
|
+
"Emit the title from one place only.",
|
|
351
|
+
],
|
|
352
|
+
"href-hash": [
|
|
353
|
+
"REND-04",
|
|
354
|
+
"low",
|
|
355
|
+
n => `${n} page(s) have links without a real destination (href="#", javascript:, or no href)`,
|
|
356
|
+
"Crawlers only follow real URLs. Click-handler navigation hides pages from search engines.",
|
|
357
|
+
"Use real `<a href>` links for navigation and `<button>` for actions.",
|
|
358
|
+
],
|
|
359
|
+
"placeholder-text": [
|
|
360
|
+
"CONTENT-09",
|
|
361
|
+
"high",
|
|
362
|
+
n => `${n} page(s) show placeholder, test or broken-encoding text`,
|
|
363
|
+
"Lorem ipsum, TODO, template tokens or mangled characters on a live page look unfinished to visitors and quality reviewers.",
|
|
364
|
+
"Replace the text with real content and add a build check that fails on these strings.",
|
|
365
|
+
],
|
|
366
|
+
"doc-basics": [
|
|
367
|
+
"REND-09",
|
|
368
|
+
"medium",
|
|
369
|
+
n => `${n} page(s) lack a doctype, a charset or a mobile viewport`,
|
|
370
|
+
"Without a doctype browsers fall back to quirks mode; without a viewport the page renders as a zoomed-out desktop page on phones, and Google indexes the mobile version.",
|
|
371
|
+
'Start every page with `<!doctype html>`, `<meta charset="utf-8">` and `<meta name="viewport" content="width=device-width, initial-scale=1">` in the shared layout.',
|
|
372
|
+
],
|
|
373
|
+
"charset-mismatch": [
|
|
374
|
+
"REND-09",
|
|
375
|
+
"medium",
|
|
376
|
+
n => `${n} page(s) name one character set in the server header and another in the HTML`,
|
|
377
|
+
"Browsers and search engines follow the server's Content-Type header over the page's own meta tag. If the page was saved in the encoding its meta tag names, accented letters, curly quotes and symbols turn into garbage on screen and in search snippets.",
|
|
378
|
+
'Save and serve pages as UTF-8, and make the header (`Content-Type: text/html; charset=utf-8`) and `<meta charset="utf-8">` agree. The header usually comes from the server or CDN settings.',
|
|
379
|
+
],
|
|
380
|
+
"obsolete-tags": [
|
|
381
|
+
"REND-10",
|
|
382
|
+
"low",
|
|
383
|
+
n => `${n} page(s) use obsolete HTML tags`,
|
|
384
|
+
"Tags such as `<frameset>`, `<frame>`, `<marquee>`, `<blink>`, `<font>` and `<center>` were dropped from HTML years ago. Frames split a page into separate documents that search engines index on their own, and the others are old styling that makes a page look and behave dated.",
|
|
385
|
+
"Replace frames with ordinary pages (an `<iframe>` is fine for embeds), and move what `<font>`, `<center>`, `<marquee>` and `<blink>` do into CSS.",
|
|
386
|
+
],
|
|
387
|
+
"meta-refresh": [
|
|
388
|
+
"CRAWL-08",
|
|
389
|
+
"medium",
|
|
390
|
+
n => `${n} page(s) redirect with a meta refresh`,
|
|
391
|
+
"A meta refresh is a slow, client-side redirect. Search engines may treat it as a redirect or may index the empty page; visitors see a flash first.",
|
|
392
|
+
"Replace it with a server-side 301/308 redirect to the final URL.",
|
|
393
|
+
],
|
|
394
|
+
"og-url-mismatch": [
|
|
395
|
+
"META-04",
|
|
396
|
+
"low",
|
|
397
|
+
n => `${n} page(s) have an og:url that differs from the canonical`,
|
|
398
|
+
"Shares then point at a different URL from the one search engines rank, splitting share counts and signals.",
|
|
399
|
+
"Build og:url from the same value as the canonical in the metadata helper.",
|
|
400
|
+
],
|
|
401
|
+
"robots-conflict": [
|
|
402
|
+
"META-06",
|
|
403
|
+
"high",
|
|
404
|
+
n => `${n} page(s) get contradicting robots rules from the meta tag and the X-Robots-Tag header`,
|
|
405
|
+
"When the two disagree, search engines follow the stricter one, so a page that says “index” in its HTML can still be dropped by a header nobody looks at.",
|
|
406
|
+
"Set robots in one place. Remove the header rule (often a CDN or server config) or make the meta tag match it.",
|
|
407
|
+
],
|
|
408
|
+
"page-nofollow": [
|
|
409
|
+
"META-06",
|
|
410
|
+
"medium",
|
|
411
|
+
n => `${n} indexable page(s) tell search engines not to follow any of their links (nofollow)`,
|
|
412
|
+
"A page-wide `nofollow` (or `none`) in the robots meta tag or the X-Robots-Tag header stops Google following every link on the page, so the pages it links to are found later and get nothing from it. It's usually a leftover staging setting or a plugin default.",
|
|
413
|
+
'Use `index, follow` (or no robots rule) on pages meant to rank. Put `rel="nofollow"` on the single links that need it instead.',
|
|
414
|
+
],
|
|
415
|
+
"no-large-preview": [
|
|
416
|
+
"MEDIA-03",
|
|
417
|
+
"low",
|
|
418
|
+
n => `${n} indexable page(s) don't allow large image previews`,
|
|
419
|
+
"Without `max-image-preview:large`, Google shows small thumbnails at most, and pages are less likely to appear with large images in Discover.",
|
|
420
|
+
"Add `max-image-preview:large` to the robots meta of indexable pages through the metadata helper.",
|
|
421
|
+
],
|
|
422
|
+
"heavy-image": [
|
|
423
|
+
"PERF-08",
|
|
424
|
+
"low",
|
|
425
|
+
n => `${n} image(s) weigh over 200 KB`,
|
|
426
|
+
"Heavy images slow down the largest paint on mobile connections and cost visitors data.",
|
|
427
|
+
"Resize images to their displayed size and compress them, or serve them through the framework's image optimiser.",
|
|
428
|
+
],
|
|
429
|
+
"legacy-image-format": [
|
|
430
|
+
"PERF-08",
|
|
431
|
+
"low",
|
|
432
|
+
n => `${n} image(s) over 100 KB are served as JPEG or PNG`,
|
|
433
|
+
"WebP and AVIF are usually 25–50% smaller at the same quality, and every current browser supports them.",
|
|
434
|
+
"Serve WebP or AVIF (most image CDNs and framework image components do this from the Accept header).",
|
|
435
|
+
],
|
|
436
|
+
// Medium, as browsers block http:// scripts, stylesheets and frames on an https page outright. Also raised for head
|
|
437
|
+
// and media resources by insecureResources in checks/technical.mjs.
|
|
438
|
+
"mixed-content": [
|
|
439
|
+
"TRUST-01",
|
|
440
|
+
"medium",
|
|
441
|
+
n => `${n} HTTPS page(s) load files over plain http://`,
|
|
442
|
+
"Browsers block http:// scripts, stylesheets, preloads, frames and embeds on an https page, so styles or features break, and they upgrade or block http:// images, video and audio, which then fail if the other server has no https. Chrome also stops showing the page as fully secure.",
|
|
443
|
+
"Load every file over https:// (or a relative URL): fix the theme, template or CMS setting that writes http://. While that's done, `Content-Security-Policy: upgrade-insecure-requests` makes browsers ask for https:// themselves.",
|
|
444
|
+
],
|
|
445
|
+
"title-missing": [
|
|
446
|
+
"META-01",
|
|
447
|
+
"high",
|
|
448
|
+
n => `${n} page(s) have no title`,
|
|
449
|
+
"The title is the main headline in search results.",
|
|
450
|
+
"Give every page a unique title through the shared metadata helper.",
|
|
451
|
+
],
|
|
452
|
+
"title-long": [
|
|
453
|
+
"META-01",
|
|
454
|
+
"low",
|
|
455
|
+
n => `${n} title(s) are longer than 60 characters`,
|
|
456
|
+
"Google sets no length limit on titles, but it cuts the title link in results to fit the screen, so the end of a long title (often the brand or the key phrase) may not show. 60 characters is our own rough line.",
|
|
457
|
+
"Put the main keyword first and the brand last, so a cut title still makes sense. Shorten it to about 60 characters if the end matters.",
|
|
458
|
+
],
|
|
459
|
+
"title-short": [
|
|
460
|
+
"META-01",
|
|
461
|
+
"low",
|
|
462
|
+
n => `${n} title(s) are shorter than 20 characters`,
|
|
463
|
+
"Very short titles waste the most visible spot in results.",
|
|
464
|
+
"Describe the page: what it is and who it's for, in under 60 characters.",
|
|
465
|
+
],
|
|
466
|
+
"title-dup": [
|
|
467
|
+
"META-01",
|
|
468
|
+
"high",
|
|
469
|
+
n => `${n} title(s) are shared by more than one page`,
|
|
470
|
+
"Duplicate titles make pages compete with each other and look templated.",
|
|
471
|
+
"Make each title unique, usually by including the page's specific subject.",
|
|
472
|
+
],
|
|
473
|
+
"title-brand-twice": [
|
|
474
|
+
"META-03",
|
|
475
|
+
"low",
|
|
476
|
+
n => `${n} title(s) repeat the brand`,
|
|
477
|
+
"A title template plus a title that already has the brand doubles it.",
|
|
478
|
+
"Use an absolute title when the brand is already present, or drop it from the page title.",
|
|
479
|
+
],
|
|
480
|
+
"title-mismatch": [
|
|
481
|
+
"META-09",
|
|
482
|
+
"low",
|
|
483
|
+
n => `${n} page(s) have a title that doesn't match their content`,
|
|
484
|
+
"None of the main words in the title appear anywhere on the page. Google often rewrites such titles in results, and visitors who click expecting one thing find another. It's usually a copied template or a title left over from an older page.",
|
|
485
|
+
"Rewrite the title to name what the page actually covers, using the words of its heading and text.",
|
|
486
|
+
],
|
|
487
|
+
"desc-missing": [
|
|
488
|
+
"META-02",
|
|
489
|
+
"medium",
|
|
490
|
+
n => `${n} page(s) have no meta description`,
|
|
491
|
+
"Google then writes its own snippet, often from navigation text.",
|
|
492
|
+
"Write a unique 120–160 character description per page: what you get and why.",
|
|
493
|
+
],
|
|
494
|
+
"desc-length": [
|
|
495
|
+
"META-02",
|
|
496
|
+
"low",
|
|
497
|
+
n => `${n} description(s) are outside 120–160 characters`,
|
|
498
|
+
"Short descriptions undersell the page; long ones get cut off.",
|
|
499
|
+
"Aim for 120–160 characters.",
|
|
500
|
+
],
|
|
501
|
+
"desc-dup": [
|
|
502
|
+
"META-02",
|
|
503
|
+
"medium",
|
|
504
|
+
n => `${n} description(s) are shared by more than one page`,
|
|
505
|
+
"Duplicate descriptions signal templated pages.",
|
|
506
|
+
"Write a specific description for each page.",
|
|
507
|
+
],
|
|
508
|
+
"og-missing": [
|
|
509
|
+
"META-04",
|
|
510
|
+
"low",
|
|
511
|
+
n => `${n} page(s) lack og:title or og:image`,
|
|
512
|
+
"Without og:title and og:image, shared links on Slack, LinkedIn and X show a bare URL instead of a card. Where og:description is listed too, the page has no description at all, so each platform guesses its text from the page or shows none.",
|
|
513
|
+
"Emit Open Graph and Twitter tags from the metadata helper, with a default image and per-page images for key pages, and og:description from the page's meta description.",
|
|
514
|
+
],
|
|
515
|
+
"og-image-broken": [
|
|
516
|
+
"META-04",
|
|
517
|
+
"medium",
|
|
518
|
+
n => `${n} share image(s) don't load`,
|
|
519
|
+
"The og:image URL doesn't return an image, so shared links show no picture and Google can't use it as the page's thumbnail.",
|
|
520
|
+
"Point og:image at an absolute URL on the public site that returns the image with status 200. A moved file or the wrong host in the metadata helper is the usual cause.",
|
|
521
|
+
],
|
|
522
|
+
"og-image-no-size": [
|
|
523
|
+
"META-04",
|
|
524
|
+
"low",
|
|
525
|
+
n => `${n} page(s) don't declare their share image's size`,
|
|
526
|
+
"Without og:image:width and og:image:height, Facebook and LinkedIn have to download the image before they can lay out the card, so the first share of a page often shows no image.",
|
|
527
|
+
"Emit `og:image:width` and `og:image:height` next to og:image in the metadata helper.",
|
|
528
|
+
],
|
|
529
|
+
"twitter-card-missing": [
|
|
530
|
+
"META-04",
|
|
531
|
+
"low",
|
|
532
|
+
n => `${n} page(s) have a share image but no twitter:card`,
|
|
533
|
+
"X shows a large image card only when the page asks for one with twitter:card. Without it, X shows at most a small card with a thumbnail, and only when og:type, og:title and og:description are all set.",
|
|
534
|
+
'Add `<meta name="twitter:card" content="summary_large_image">` next to og:image in the metadata helper. X takes the title, description and image from the Open Graph tags.',
|
|
535
|
+
],
|
|
536
|
+
"twitter-card-invalid": [
|
|
537
|
+
"META-04",
|
|
538
|
+
"low",
|
|
539
|
+
n => `${n} page(s) have a twitter:card value X doesn't know`,
|
|
540
|
+
"X has four card types: summary, summary_large_image, app and player. Any other value, old ones such as gallery, photo and product included, names a card X can't show.",
|
|
541
|
+
"Set twitter:card to `summary_large_image` for pages with a share image, or `summary` for a small square one.",
|
|
542
|
+
],
|
|
543
|
+
"og-image-small": [
|
|
544
|
+
"MEDIA-03",
|
|
545
|
+
"low",
|
|
546
|
+
n => `${n} share image(s) are narrower than 1200 px`,
|
|
547
|
+
"Google Discover and the large link cards on X, LinkedIn and Facebook need images at least 1200 px wide. Smaller ones show as a small thumbnail or not at all.",
|
|
548
|
+
"Use share images of at least 1200 × 630 px (1.91:1), as a sitewide default and for each key page.",
|
|
549
|
+
],
|
|
550
|
+
"lang-missing": [
|
|
551
|
+
"META-05",
|
|
552
|
+
"low",
|
|
553
|
+
n => `${n} page(s) don't declare a language`,
|
|
554
|
+
"`<html lang>` helps search engines and screen readers.",
|
|
555
|
+
"Set `lang` on the `<html>` element in the root layout.",
|
|
556
|
+
],
|
|
557
|
+
"favicon-missing": [
|
|
558
|
+
"META-10",
|
|
559
|
+
"medium",
|
|
560
|
+
() => "The site has no favicon that loads",
|
|
561
|
+
"Google shows the site's favicon next to its name in search results. Without one that loads, results show a generic globe icon, which looks unfinished next to other sites' logos.",
|
|
562
|
+
'Add `<link rel="icon" href="/favicon.png">` to the home page\'s `<head>`, pointing at a square PNG or ICO of at least 48 × 48 px that returns 200. Keep its URL stable and don\'t block it in robots.txt.',
|
|
563
|
+
],
|
|
564
|
+
"favicon-unsuitable": [
|
|
565
|
+
"META-10",
|
|
566
|
+
"low",
|
|
567
|
+
() => "The favicon is small, not square, or in a format Google Search doesn't list",
|
|
568
|
+
"Google needs a square favicon and recommends one larger than 48 × 48 px. It lists BMP, GIF, ICO, PNG, JPEG, PPM and TIFF as the formats it supports, so an SVG or WebP icon on its own may not show, and a 16 or 32 px icon looks blurred beside results.",
|
|
569
|
+
'Add a square PNG of at least 48 × 48 px (192 × 192 works everywhere), for example `<link rel="icon" href="/icon-192.png" sizes="192x192">`, next to any SVG icon.',
|
|
570
|
+
],
|
|
571
|
+
"heading-skip": [
|
|
572
|
+
"CONTENT-02",
|
|
573
|
+
"low",
|
|
574
|
+
n => `${n} page(s) skip heading levels`,
|
|
575
|
+
"Screen readers use heading levels to move around a page, so a skipped level can confuse the people who use them. Google Search doesn't mind headings out of order.",
|
|
576
|
+
"Nest headings in order (H1 → H2 → H3). Style with CSS, not heading levels.",
|
|
577
|
+
],
|
|
578
|
+
"near-duplicate": [
|
|
579
|
+
"CONTENT-04",
|
|
580
|
+
"high",
|
|
581
|
+
n => `${n} pair(s) of indexable pages share most of their main content`,
|
|
582
|
+
"Pages that differ only by a swapped name (a city, product or tool) look like doorway or scaled content. Google can filter them out or hold down the whole site.",
|
|
583
|
+
"Give each page its own substance: specific details, local proof, its own intro and FAQs. Merge or noindex pages that can't be made unique.",
|
|
584
|
+
],
|
|
585
|
+
"faq-reused": [
|
|
586
|
+
"CONTENT-04",
|
|
587
|
+
"medium",
|
|
588
|
+
n => `${n} FAQ question(s) are reused on more than one page`,
|
|
589
|
+
"Identical FAQs across pages add nothing unique and signal templated content.",
|
|
590
|
+
"Give each page questions specific to it, and keep shared questions on one FAQ page.",
|
|
591
|
+
],
|
|
592
|
+
"banned-claim": [
|
|
593
|
+
"CONTENT-10",
|
|
594
|
+
"high",
|
|
595
|
+
n => `${n} page(s) contain banned text`,
|
|
596
|
+
"Banned claims (years, licences, guarantees, prices the owner has ruled out) are a legal and trust risk. Matches are leads: read the context, because an honest denial (“No, we don't work 24/7”) is fine.",
|
|
597
|
+
"Remove or reword the claim at its source, and keep the banned list in a build check.",
|
|
598
|
+
],
|
|
599
|
+
"unconfirmed-claim": [
|
|
600
|
+
"CONTENT-10",
|
|
601
|
+
"needs-decision",
|
|
602
|
+
n => `${n} page(s) contain claims the owner hasn't confirmed`,
|
|
603
|
+
"Unconfirmed claims become false advertising if they turn out wrong.",
|
|
604
|
+
"Ask the owner to confirm each claim. Until then, hold the text or the pages.",
|
|
605
|
+
],
|
|
606
|
+
"redirect-broken": [
|
|
607
|
+
"URL-07",
|
|
608
|
+
"high",
|
|
609
|
+
n => `${n} old URL(s) end in an error instead of a live page`,
|
|
610
|
+
"Old URLs carry backlinks, bookmarks and printed links. If they end in a 404 or a loop, that traffic and authority is lost.",
|
|
611
|
+
"Point each old URL at its closest live page with one 301/308, covering both trailing-slash forms.",
|
|
612
|
+
],
|
|
613
|
+
"old-url-temporary": [
|
|
614
|
+
"URL-07",
|
|
615
|
+
"medium",
|
|
616
|
+
n => `${n} old URL(s) redirect temporarily (302, 303 or 307)`,
|
|
617
|
+
"A temporary redirect tells search engines the old URL may come back, so they keep it in results and are slow to pass its links and ranking on to the new page.",
|
|
618
|
+
"For a move that's for good, use a 301 or 308 (in Next.js `permanent: true`; in Express `res.redirect(301, …)`).",
|
|
619
|
+
],
|
|
620
|
+
"thin-page": [
|
|
621
|
+
"CONTENT-05",
|
|
622
|
+
"low",
|
|
623
|
+
n => `${n} indexable page(s) have fewer than 150 words`,
|
|
624
|
+
"A short page is worth a look, not a problem in itself: Google says there's no word count target, minimum or maximum. 150 words is our own line for a second look. A contact page or a calculator can do its job in few words.",
|
|
625
|
+
"If the page does its job, close this finding. If it doesn't, add useful, specific content, merge it into a stronger page, or noindex it until it grows.",
|
|
626
|
+
],
|
|
627
|
+
"img-alt": [
|
|
628
|
+
"CONTENT-08",
|
|
629
|
+
"low",
|
|
630
|
+
n => `${n} page(s) have images without an alt attribute`,
|
|
631
|
+
'Alt text describes images to screen readers and image search. Decorative images still need `alt=""`.',
|
|
632
|
+
"Add descriptive alt text to meaningful images and empty alt to decorative ones.",
|
|
633
|
+
],
|
|
634
|
+
"jsonld-invalid": [
|
|
635
|
+
"SCHEMA-01",
|
|
636
|
+
"high",
|
|
637
|
+
n => `${n} page(s) have JSON-LD that doesn't parse`,
|
|
638
|
+
"Invalid JSON-LD is ignored completely.",
|
|
639
|
+
"Generate JSON-LD with JSON.stringify from data, escape `<`, and validate templates in the Rich Results Test.",
|
|
640
|
+
],
|
|
641
|
+
"schema-not-jsonld": [
|
|
642
|
+
"SCHEMA-01",
|
|
643
|
+
"low",
|
|
644
|
+
n => `${n} page(s) mark up structured data only in Microdata or RDFa`,
|
|
645
|
+
"Google reads Microdata and RDFa too, so these pages aren't missing structured data. But Google recommends JSON-LD as the easiest to keep right, and this audit validates JSON-LD only, so the markup on these pages wasn't checked for errors or missing fields.",
|
|
646
|
+
"Move the markup to one JSON-LD block built from the page's data (keep the Microdata until the JSON-LD is live), or check these templates in Google's Rich Results Test.",
|
|
647
|
+
],
|
|
648
|
+
"org-missing": [
|
|
649
|
+
"SCHEMA-02",
|
|
650
|
+
"medium",
|
|
651
|
+
() => "The home page has no Organization (or business) schema",
|
|
652
|
+
"Organization schema identifies who runs the site and anchors every other schema node.",
|
|
653
|
+
"Add one Organization (or the right LocalBusiness subtype) node in the root layout with a stable `@id`.",
|
|
654
|
+
],
|
|
655
|
+
"website-missing": [
|
|
656
|
+
"SCHEMA-02",
|
|
657
|
+
"low",
|
|
658
|
+
() => "The home page has no WebSite schema",
|
|
659
|
+
"WebSite schema names the site and links pages to the organization.",
|
|
660
|
+
"Add a WebSite node with a stable `@id` and `publisher` pointing at the organization.",
|
|
661
|
+
],
|
|
662
|
+
"jsonld-none": [
|
|
663
|
+
"SCHEMA-03",
|
|
664
|
+
"low",
|
|
665
|
+
n => `${n} indexable page(s) have no structured data`,
|
|
666
|
+
"Schema tells search and AI engines what each page is.",
|
|
667
|
+
"Add the schema type the profile assigns to each page type.",
|
|
668
|
+
],
|
|
669
|
+
"nap-not-shown": [
|
|
670
|
+
"LOCAL-05",
|
|
671
|
+
"medium",
|
|
672
|
+
n => `${n} page(s) give a phone number or street address in their business schema that visitors can't see`,
|
|
673
|
+
"Google checks structured data against the visible page, and local rankings lean on the name, address and phone reading the same in the schema, on the site and on the Google Business Profile. A number or address that is only in the schema, or differs from the one shown, weakens that match.",
|
|
674
|
+
"Show the same phone number and street address as the schema, on the page or in the site-wide footer, from one business-details setting that feeds both. With call tracking, keep the real number in the HTML and swap the tracking number in on the client.",
|
|
675
|
+
],
|
|
676
|
+
"faq-not-visible": [
|
|
677
|
+
"SCHEMA-04",
|
|
678
|
+
"high",
|
|
679
|
+
n => `${n} page(s) mark up FAQ questions that aren't in the page`,
|
|
680
|
+
"Schema that describes content the page doesn't show breaks Google's guidelines and can bring a manual action.",
|
|
681
|
+
"Build FAQPage from the same array that renders the visible FAQ, or remove it.",
|
|
682
|
+
],
|
|
683
|
+
"rating-review": [
|
|
684
|
+
"SCHEMA-04",
|
|
685
|
+
"needs-decision",
|
|
686
|
+
n => `${n} page(s) carry ratings or reviews in schema`,
|
|
687
|
+
"Ratings must come from real reviews that are visible on the page. Invented or unsourced ratings risk a manual action that removes rich results sitewide.",
|
|
688
|
+
"Confirm each rating's source. Keep it only if real reviews are shown on the page; otherwise remove it.",
|
|
689
|
+
],
|
|
690
|
+
"deprecated-schema": [
|
|
691
|
+
"SCHEMA-05",
|
|
692
|
+
"low",
|
|
693
|
+
n => `${n} page(s) use schema with no rich result (${RETIRED.map(r => r.type).join(", ")})`,
|
|
694
|
+
`Google ended ${RETIRED.map(r => `${r.feature} (${r.since.slice(0, 4)})`).join(", ")}. The markup does no harm but earns nothing.`,
|
|
695
|
+
"Remove it, or keep it knowingly. Don't promise these rich results.",
|
|
696
|
+
],
|
|
697
|
+
"breadcrumb-missing": [
|
|
698
|
+
"SCHEMA-07",
|
|
699
|
+
"medium",
|
|
700
|
+
n => `${n} page(s) below the home page have no BreadcrumbList`,
|
|
701
|
+
"Breadcrumb rich results still show in Google and clarify site structure.",
|
|
702
|
+
"Render BreadcrumbList from the same array as the visible breadcrumb.",
|
|
703
|
+
],
|
|
704
|
+
"sitemap-missing": [
|
|
705
|
+
"MAP-01",
|
|
706
|
+
"high",
|
|
707
|
+
() => "No XML sitemap found",
|
|
708
|
+
"Without a sitemap, new and deep pages are found slowly.",
|
|
709
|
+
"Generate `/sitemap.xml` from the live content data and reference it in robots.txt.",
|
|
710
|
+
],
|
|
711
|
+
"sitemap-not-in-robots": [
|
|
712
|
+
"MAP-01",
|
|
713
|
+
"low",
|
|
714
|
+
() => "robots.txt doesn't reference the sitemap",
|
|
715
|
+
"The `Sitemap:` line lets every crawler find it without manual submission.",
|
|
716
|
+
"Add `Sitemap: https://…/sitemap.xml` (absolute URL) to robots.txt.",
|
|
717
|
+
],
|
|
718
|
+
"sitemap-invalid": [
|
|
719
|
+
"MAP-01",
|
|
720
|
+
"high",
|
|
721
|
+
n => `Google can't read ${n} sitemap(s): not valid XML`,
|
|
722
|
+
"A sitemap is read as XML, and XML with one mistake in it (a bare `&` in a URL, a tag that isn't closed, text before `<?xml`, or an HTML page in its place) can't be read. Search Console reports it as a sitemap error, and the URLs in it may never be found from it.",
|
|
723
|
+
"Build the sitemap with the framework's sitemap helper or an XML library instead of joining strings: it writes `&` as `&` and closes every tag. Make sure nothing (a blank line, a PHP notice) is printed before `<?xml`, and that the sitemap URL serves the XML file, not a page.",
|
|
724
|
+
],
|
|
725
|
+
"sitemap-too-big": [
|
|
726
|
+
"MAP-01",
|
|
727
|
+
"medium",
|
|
728
|
+
n => `${n} sitemap file(s) are over the 50,000-URL or 50 MB limit`,
|
|
729
|
+
"One sitemap file may list at most 50,000 URLs and be at most 50 MB uncompressed. Search Console reports a bigger file as an error, and the URLs past the limit may be ignored.",
|
|
730
|
+
"Split it into sitemaps of up to 50,000 URLs each (one per section works well), list them in a sitemap index (`<sitemapindex>`), and reference the index in robots.txt.",
|
|
731
|
+
],
|
|
732
|
+
"news-sitemap-tags": [
|
|
733
|
+
"MAP-01",
|
|
734
|
+
"medium",
|
|
735
|
+
n => `${n} news sitemap(s) have articles without Google News's required tags`,
|
|
736
|
+
"Every `<news:news>` entry needs `<news:publication>` with `<news:name>` and `<news:language>`, a `<news:publication_date>` in W3C format, and `<news:title>`. Google reports entries without them as errors and can't use them for news.",
|
|
737
|
+
"Generate each entry from the article record: the publication's name as Google News shows it, an ISO 639 language code (`en`), the time it was first published (`2026-11-17T10:30:00+00:00`) and the headline as it appears on the page.",
|
|
738
|
+
],
|
|
739
|
+
"news-sitemap-too-many": [
|
|
740
|
+
"MAP-01",
|
|
741
|
+
"medium",
|
|
742
|
+
n => `${n} news sitemap(s) list more than 1,000 articles`,
|
|
743
|
+
"A news sitemap may hold at most 1,000 `<news:news>` entries. Google may skip the rest.",
|
|
744
|
+
"Keep only the last two days of articles in it, and split it into more news sitemaps if that's still over 1,000.",
|
|
745
|
+
],
|
|
746
|
+
"news-sitemap-old": [
|
|
747
|
+
"MAP-01",
|
|
748
|
+
"low",
|
|
749
|
+
n => `${n} news sitemap(s) list articles older than two days`,
|
|
750
|
+
"Google wants only articles first published in the last two days in a news sitemap. Older ones add noise and push the file toward its 1,000-article limit.",
|
|
751
|
+
"Drop articles older than two days from the news sitemap, or remove their `<news:news>` block; the regular sitemap keeps listing them.",
|
|
752
|
+
],
|
|
753
|
+
"sitemap-origin": [
|
|
754
|
+
"MAP-02",
|
|
755
|
+
"high",
|
|
756
|
+
n => `${n} sitemap URL(s) use a different host than the site`,
|
|
757
|
+
"Sitemaps listing localhost, staging or the wrong www/https variant point Google at the wrong site.",
|
|
758
|
+
"Build sitemap URLs from one production origin setting.",
|
|
759
|
+
],
|
|
760
|
+
"sitemap-noncanonical": [
|
|
761
|
+
"MAP-02",
|
|
762
|
+
"high",
|
|
763
|
+
n => `${n} sitemap URL(s) canonicalize elsewhere`,
|
|
764
|
+
"Only canonical URLs belong in the sitemap.",
|
|
765
|
+
"List the canonical URL, or fix the page's canonical.",
|
|
766
|
+
],
|
|
767
|
+
"missing-from-sitemap": [
|
|
768
|
+
"MAP-03",
|
|
769
|
+
"medium",
|
|
770
|
+
n => `${n} indexable page(s) are missing from the sitemap`,
|
|
771
|
+
"Pages outside the sitemap are discovered and refreshed more slowly.",
|
|
772
|
+
"Generate the sitemap from the same data as the pages so nothing is left out.",
|
|
773
|
+
],
|
|
774
|
+
"sitemap-lastmod-same": [
|
|
775
|
+
"MAP-04",
|
|
776
|
+
"low",
|
|
777
|
+
() => "Almost every sitemap lastmod has the same date",
|
|
778
|
+
"When 90% or more of the lastmod dates fall on one day (our own line), the build time was usually used. Google learns to ignore lastmod that isn't accurate.",
|
|
779
|
+
"Use each record's real last-updated date.",
|
|
780
|
+
],
|
|
781
|
+
"sitemap-lastmod-future": [
|
|
782
|
+
"MAP-04",
|
|
783
|
+
"low",
|
|
784
|
+
n => `${n} sitemap(s) have lastmod dates in the future`,
|
|
785
|
+
"A page can't have changed after today. Google uses lastmod only on sites where it proves accurate, so impossible dates teach it to ignore the sitemap's dates.",
|
|
786
|
+
"Use each record's real last-updated date, never a scheduled or generated one.",
|
|
787
|
+
],
|
|
788
|
+
"sitemap-lastmod-invalid": [
|
|
789
|
+
"MAP-04",
|
|
790
|
+
"low",
|
|
791
|
+
n => `${n} sitemap(s) have lastmod values that aren't W3C dates`,
|
|
792
|
+
"Search engines read lastmod only in W3C Datetime format (`2026-11-17` or `2026-11-17T10:30:00+00:00`) and ignore anything else.",
|
|
793
|
+
"Write lastmod as `YYYY-MM-DD` or a full datetime with a timezone (for example with `toISOString()`).",
|
|
794
|
+
],
|
|
795
|
+
// Low: Google reads a 4xx other than 429 as no rules, and a site needs the file only to keep crawlers out.
|
|
796
|
+
// https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt
|
|
797
|
+
// https://developers.google.com/search/docs/crawling-indexing/robots/intro
|
|
798
|
+
"robots-missing": [
|
|
799
|
+
"MAP-05",
|
|
800
|
+
"low",
|
|
801
|
+
() => "robots.txt is missing",
|
|
802
|
+
"Google reads a missing robots.txt (a 4xx answer) as no rules, so everything may be crawled, and a site only needs one to keep crawlers out of something. It's still where the sitemap is listed for every crawler, and where junk URLs (search results, filters, carts) are kept out.",
|
|
803
|
+
"Serve robots.txt that allows crawling, blocks only junk, and lists the sitemap.",
|
|
804
|
+
],
|
|
805
|
+
"robots-blocks-assets": [
|
|
806
|
+
"MAP-05",
|
|
807
|
+
"medium",
|
|
808
|
+
n => `robots.txt blocks ${n} asset path(s) needed to render pages`,
|
|
809
|
+
"Google renders pages with their CSS and JavaScript. Blocking them can make pages look broken to Google.",
|
|
810
|
+
"Remove Disallow rules for script, style and framework asset paths.",
|
|
811
|
+
],
|
|
812
|
+
"ai-bots-blocked": [
|
|
813
|
+
"MAP-06",
|
|
814
|
+
"needs-decision",
|
|
815
|
+
n => `robots.txt blocks ${n} AI crawler(s)`,
|
|
816
|
+
"Blocking an AI search crawler, or a fetcher for pages a person asks about, can keep the site out of that assistant's answers, such as ChatGPT, Claude or Perplexity. Blocking a training crawler keeps the content out of that vendor's AI training only: Google-Extended, for one, doesn't remove a site from AI Overviews or AI Mode.",
|
|
817
|
+
"Confirm this is deliberate. A common middle ground blocks training crawlers and allows search crawlers.",
|
|
818
|
+
],
|
|
819
|
+
"content-signal-invalid": [
|
|
820
|
+
"MAP-06",
|
|
821
|
+
"low",
|
|
822
|
+
n => `robots.txt has ${n} invalid Content-Signal value(s)`,
|
|
823
|
+
"Content-Signal states how AI systems may use the content (search, ai-input, ai-train), each set to yes or no, and Cloudflare is testing a fourth field, use (immediate, reference or full). Anything else is ignored, so the stated preference doesn't apply.",
|
|
824
|
+
"Use only `search`, `ai-input` and `ai-train`, each `yes` or `no`, and optionally `use=immediate`, `use=reference` or `use=full`, for example `Content-Signal: search=yes, ai-train=no`.",
|
|
825
|
+
],
|
|
826
|
+
"markdown-no-vary": [
|
|
827
|
+
"AI-05",
|
|
828
|
+
"low",
|
|
829
|
+
() => "Markdown responses don't send Vary: Accept",
|
|
830
|
+
"The site returns Markdown to agents that ask for it, but without `Vary: Accept` a cache or CDN can serve that Markdown to browsers, or HTML to agents.",
|
|
831
|
+
"Send `Vary: Accept` with every response whose body depends on the Accept header.",
|
|
832
|
+
],
|
|
833
|
+
// The quote is from Google's AI guide; in the llmstxt.org format only the H1 is required.
|
|
834
|
+
// https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
|
|
835
|
+
// https://llmstxt.org
|
|
836
|
+
"llms-txt-missing": [
|
|
837
|
+
"MAP-07",
|
|
838
|
+
"low",
|
|
839
|
+
() => "The site has no llms.txt",
|
|
840
|
+
"llms.txt is a short Markdown map of a site's key pages, served at /llms.txt. Some AI tools and coding assistants read it to find their way around a site, which matters most for developer docs and API sites. SEO Supervisor asks for one because it makes the site easier for AI tools to read. It isn't a ranking factor: Google says an llms.txt file “will neither harm nor help your site's visibility or rankings in Google Search”, and no search engine says it ranks pages by it.",
|
|
841
|
+
'Serve a plain-text file at /llms.txt: a `# Site name` heading, a one-line `>` summary, then Markdown links to the key pages (`- [Page](https://…): one sentence`). A copy-ready example is in `examples/snippets.md`. Build it from the same data as the sitemap so it stays current. A site that doesn\'t want one can turn this check off in `seo-audit/settings.json`: `"checks": { "off": ["llms-txt-missing"] }`.',
|
|
842
|
+
],
|
|
843
|
+
"llms-structure": [
|
|
844
|
+
"MAP-07",
|
|
845
|
+
"low",
|
|
846
|
+
() => "llms.txt doesn't follow the llms.txt format",
|
|
847
|
+
"The format starts with a `# Site name` heading, then a short summary and Markdown lists of links. Tools that read llms.txt expect that structure.",
|
|
848
|
+
"Start with `# Site name`, add a one-line `>` summary, then sections of `- [Page](url): description` links.",
|
|
849
|
+
],
|
|
850
|
+
"product-aggregate-offer": [
|
|
851
|
+
"SHOP-05",
|
|
852
|
+
"medium",
|
|
853
|
+
n => `${n} product page(s) use AggregateOffer for a single offer`,
|
|
854
|
+
"Merchant listings need an `Offer`. `AggregateOffer` is meant for several sellers, so a shop's own product may not qualify for the shopping features.",
|
|
855
|
+
"Emit an `Offer` with `price`, `priceCurrency` and `availability` for products you sell yourself.",
|
|
856
|
+
],
|
|
857
|
+
"product-no-shipping": [
|
|
858
|
+
"SHOP-05",
|
|
859
|
+
"low",
|
|
860
|
+
n => `${n} product page(s) have no shipping details in their schema`,
|
|
861
|
+
"Shipping costs and delivery times can show in Google's merchant listings; without them the listing is less complete.",
|
|
862
|
+
"Add `shippingDetails` to each Offer, or a site-wide shipping policy (`hasShippingService` on the Organization).",
|
|
863
|
+
],
|
|
864
|
+
"product-no-returns": [
|
|
865
|
+
"SHOP-05",
|
|
866
|
+
"low",
|
|
867
|
+
n => `${n} product page(s) have no return policy in their schema`,
|
|
868
|
+
"The return policy can show in merchant listings and helps shoppers choose.",
|
|
869
|
+
"Add `hasMerchantReturnPolicy` to each Offer, or once on the Organization.",
|
|
870
|
+
],
|
|
871
|
+
"product-image-small": [
|
|
872
|
+
"SHOP-05",
|
|
873
|
+
"low",
|
|
874
|
+
n => `${n} product image(s) are under 50,000 pixels`,
|
|
875
|
+
"Google recommends Product images of at least 50,000 pixels (width × height, such as 250 × 200) for merchant listings. Smaller ones make a weak listing in shopping results and may not be shown.",
|
|
876
|
+
"Use product photos of at least 50,000 pixels, ideally several high-resolution ones in 16:9, 4:3 and 1:1, and list them in the Product schema's `image`.",
|
|
877
|
+
],
|
|
878
|
+
"product-price-mismatch": [
|
|
879
|
+
"SHOP-05",
|
|
880
|
+
"high",
|
|
881
|
+
n => `${n} product page(s) show a different price from their schema`,
|
|
882
|
+
"Google checks structured data against the visible page; a price mismatch can remove the product's rich results or get the listing disapproved.",
|
|
883
|
+
"Generate the schema price from the same data the page displays.",
|
|
884
|
+
],
|
|
885
|
+
"deep-page": [
|
|
886
|
+
"LINK-01",
|
|
887
|
+
"low",
|
|
888
|
+
n => `${n} page(s) are more than three clicks from the home page`,
|
|
889
|
+
"Deep pages are crawled less often and look less important.",
|
|
890
|
+
"Link them from hubs or related-content blocks.",
|
|
891
|
+
],
|
|
892
|
+
"orphan": [
|
|
893
|
+
"LINK-02",
|
|
894
|
+
"medium",
|
|
895
|
+
n => `${n} sitemap page(s) have no internal links pointing to them`,
|
|
896
|
+
"Only the sitemap lists these pages: no page on the site links to them, so visitors can't reach them by browsing. Google asks that every page you care about has a link from at least one other page on the site.",
|
|
897
|
+
"Link each one from its hub and from related pages, or take it out of the sitemap if it isn't meant to be found.",
|
|
898
|
+
],
|
|
899
|
+
"generic-anchor": [
|
|
900
|
+
"LINK-05",
|
|
901
|
+
"low",
|
|
902
|
+
n => `${n} page(s) use generic link text like “click here” or “read more”`,
|
|
903
|
+
"Anchor text tells search engines what the target is about.",
|
|
904
|
+
"Use descriptive anchors such as “check your DMARC record”.",
|
|
905
|
+
],
|
|
906
|
+
"link-no-text": [
|
|
907
|
+
"LINK-05",
|
|
908
|
+
"medium",
|
|
909
|
+
n => `${n} page(s) have links with no text`,
|
|
910
|
+
"A link with no text, label or image alt tells search engines nothing about the page it points to, and screen readers announce it only as “link”. Icon-only links (social icons, a logo, a cart) are the usual cause.",
|
|
911
|
+
'Give each link visible text, an `aria-label` for icon-only links (`<a href="/cart/" aria-label="Cart">`), or alt text on the image inside it.',
|
|
912
|
+
],
|
|
913
|
+
"too-many-links": [
|
|
914
|
+
"LINK-06",
|
|
915
|
+
"low",
|
|
916
|
+
n => `${n} page(s) have more than 150 internal links`,
|
|
917
|
+
"Huge link blocks pass little to each target and read like link farms.",
|
|
918
|
+
"Cap related blocks and keep the footer to hubs.",
|
|
919
|
+
],
|
|
920
|
+
"lazy-lcp": [
|
|
921
|
+
"PERF-03",
|
|
922
|
+
"low",
|
|
923
|
+
n => `${n} page(s) lazy-load their main image`,
|
|
924
|
+
"If the first image is the largest element, lazy-loading it delays LCP. A lazy-loading script (an image whose real file is in `data-src` behind a placeholder) delays it even more, as the script has to run first. On pages a PageSpeed or Lighthouse lab run loaded, Chrome's own LCP check decides instead: the image it found as the largest element, not the first one.",
|
|
925
|
+
'Load the hero image eagerly with high priority (`priority` / `fetchpriority="high"`). In a lazy-loading plugin (Perfmatters, EWWW, WP Rocket, LiteSpeed), exclude the first images or the hero.',
|
|
926
|
+
],
|
|
927
|
+
"lcp-not-discoverable": [
|
|
928
|
+
"PERF-03",
|
|
929
|
+
"low",
|
|
930
|
+
n => `${n} page(s) start loading their largest image only from CSS or a script`,
|
|
931
|
+
"In a PageSpeed or Lighthouse lab load, Chrome found that the page's largest element (the LCP) is an image that neither an `<img>` in the HTML nor a preload asks for: a stylesheet's background or a script does, so the browser finds it late. web.dev says the LCP image should be discoverable from the HTML source.",
|
|
932
|
+
'Put the hero in the HTML as an `<img>` with its real `src` (not a CSS background or a lazy-loading script\'s `data-src`). If it has to stay in CSS or a script, preload it: `<link rel="preload" as="image" href="…" fetchpriority="high">`.',
|
|
933
|
+
],
|
|
934
|
+
"render-blocking": [
|
|
935
|
+
"PERF-03",
|
|
936
|
+
"low",
|
|
937
|
+
n => `${n} page(s) hold up their first paint with scripts or many stylesheets in the <head>`,
|
|
938
|
+
"The browser stops drawing the page until each `<script src>` in the head without `async` or `defer` has downloaded and run, and until every stylesheet has loaded. That delays the first paint and the largest one (LCP), most on slow phones.",
|
|
939
|
+
'Add `defer` to head scripts (or move them to the end of the body); keep only scripts that must run first, such as a consent manager, blocking. Combine stylesheets, load page-specific CSS only where it\'s used, and load non-critical CSS with `media="print" onload="this.media=\'all\'"`.',
|
|
940
|
+
],
|
|
941
|
+
"img-dimensions": [
|
|
942
|
+
"PERF-04",
|
|
943
|
+
"low",
|
|
944
|
+
n => `${n} page(s) have images without width and height`,
|
|
945
|
+
"Images without dimensions shift the layout as they load (CLS).",
|
|
946
|
+
"Set width and height (or an aspect-ratio box) on every image.",
|
|
947
|
+
],
|
|
948
|
+
"no-speculation-rules": [
|
|
949
|
+
"PERF-09",
|
|
950
|
+
"low",
|
|
951
|
+
() => "No page asks the browser to start loading the next page early (speculation rules)",
|
|
952
|
+
"Speculation rules let Chrome and Edge start loading a page as soon as a visitor shows they're about to open it (hovering over or pressing a link), so it appears almost at once. A few lines in the shared layout turn this on for the whole site; other browsers ignore them.",
|
|
953
|
+
'Add `<script type="speculationrules">{"prefetch":[{"where":{"href_matches":"/*"},"eagerness":"moderate"}]}</script>` to the shared layout, or send a `Speculation-Rules` header from the server or CDN. Leave out links that change something (log out, add to cart) with a `not` condition.',
|
|
954
|
+
],
|
|
955
|
+
"bfcache-no-store": [
|
|
956
|
+
"PERF-10",
|
|
957
|
+
"low",
|
|
958
|
+
n => `${n} page(s) are sent with Cache-Control: no-store, which can make Back and Forward reload them`,
|
|
959
|
+
"Browsers keep recently visited pages in memory so Back and Forward show them instantly (the back/forward cache). Other browsers may leave out pages sent with `no-store`; Chrome now keeps them, but only for 3 minutes and not once a cookie changes, so visitors going back often wait for a full reload.",
|
|
960
|
+
"Keep `no-store` for pages with private data (account, checkout). For pages that must always be fresh, send `Cache-Control: no-cache` or `max-age=0` instead: browsers still check for updates, and the page can be kept for Back and Forward.",
|
|
961
|
+
],
|
|
962
|
+
"bfcache-unload": [
|
|
963
|
+
"PERF-10",
|
|
964
|
+
"low",
|
|
965
|
+
n => `${n} page(s) have an unload handler, which keeps them out of the back/forward cache`,
|
|
966
|
+
"Browsers keep recently visited pages in memory so Back and Forward show them instantly. Firefox leaves out any page with an `unload` handler, and so does Chrome wherever it still runs them; Chrome is phasing `unload` out, so the code may not run at all.",
|
|
967
|
+
"Replace `unload` with `pagehide`, or with `visibilitychange` for sending analytics and saving state. Only inline code was read: with outside checks on, Chrome's own test also catches handlers that third-party scripts add.",
|
|
968
|
+
],
|
|
969
|
+
"nosnippet": [
|
|
970
|
+
"AI-01",
|
|
971
|
+
"high",
|
|
972
|
+
n => `${n} indexable page(s) block snippets (nosnippet or max-snippet:0)`,
|
|
973
|
+
"Pages that block snippets can't appear as text snippets or be used in Google's AI Overviews and AI Mode.",
|
|
974
|
+
"Remove nosnippet/max-snippet:0 from pages meant to be found; use data-nosnippet on specific sections instead.",
|
|
975
|
+
],
|
|
976
|
+
"html-over-2mb": [
|
|
977
|
+
"REND-08",
|
|
978
|
+
"high",
|
|
979
|
+
n => `${n} page(s) send more than 2 MB of HTML`,
|
|
980
|
+
"Googlebot reads only the first 2 MB of each HTML response. Anything after that isn't indexed.",
|
|
981
|
+
"Move bulky inline data (hydration JSON, long lists) out of the HTML and keep head tags early.",
|
|
982
|
+
],
|
|
983
|
+
"html-size": [
|
|
984
|
+
"PERF-06",
|
|
985
|
+
"low",
|
|
986
|
+
n => `${n} page(s) send more than 500 KB of HTML`,
|
|
987
|
+
"Very large HTML slows the first render and often means inlined data that isn't needed.",
|
|
988
|
+
"Move bulky data out of the HTML and paginate long lists.",
|
|
989
|
+
],
|
|
990
|
+
"dom-size": [
|
|
991
|
+
"PERF-06",
|
|
992
|
+
"low",
|
|
993
|
+
n => `${n} page(s) have more than 1,400 HTML elements`,
|
|
994
|
+
"Every element costs memory and makes each style and layout change slower, so very large pages react late to taps and clicks on phones. Lighthouse flagged pages over about 1,400 elements until version 13. This is counted from the HTML the server sends, so scripts may add more.",
|
|
995
|
+
"Trim repeated markup: paginate or load long lists in parts, drop wrapper `<div>`s, keep inline SVG icons lean, and build menus and pop-ups only when they open.",
|
|
996
|
+
],
|
|
997
|
+
"sec-headers": [
|
|
998
|
+
"TRUST-01",
|
|
999
|
+
"low",
|
|
1000
|
+
n => `The site is missing ${n} recommended security header(s)`,
|
|
1001
|
+
"Security headers protect visitors and are a trust signal, especially for technical audiences.",
|
|
1002
|
+
"Add the missing headers at the server or framework level.",
|
|
1003
|
+
],
|
|
1004
|
+
"security-txt": [
|
|
1005
|
+
"TRUST-02",
|
|
1006
|
+
"low",
|
|
1007
|
+
() => "No /.well-known/security.txt",
|
|
1008
|
+
"security.txt tells researchers how to report vulnerabilities.",
|
|
1009
|
+
"Publish one following RFC 9116 with Contact and Expires.",
|
|
1010
|
+
],
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
Object.assign(CHECKS, HREFLANG_CHECKS, TLS_CHECKS, SPEED_CHECKS, RENDER_CHECKS, VISUAL_CHECKS);
|
|
1014
|
+
Object.assign(CHECKS, AGENT_CHECKS);
|
|
1015
|
+
Object.assign(CHECKS, BUSINESS_CHECKS);
|
|
1016
|
+
Object.assign(CHECKS, TECH_CHECKS, OUTBOUND_CHECKS);
|
|
1017
|
+
Object.assign(CHECKS, {
|
|
1018
|
+
"desc-starts-with-title": [
|
|
1019
|
+
"META-02",
|
|
1020
|
+
"low",
|
|
1021
|
+
n => `${n} description(s) start by repeating the page title`,
|
|
1022
|
+
"Search results show the title right above the description, so a description that opens with the title spends its first, most-read words saying it again.",
|
|
1023
|
+
"Open the description with what the page offers or answers, and leave the title's words to the title.",
|
|
1024
|
+
],
|
|
1025
|
+
});
|
|
1026
|
+
Object.assign(CHECKS, SERVER_CHECK);
|
|
1027
|
+
RULES["CRAWL-10"] = ["Parameter, filter, search and result pages stay out of the index", "Crawling & indexing"];
|
|
1028
|
+
Object.assign(CHECKS, {
|
|
1029
|
+
"parameter-page-indexable": [
|
|
1030
|
+
"CRAWL-10",
|
|
1031
|
+
"medium",
|
|
1032
|
+
n => `${n} page(s) with URL parameters can be indexed as copies of another page`,
|
|
1033
|
+
"These URLs add parameters (a filter, a sort order, an option) to a page the crawl also found without them, and nothing keeps them out of the index: they have no canonical, or one that keeps the parameters. Google then has several URLs for one page, crawls them all and picks a canonical itself, which may not be the one you want.",
|
|
1034
|
+
"Give each parameter version a canonical to the clean URL (or noindex, follow for search and result pages), built from the path, never the request URL. Don't give them a canonical to themselves.",
|
|
1035
|
+
],
|
|
1036
|
+
"url-malformed": [
|
|
1037
|
+
"CRAWL-07",
|
|
1038
|
+
"medium",
|
|
1039
|
+
n => `${n} page(s) have links or images whose address can't be read`,
|
|
1040
|
+
"A link or image address that isn't a valid URL, such as `https://` with no host or a host with a space in it, leads nowhere: browsers and crawlers can't follow the link or load the image. It's usually a template that built the address from an empty or wrong setting.",
|
|
1041
|
+
"Fix the template or content that builds these addresses so each is a full URL (`https://www.example.com/page/`) or a path (`/page/`).",
|
|
1042
|
+
],
|
|
1043
|
+
});
|
|
1044
|
+
Object.assign(CHECKS, {
|
|
1045
|
+
"schema-placeholder": [
|
|
1046
|
+
"SCHEMA-01",
|
|
1047
|
+
"high",
|
|
1048
|
+
n => `${n} page(s) have placeholder text in their structured data`,
|
|
1049
|
+
"Template text such as [Business Name], [Phone] or a REPLACE_ token went live in the JSON-LD. Search engines read it as the real name, phone or address, so the business is described wrongly where visitors can't see it.",
|
|
1050
|
+
"Fill each field from the site's real data, the same settings that feed the page. `scripts/schema-check.mjs` reports these tokens as errors, so run it on the built pages before each release.",
|
|
1051
|
+
],
|
|
1052
|
+
"schema-superseded": [
|
|
1053
|
+
"SCHEMA-05",
|
|
1054
|
+
"low",
|
|
1055
|
+
n => `${n} page(s) use a schema type that schema.org has deprecated`,
|
|
1056
|
+
"schema.org marks these types as deprecated and names the type to use instead: LegalService for Attorney, which it calls more inclusive and less ambiguous.",
|
|
1057
|
+
"Change the type to the one named (Attorney → LegalService) and keep the same properties.",
|
|
1058
|
+
],
|
|
1059
|
+
"schema-image-broken": [
|
|
1060
|
+
"SCHEMA-01",
|
|
1061
|
+
"medium",
|
|
1062
|
+
n => `${n} schema image(s) don't load`,
|
|
1063
|
+
"Structured data points at these images (an article's image, a logo, a video thumbnail), but the URL answers with an error or a web page instead of an image. Google asks for image URLs it can crawl and index, and recipes, movies and vacation rentals show as rich results only with an image.",
|
|
1064
|
+
"Restore the file, or fix the URL in the data the schema is built from. Use the full https:// URL of an image on the public site.",
|
|
1065
|
+
],
|
|
1066
|
+
});
|
|
1067
|
+
// schema-check.mjs holds the value lists (ISO 4217, ItemAvailability). The 3-page shared-H1 cut-off is a local choice.
|
|
1068
|
+
// https://developers.google.com/search/docs/appearance/structured-data/merchant-listing
|
|
1069
|
+
// https://developers.google.com/search/docs/specialty/explicit/guidelines
|
|
1070
|
+
Object.assign(CHECKS, {
|
|
1071
|
+
"product-image-missing": [
|
|
1072
|
+
"SHOP-05",
|
|
1073
|
+
"medium",
|
|
1074
|
+
n => `${n} product page(s) sell a product with no image in its schema`,
|
|
1075
|
+
"Google's merchant listings require an `image` for a Product sold with an Offer, so these products can't show as merchant listings.",
|
|
1076
|
+
"Add the product photos to the Product schema's `image`, from the same data that shows them on the page. Google suggests several high-resolution images in 16:9, 4:3 and 1:1.",
|
|
1077
|
+
],
|
|
1078
|
+
"product-price-zero": [
|
|
1079
|
+
"SHOP-05",
|
|
1080
|
+
"low",
|
|
1081
|
+
n => `${n} product page(s) give a price of 0 in their schema`,
|
|
1082
|
+
"Google's merchant listings need a price above zero, so a product priced 0 can't show as one. A 0 can also be a price that didn't load when the page was built.",
|
|
1083
|
+
"Fill `price` from the live price the page shows. If the product really is free, leave it: product snippets accept a price of 0.",
|
|
1084
|
+
],
|
|
1085
|
+
"product-currency-invalid": [
|
|
1086
|
+
"SHOP-05",
|
|
1087
|
+
"medium",
|
|
1088
|
+
n => `${n} product page(s) give a currency that isn't an ISO 4217 code`,
|
|
1089
|
+
"Google wants `priceCurrency` as a three-letter ISO 4217 code (USD, EUR, GBP), and merchant listings require it. A symbol such as £ or a word such as Euro isn't one.",
|
|
1090
|
+
'Use the three-letter code, such as `"priceCurrency": "GBP"`, from the shop\'s currency setting.',
|
|
1091
|
+
],
|
|
1092
|
+
"product-availability-invalid": [
|
|
1093
|
+
"SHOP-05",
|
|
1094
|
+
"low",
|
|
1095
|
+
n => `${n} product page(s) give a stock status that isn't one of schema.org's values`,
|
|
1096
|
+
"Google lists schema.org's ItemAvailability values for `availability`, as the full URL (`https://schema.org/InStock`) or the short name (`InStock`), and asks for one. Free text such as “in stock”, or several values at once, isn't one of them.",
|
|
1097
|
+
"Map the shop's stock status to one value: `https://schema.org/InStock`, `OutOfStock`, `BackOrder`, `PreOrder` and so on.",
|
|
1098
|
+
],
|
|
1099
|
+
"product-brand-placeholder": [
|
|
1100
|
+
"SHOP-05",
|
|
1101
|
+
"low",
|
|
1102
|
+
n => `${n} product page(s) give “N/A” or a similar stand-in as the brand`,
|
|
1103
|
+
"N/A, None, Generic or an empty name isn't a brand. Google's Merchant Center help says to leave the brand out when in doubt, rather than guess or make one up.",
|
|
1104
|
+
"Leave `brand` out for products that have none. For products the shop makes itself, use the shop's name as the brand, as Merchant Center asks.",
|
|
1105
|
+
],
|
|
1106
|
+
"product-price-expired": [
|
|
1107
|
+
"SHOP-05",
|
|
1108
|
+
"medium",
|
|
1109
|
+
n => `${n} product page(s) have a price whose priceValidUntil date has passed`,
|
|
1110
|
+
"Google says a merchant listing may not show when `priceValidUntil` is in the past.",
|
|
1111
|
+
"Give `priceValidUntil` only for a sale price that really ends, from the same data as the sale, or leave it out.",
|
|
1112
|
+
],
|
|
1113
|
+
"product-adult-unlabelled": [
|
|
1114
|
+
"SHOP-05",
|
|
1115
|
+
"medium",
|
|
1116
|
+
n => `${n} adult product page(s) don't label their products as adult in the schema`,
|
|
1117
|
+
'These pages label themselves adult for SafeSearch (`<meta name="rating" content="adult">`), but their Product schema has no `hasAdultConsideration`. Google says adult products must use it to label them, and they\'re subject to age and country restrictions.',
|
|
1118
|
+
'Add `"hasAdultConsideration": "https://schema.org/SexualContentConsideration"` to each adult Product. It\'s the only value Google Search supports.',
|
|
1119
|
+
],
|
|
1120
|
+
"product-h1-reused": [
|
|
1121
|
+
"CONTENT-04",
|
|
1122
|
+
"medium",
|
|
1123
|
+
n => `${n} product page(s) share an H1 that doesn't name their product`,
|
|
1124
|
+
"Three or more product pages have the same H1, and it isn't the name of any of their products. It's usually a template heading, such as “Product details” or the shop's name, so each page's main heading says nothing about what it sells.",
|
|
1125
|
+
"Make the product's name the H1 of its page, and use H2s for the sections below it (description, specifications, delivery and returns, reviews).",
|
|
1126
|
+
],
|
|
1127
|
+
});
|
|
1128
|
+
// Merchant listing fields Google recommends where a product has them; the report counts them.
|
|
1129
|
+
export const SHOP_FIELDS = {
|
|
1130
|
+
brand: ["brand"],
|
|
1131
|
+
gtin: ["gtin", "gtin8", "gtin12", "gtin13", "gtin14", "isbn", "mpn"],
|
|
1132
|
+
sku: ["sku"],
|
|
1133
|
+
color: ["color"],
|
|
1134
|
+
size: ["size"],
|
|
1135
|
+
material: ["material"],
|
|
1136
|
+
category: ["category"],
|
|
1137
|
+
};
|
|
1138
|
+
Object.assign(CHECKS, MEDIA_CHECKS);
|
|
1139
|
+
RULES["REND-11"] = ["Phones get a working menu, and pages that aren't crowded with ads", "Rendering"];
|
|
1140
|
+
Object.assign(CHECKS, RENDER_MORE_CHECKS);
|
|
1141
|
+
Object.assign(CHECKS, CONTENT_CHECKS);
|
|
1142
|
+
RULES["CONTENT-07"] ??= ["People and dates are behind the advice", "Headings & content"]; // stale-guide's rule; never passed here
|
|
1143
|
+
Object.assign(CHECKS, PAGE_CHECKS);
|
|
1144
|
+
RULES["CONTENT-11"] ??= ["Nothing breaks Google's spam policies", "Headings & content"]; // never passed: see NOT_CRAWLABLE
|
|
1145
|
+
Object.assign(CHECKS, CRAWL_CHECKS);
|
|
1146
|
+
Object.assign(CHECKS, HYGIENE_CHECKS);
|
|
1147
|
+
// Raised by checks/assets.mjs. Error pages aren't indexed, images included, and Google indexes the page as rendered
|
|
1148
|
+
// with its scripts and stylesheets. Medium is a local choice.
|
|
1149
|
+
// https://developers.google.com/search/docs/appearance/google-images
|
|
1150
|
+
// https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics
|
|
1151
|
+
CHECKS["own-file-broken"] = [
|
|
1152
|
+
"CRAWL-07",
|
|
1153
|
+
"medium",
|
|
1154
|
+
n => `${n} of the site's own images, scripts or stylesheets answer with an error (4xx/5xx)`,
|
|
1155
|
+
"A page that loads a missing script or stylesheet looks and works differently from what you built, for visitors and for Google, which renders pages with their scripts and styles and indexes the result. A missing image shows as a broken icon and can't appear in image search, since Google doesn't index error answers.",
|
|
1156
|
+
"Restore each file at its address, or change the pages to the file's new address (a hashed build file often moves on every deploy), and remove references to files you dropped.",
|
|
1157
|
+
];
|
|
1158
|
+
RULES["LAUNCH-04"] ??= ["Measure what visitors do", "Launch & monitoring"]; // only failed here; passing needs a look at the analytics setup
|
|
1159
|
+
// Sitemap, soft-404 and old-URL checks. Severities are local choices, in line with their siblings.
|
|
1160
|
+
Object.assign(CHECKS, {
|
|
1161
|
+
"sitemap-url-invalid": [
|
|
1162
|
+
"MAP-02",
|
|
1163
|
+
"high",
|
|
1164
|
+
n => `${n} sitemap URL(s) aren't full URLs`,
|
|
1165
|
+
"Google asks for fully-qualified, absolute URLs in a sitemap (`https://www.example.com/page/`, not `/page/` or `page.html`) and crawls them exactly as listed, so a relative path or another kind of address in `<loc>` points nowhere, and those pages aren't found through the sitemap.",
|
|
1166
|
+
"Write every `<loc>` as a full URL, built from one production origin setting: `https://`, the host and the path.",
|
|
1167
|
+
],
|
|
1168
|
+
// Google says a well-linked site of about 500 pages or fewer, without much media or news, may not need a sitemap.
|
|
1169
|
+
// checks/coverage.mjs swaps sitemap-missing for this on such a site.
|
|
1170
|
+
// https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview
|
|
1171
|
+
"sitemap-missing-small": [
|
|
1172
|
+
"MAP-01",
|
|
1173
|
+
"low",
|
|
1174
|
+
() => "No XML sitemap found (a small, well-linked site, so it matters less)",
|
|
1175
|
+
"Google says a site of about 500 pages or fewer, linked well enough that every important page can be found from the home page, and without many videos or news pages, might not need a sitemap. This crawl found every page through links from the home page, none more than three clicks deep. A sitemap still tells search engines when pages change, and lists a new page before any link to it exists.",
|
|
1176
|
+
"Generate `/sitemap.xml` from the live content data and reference it in robots.txt, or leave it until the site grows.",
|
|
1177
|
+
],
|
|
1178
|
+
"sitemap-unreachable": [
|
|
1179
|
+
"MAP-01",
|
|
1180
|
+
"medium",
|
|
1181
|
+
n => `${n} listed sitemap file(s) don't load`,
|
|
1182
|
+
"robots.txt or a sitemap index names these sitemap files, but they answer an error instead of the file, so search engines can't read the URLs in them. An old `Sitemap:` line left behind after the sitemap moved usually does this.",
|
|
1183
|
+
"Point the `Sitemap:` line and the sitemap index at the sitemap's current address, or serve the file there again, and check it answers 200 with the XML.",
|
|
1184
|
+
],
|
|
1185
|
+
"soft-404-noindex": [
|
|
1186
|
+
"CRAWL-05",
|
|
1187
|
+
"low",
|
|
1188
|
+
() => "Unknown URLs answer 200 with a noindex",
|
|
1189
|
+
"A made-up URL returned a page with status 200 that says noindex, so Google won't index it. Google accepts this for apps that route in the browser, where sending a real status code can be impractical. A real 404 is still the plainer answer where the server can send one.",
|
|
1190
|
+
"Where the server or framework can, return a 404 status for unknown paths (and 410 for removed content). In an app that routes in the browser, keep the noindex, or send the browser to a URL that answers 404.",
|
|
1191
|
+
],
|
|
1192
|
+
"soft-404-page": [
|
|
1193
|
+
"CRAWL-05",
|
|
1194
|
+
"high",
|
|
1195
|
+
n => `${n} page(s) answer 200 but read like an error page`,
|
|
1196
|
+
"These pages return status 200, but their title or main heading says “not found”, “404” or “no results”. Google treats a page like that as a soft 404 and leaves it out of search, and the links to it lead visitors to a dead end.",
|
|
1197
|
+
"If the page is gone, return a 404 or 410 status and remove the links to it. If it's a real page, give it a real title and heading and its content. An empty category or search page that shows “no results” should be noindex, or not linked, until it has items.",
|
|
1198
|
+
],
|
|
1199
|
+
"old-urls-same-target": [
|
|
1200
|
+
"URL-07",
|
|
1201
|
+
"medium",
|
|
1202
|
+
n => `${n} page(s) receive the redirects of many old URLs`,
|
|
1203
|
+
"Many old URLs redirect to the same page: the home page, or one other page. Google says not to redirect many old URLs to one irrelevant page, such as the home page, since it can confuse visitors and may be treated as a soft 404, so the old pages' links and rankings aren't passed on.",
|
|
1204
|
+
"Point each old URL at its closest new page with one 301 or 308. If the old pages' content was merged into this page, the redirects are fine as they are. An old page with no match can answer 404 or 410.",
|
|
1205
|
+
],
|
|
1206
|
+
"sitemap-empty": [
|
|
1207
|
+
"MAP-01",
|
|
1208
|
+
"medium",
|
|
1209
|
+
n => `${n} sitemap file(s) list no URLs`,
|
|
1210
|
+
"These sitemap files answer, but no URL is in them, so they tell search engines nothing. A generator that ran before the content loaded, or a query that came back empty, usually does this.",
|
|
1211
|
+
"Build the sitemap from the same live data as the pages, and check that it lists every page meant to rank. If a file isn't needed, take it out of robots.txt and the sitemap index.",
|
|
1212
|
+
],
|
|
1213
|
+
});
|
|
1214
|
+
CHECKS["markdown-differs"] = [
|
|
1215
|
+
"AI-05",
|
|
1216
|
+
"low",
|
|
1217
|
+
() => "The Markdown version of a page says something different from the page",
|
|
1218
|
+
"AI agents that ask for Markdown read this version instead of the page. Markdown made from the page as it's served (Cloudflare's Markdown for Agents works this way) says the same thing, so a big difference usually means a Markdown copy written by hand that has fallen behind the page. Agents then quote old or missing facts.",
|
|
1219
|
+
"Make the Markdown from the page itself, when the page is built or served, so the two can't drift apart. If it's written by hand on purpose, update it every time the page changes.",
|
|
1220
|
+
];
|
|
1221
|
+
// Heading order and count don't matter to Search, only to screen readers, but an H1 can feed the title link.
|
|
1222
|
+
// https://developers.google.com/search/docs/fundamentals/seo-starter-guide
|
|
1223
|
+
// https://developers.google.com/search/docs/appearance/title-link
|
|
1224
|
+
Object.assign(CHECKS, {
|
|
1225
|
+
"h1-missing": [
|
|
1226
|
+
"CONTENT-01",
|
|
1227
|
+
"low",
|
|
1228
|
+
n => `${n} page(s) have no H1`,
|
|
1229
|
+
"The H1 is the page's main heading. Visitors read it to check they're in the right place, and Google reads headings, the H1 among them, when it writes a page's title link in results.",
|
|
1230
|
+
"Give the page one H1 that names its topic, usually close to its title. Logos and card titles are not H1s.",
|
|
1231
|
+
],
|
|
1232
|
+
"h1-multiple": [
|
|
1233
|
+
"CONTENT-01",
|
|
1234
|
+
"low",
|
|
1235
|
+
n => `${n} page(s) have more than one H1`,
|
|
1236
|
+
"Google says there's no ideal number of headings, so this isn't a Search problem. It can blur which heading is the page's main title, for visitors and for Google when it writes the title link.",
|
|
1237
|
+
"Keep one H1 for the page's topic, and make logos, card titles and section titles H2s or plain text.",
|
|
1238
|
+
],
|
|
1239
|
+
// Google wants every page that matters linked in context from at least one other page.
|
|
1240
|
+
// https://developers.google.com/search/docs/crawling-indexing/links-crawlable
|
|
1241
|
+
"nav-only-links": [
|
|
1242
|
+
"LINK-02",
|
|
1243
|
+
"low",
|
|
1244
|
+
n => `${n} sitemap page(s) are linked only from menus, footers or sidebars`,
|
|
1245
|
+
"Menu and footer links are real links that search engines follow, so these pages aren't orphans. Google suggests linking pages in context too, from the text of related pages, which helps people and Google see what each page is about.",
|
|
1246
|
+
"Add a link from the body of one or two related pages, with link text that says what the page is.",
|
|
1247
|
+
],
|
|
1248
|
+
});
|