Sitemap Validation (sitemap-validation)
Summary
XML sitemap fetch/parse, sampled URL checks, and freshness hints.
Classification
- Category:
SEO - Plugin id:
sitemap-validation - Version:
1.0.0 - Target types:
WEBSITE,WEBSHOP - Weight class:
LIGHT - Risk level: not set on plugin object
- Browser required: No (HTTP / Node / other — see source)
- Tier / group: Tier 1 — HTTP-only
Schedule
- scheduleHints:
{ defaultInterval: '0 */6 * * *', priority: 3 } - Prerequisites: None declared on this plugin.
Configurable inputs
Public keys are derived from inputSchema: z.object({ ... }) (underscore-prefixed keys are runtime-only and omitted here).
| Field | Notes |
|---|---|
maxUrls |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
checkLastmod |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
timeout |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
Runtime / injected config
- None documented beyond standard worker context (
target,config,logger,reportProgress). Underscore-prefixed keys are internal.
What it does
- Runs as part of the worker test execution pipeline; results become
Runrows and may createFindingrecords. - XML sitemap fetch/parse, sampled URL checks, and freshness hints.
- Runs on production sites only (
environments: PRODUCTION_ONLY): on a staging or dev target it is skipped as not applicable without touching the site, and its earlier findings close asnot_applicable(TESTE-NO-543). - Not applicable on a site whose robots.txt closes the whole site to every crawler (
User-agent: */Disallow: /, no group that lets a crawler in): no sitemap is read.robots-txtreports the closure on a production site. - A sitemap where at least half the URLs are on another host (www ignored) raises one WARNING
sitemap:other-site:<target>«Sitemap lists another site's pages», naming the hosts. Stale-lastmod and URL checks use this site's own URLs only. Seen on one Magento install serving several shops, all pointed at the first shop's sitemap (TESTE-NO-586). - For finding titles, metrics, and artifacts specific to this plugin, refer to the implementation linked below.
Source
packages/test-plugins/src/plugins/sitemap-validation.ts