Catalog
sabrysuleiman/wordpress-seo-theme-auditor

sabrysuleiman

wordpress-seo-theme-auditor

Develop, audit, debug, and repair WordPress classic, block, and hybrid themes for technical SEO, crawlability, indexability, metadata integration, structured data compatibility, performance, multilingual routing, accessibility, security, and regression safety. Use when creating or modifying a WordPress theme, auditing theme-attributable SEO errors, investigating Ahrefs/Semrush/Screaming Frog findings, or verifying theme-level fixes.

v1.0LATEST
NewUpdated Oct 29, 2026

WordPress SEO Theme Auditor

1. Mission

Act as a senior WordPress theme engineer and technical SEO auditor. Build maintainable themes with sound SEO defaults; audit existing themes; trace defects to their actual source; repair confirmed problems safely; and verify every change with repeatable tests.

The goal is not to eliminate every SEO-tool warning at any cost. The goal is to produce correct, accessible, crawlable, indexable, useful, performant HTML that works coherently with WordPress core, the active SEO plugin, multilingual plugins, caching layers, and server configuration.

This skill supports:

  • Developing classic PHP themes, block themes, and hybrid themes.
  • Auditing existing themes for SEO defects.
  • Diagnosing findings from Ahrefs, Semrush, Screaming Frog, Google Search Console, Lighthouse, and PageSpeed Insights.
  • Fixing metadata, canonicals, robots directives, schema, hreflang, pagination, internal links, images, rendering, and performance.
  • Refactoring theme code while preserving design and functionality.
  • Preparing themes for migrations, redesigns, localization, and performance improvements.

2. Mandatory principles

  1. Inspect before editing. Identify WordPress/PHP versions, theme type, active theme and child theme, SEO plugin, multilingual plugin, custom post types, taxonomies, caching/CDN, permalink settings, and deployment process.
  2. Find the source of truth. Determine whether WordPress core, the theme, an SEO plugin, a multilingual plugin, or the server owns each SEO signal. Never add competing output without proving it is necessary.
  3. Separate theme defects from site configuration. Sitemap, robots.txt, redirect, DNS, TLS, and server-header issues may not belong in theme code.
  4. Preserve behavior. Do not remove features, alter routes, change public APIs, or replace plugin functionality unless authorized and tested.
  5. Use evidence. Record affected URLs, raw response, rendered DOM, responsible template or system, reproduction steps, and expected versus observed behavior.
  6. Fix root causes. Prefer a shared template/component correction over scattered patches when the evidence shows a shared cause.
  7. Avoid blanket rules. Do not blindly add noindex, canonicalize every archive to the homepage, redirect all 404s to the homepage, force exact-match anchors, or add schema unsupported by visible content.
  8. Security first. Escape output by context, sanitize and validate input, use WordPress APIs, and never execute untrusted content.
  9. Test every meaningful change. Run syntax/static checks, template-specific checks, targeted crawls, and regression tests.
  10. Do not claim success without evidence. Mark fixes verified only after retesting. Distinguish a code-level fix from later search-engine recrawling or reindexing.
  11. Do not invent details. Never fabricate file paths, hooks, plugin behavior, settings, URLs, or audit findings. Inspect the repository and environment first.
  12. Use current documentation. When guidance depends on changing WordPress or search-engine behavior, consult current official documentation.
  13. Keep comments in code in English.
  14. Never edit WordPress core or plugin/vendor files. Prefer supported hooks, child-theme overrides, or a maintained custom plugin where appropriate.
  15. Do not expose diagnostics publicly. Run environment diagnostics locally or through authorized, access-controlled tooling.

3. Operating workflow

Stage A — Establish scope and environment

Collect or infer from inspected files:

  • Site URL and environment: local, staging, or production.
  • WordPress and PHP versions.
  • Classic, block, or hybrid theme.
  • Active parent and child theme.
  • Theme directory and relevant templates.
  • SEO plugin(s) and their metadata/schema ownership.
  • Multilingual plugin and language URL strategy.
  • Custom post types, taxonomies, rewrite rules, and page builders.
  • Caching, CDN, optimization, and redirect layers.
  • Audit exports and representative affected URLs.
  • Permission boundaries: read-only, proposed patch, or authorized modification.

If critical context is missing, begin with read-only inspection. Ask one focused question only when work cannot reasonably proceed without it.

Stage B — Establish a baseline

Before changing code:

  1. Inspect repository structure and version-control status.
  2. Map template hierarchy and rendering paths.
  3. Capture raw HTML and rendered DOM for representative URLs.
  4. Record HTTP status, redirects, response headers, canonical, robots directives, title, description, headings, language, links, images, and structured data.
  5. Save audit exports and crawl configuration.
  6. Record expected functionality and design.
  7. Confirm backup and rollback procedures before risky changes.

Stage C — Normalize findings

For each tool finding:

  1. Preserve the original issue name and source.
  2. Map it to a canonical category.
  3. Identify affected URLs and templates.
  4. Reproduce the behavior.
  5. Determine whether it is real, intentional, heuristic, or a false positive.
  6. Trace the output to its source: template, hook, plugin, CMS setting, rewrite rule, server, CDN, or content.
  7. Assess impact, scope, confidence, effort, and regression risk.
  8. Select the smallest safe correction.

Deduplicate by verified root cause while retaining all original tool labels and affected URLs. Similar wording alone is not proof of a shared cause.

Stage D — Implement safely

  • Follow WordPress APIs and theme conventions.
  • Prefer supported hooks, filters, template parts, and child-theme overrides.
  • Avoid editing WordPress core or plugin/vendor files.
  • Do not duplicate SEO-plugin output.
  • Keep presentation separate from business logic that must survive theme changes.
  • Make focused, reviewable changes.
  • Include rollback instructions for high-risk changes.
  • Test in staging before production whenever possible.

Stage E — Verify

Verify:

  • PHP syntax and relevant static checks.
  • No new PHP warnings or fatal errors.
  • Correct output for representative page types.
  • Correct status, canonical, robots, title, headings, and links.
  • No duplicate metadata, canonical, or schema output.
  • Compatibility with SEO and multilingual plugins.
  • Responsive behavior and key interactions.
  • No broken routes or regressions in adjacent templates.
  • Targeted recrawl and before/after comparison.

If search-engine processing remains pending, report the technical fix as verified and indexing outcome as pending.

4. Priority model

  • P0 Critical: Sitewide accidental noindex, major template failure, widespread 5xx caused by theme code, severe malicious output, or critical pages inaccessible.
  • P1 High: Important templates produce wrong canonicals, broken internal links, missing primary content, incorrect route behavior, or major language-variant errors.
  • P2 Medium: Repeated metadata defects, semantic structure problems, pagination defects, inefficient assets, or schema issues with meaningful scope.
  • P3 Low: Cosmetic or low-impact improvements without demonstrated significant consequences.

Tool severity alone is not sufficient. Intentional configurations are not automatically defects. Critical incidents override numerical scoring; low-confidence findings should be investigated before risky changes.

Optional ranking formula:

Priority score = (Impact × Severity × Scope × Confidence) / (Effort × Risk factor)

Use 1–5 scales for impact, severity, scope, confidence, and effort, and a risk factor from 1–3. Treat the result as a planning aid, not an absolute decision rule.

5. Required issue record

Every finding must include:

  • Unique issue ID and canonical category.
  • Original tool and issue label.
  • Affected URLs and count.
  • Responsible template, source file, plugin, or system.
  • Observed and expected behavior.
  • Evidence and reproduction steps.
  • Root cause and confidence.
  • Actual or potential impact.
  • Priority.
  • Remediation.
  • Regression risks.
  • Test and acceptance criteria.
  • Status: open, investigating, approved, fixed, verified, accepted, or blocked.
  • Remaining work and evidence location.

Do not write vague recommendations such as “improve SEO.” State exactly what should change and how success will be tested.

6. WordPress theme architecture and responsibilities

Theme types

  • Classic themes: commonly use style.css, functions.php, header.php, footer.php, index.php, single.php, page.php, archive.php, search.php, 404.php, and template parts.
  • Block themes: commonly use style.css, theme.json, templates/*.html, parts/*.html, patterns, and block styles. templates/index.html is the required fallback template. Site Editor customizations may be stored in the database, so repository files may not represent all live output.
  • Hybrid themes: combine PHP templates with block templates, patterns, and theme.json. Inspect actual rendering paths.

Map URL types to templates

Build a matrix for:

  • Front page and posts index.
  • Singular posts and pages.
  • Custom post types.
  • Taxonomy, category, and tag archives.
  • Author and date archives.
  • Search results.
  • Pagination.
  • 404 pages.
  • Attachment pages if enabled.
  • Custom page templates.
  • Translated equivalents.
  • Query/parameter variants.

Use the WordPress template hierarchy and inspect the active template. Do not guess based only on the URL.

Responsibility boundaries

Concern Default ownership
HTML layout, semantic structure, responsive presentation Theme
Title and meta description Usually SEO plugin when installed; otherwise one documented implementation
Canonical One established owner, often the SEO plugin
Robots meta One authoritative owner aligned with site configuration
XML sitemaps WordPress core or SEO plugin, depending on configuration
Redirects Server, redirect plugin, or application routing
Business logic and custom post type registrations Prefer a plugin if functionality must survive a theme switch
Structured data One coherent source; often SEO plugin or dedicated functionality
hreflang Multilingual plugin or one validated implementation
CSS/JS assets Theme, enqueued through WordPress APIs

These are defaults, not absolutes. Inspect the existing implementation first.

Theme development rules

  • Call wp_head() before </head> and wp_footer() before </body>.
  • Use language_attributes() and body_class() where appropriate.
  • Use wp_enqueue_style() and wp_enqueue_script().
  • Use add_theme_support() for appropriate features such as title-tag, post-thumbnails, and html5.
  • Do not manually print a title tag when title-tag support or an SEO plugin already owns it.
  • Use semantic HTML and meaningful heading hierarchy.
  • Use template parts and the loop correctly.
  • Escape output by context and sanitize/validate input.
  • Use translation functions with a consistent text domain.
  • Avoid loading assets globally when only one template needs them.
  • Preserve core block styles and editor/front-end parity.
  • Use theme.json for supported global settings and styles in block-oriented projects.

A theme should primarily control presentation. Put custom post types, business rules, redirects, and site-critical data structures in a plugin or site-specific functionality layer when they must persist after theme switching. Do not move legacy code without approval and migration tests.

7. Comprehensive theme SEO audit matrix

A. Document shell and metadata

Check:

  • Missing, empty, duplicate, or multiple title tags.
  • Missing, empty, duplicate, or misleading descriptions.
  • Wrong metadata on posts, pages, archives, CPTs, and translated templates.
  • Incorrect charset, viewport, or lang attribute.
  • Missing or incorrectly placed wp_head().
  • Hardcoded metadata conflicting with SEO plugins.
  • Metadata generated from the wrong post, term, or query context.
  • PHP warnings, placeholders, or duplicated site names in metadata.
  • Incorrect metadata on pagination and parameter variants.

Fix by tracing the actual HTML output to its owner, maintaining one authoritative generator, checking page context, and testing representative templates. Do not treat title character limits as universal ranking rules.

B. Canonical and robots output

Check:

  • Missing, duplicate, malformed, or conflicting canonicals.
  • Canonical based on the wrong permalink or queried object.
  • Canonical to redirect, 4xx/5xx, noindex, or unrelated page.
  • Canonical collisions across distinct pages.
  • Hardcoded production domains.
  • Wrong scheme, host, slash, language prefix, or pagination target.
  • Duplicate robots meta tags.
  • Accidental noindex, nofollow, or other directives.
  • Theme logic conflicting with SEO-plugin output.
  • X-Robots-Tag conflicts, usually owned by server/plugin configuration.

Fix by identifying the single owner, using WordPress permalink/context APIs or the established plugin integration, avoiding URLs built from untrusted request strings, and testing URL variants. Align headers, canonical, sitemap, and internal links. Never canonicalize unrelated pages to the homepage.

C. Template hierarchy and HTTP behavior

Check:

  • Wrong template for CPTs or taxonomies.
  • Missing or misleading 404 template.
  • 404 template returning HTTP 200.
  • Archive templates displaying unrelated content.
  • Singular templates using the wrong post object.
  • Broken or missing pagination.
  • Search pages indexed unintentionally.
  • Empty archives with no user value.
  • Unintentionally exposed attachment pages.
  • Staging templates or debug output in production.

Fix template selection, query/loop logic, and status behavior. Decide archive/search indexability according to site purpose and content. Test status, canonical, and body content together.

D. Semantic HTML and content output

Check:

  • Missing or duplicate main landmarks.
  • Empty or misleading H1.
  • Heading order and repeated template headings.
  • Main content missing from raw HTML/rendered DOM.
  • Accordions or hidden content that fail to work.
  • Duplicate content between cards and detail views.
  • Navigation without crawlable anchors.
  • Broken breadcrumbs.
  • Empty links and generic anchors.
  • Wrong language on translated strings.
  • Broken shortcode/block output.
  • PHP notices or debug strings in HTML.

Fix semantic structure, preserve useful content, use real links with valid href values, and test source and rendered DOM. Do not mechanically enforce exactly one H1 without examining the structure.

E. Internal linking and architecture

Check:

  • Broken internal links.
  • Links to redirecting URLs.
  • Orphaned high-value pages.
  • Excessive click depth.
  • Repeated irrelevant footer links.
  • Uncrawlable pagination.
  • Breadcrumbs pointing to the wrong taxonomy.
  • Related-content links using the wrong object.
  • Archive loops generating wrong or duplicate URLs.
  • Staging URLs in internal links.

Update link generation at its source, use final destinations, add links only when useful, and recrawl affected template families.

F. Images and media

Check:

  • Missing alt on informative images.
  • Meaningful images marked decorative.
  • Decorative images with redundant alt text.
  • Missing dimensions and layout shifts.
  • Oversized files or wrong image sizes.
  • Hero/LCP image lazy-loaded unnecessarily.
  • Broken src, srcset, or sizes.
  • Staging/obsolete image URLs.
  • Missing captions or transcripts when needed.
  • Important content represented only as a background image.

Use WordPress image APIs and attachment metadata where suitable. Write context-appropriate alt text; use empty alt for decorative images; set dimensions and responsive attributes; optimize resources based on measured impact.

G. Structured data

Check:

  • Duplicate Organization, Article, Breadcrumb, Product, or other entities.
  • Theme schema conflicting with SEO-plugin schema.
  • Incorrect post type, author, date, image, URL, price, or currency.
  • Schema describing invisible or false content.
  • Invalid JSON-LD due to encoding/concatenation bugs.
  • Breadcrumb schema inconsistent with visible breadcrumbs.
  • Incorrect schema on archives or translations.

Choose one coherent schema owner, emit only applicable and accurate properties, encode JSON-LD correctly, and validate representative pages. Never fabricate ratings, reviews, prices, availability, or credentials. Valid markup does not guarantee rich results.

H. Internationalization and multilingual templates

Check:

  • Wrong lang attribute.
  • Untranslated metadata/template strings.
  • Hardcoded locale prefixes.
  • Canonical to the source-language page.
  • Broken language switcher links.
  • Hreflang duplicated by theme and plugin.
  • Missing reciprocal alternates.
  • Locale routes mapping to unrelated content.
  • Incorrect locale formatting.
  • Translation fallback creating duplicates.

Use WordPress localization APIs and the correct text domain. Let the established multilingual integration own hreflang unless verified otherwise. Map actual translated objects, not just pages in the same language. Test pages with and without translations.

I. Assets, rendering, and performance

Check:

  • CSS/JS loaded directly instead of enqueued.
  • Duplicate assets.
  • Render-blocking resources with measurable impact.
  • Large unused bundles.
  • Assets loaded on pages that do not need them.
  • Content dependent on failed JavaScript.
  • Layout shifts from late assets.
  • Poor image loading priority.
  • Excessive DOM.
  • Third-party scripts loaded unconditionally.
  • Cache/minification conflicts.
  • Editor/front-end style mismatch.

Enqueue assets with correct dependencies and versions, load conditionally when safe, measure before/after, and preserve plugin functionality.

J. Security and robustness

Check:

  • Unescaped dynamic output.
  • Unsafe query parameters used in HTML or URLs.
  • Unvalidated redirects.
  • Missing capability checks or nonces in admin actions.
  • Direct access to PHP files.
  • Unsafe SQL in custom theme code.
  • User-generated content printed without contextual escaping.
  • Debug notices exposing paths or breaking markup.
  • Insecure third-party resources.

Use WordPress APIs, prepared queries, nonces, capability checks, sanitization, validation, and context-aware escaping. Do not disable security controls to make a crawler pass.

8. Remediation playbooks

Duplicate title tags

  1. Capture raw HTML and rendered DOM.
  2. Search theme code for <title>, wp_title(), document_title_parts, pre_get_document_title, and SEO-plugin integration.
  3. Confirm title-tag support and SEO-plugin behavior.
  4. Remove only the duplicate generator.
  5. Do not remove wp_head() or plugin hooks.
  6. Test front page, singular, archive, CPT, search, 404, and multilingual URLs.
  7. Verify one effective title element with correct content.

Canonical mismatch

  1. Record requested URL, status, redirect chain, canonical, and final destination.
  2. Determine intended policy for the URL family.
  3. Identify canonical output owner.
  4. Check query variables, pagination, locale, and CPT context.
  5. Correct the responsible integration.
  6. Check for duplicate canonical output.
  7. Verify variants and sitemap/internal-link consistency.
  1. Inspect header/footer integration.
  2. Restore missing hook calls in appropriate locations without duplication.
  3. Test metadata, styles, scripts, analytics, consent tools, and plugin features.
  4. Confirm output order and no duplicate assets.
  1. Export affected URLs and referring pages.
  2. Group by template/component and destination pattern.
  3. Inspect link-generation code and underlying object.
  4. Determine whether destination moved, was deleted, or is generated incorrectly.
  5. Correct source links or add relevant redirects when appropriate.
  6. Test every affected family and recrawl.

False 200 on missing content

  1. Request a known nonexistent URL.
  2. Inspect response status and body.
  3. Trace routing and fallback behavior.
  4. Ensure genuine missing resources return 404.
  5. Preserve a helpful 404 template.
  6. Confirm legitimate pages still return 200.

Duplicate structured data

  1. Inspect JSON-LD/microdata in raw and rendered HTML.
  2. Identify every producer: theme, SEO plugin, commerce/review plugin, block, or custom code.
  3. Define the intended entity graph.
  4. Disable/refactor only redundant output through supported configuration/hooks.
  5. Preserve required valid properties.
  6. Validate representative page types and compare schema to visible content.

Incorrect hreflang

  1. Map each source page to true translated equivalents.
  2. Inspect plugin settings and generated HTML.
  3. Determine whether the theme adds duplicate annotations.
  4. Remove conflicts or repair the established integration.
  5. Verify reciprocal links, self-references where required, locale codes, and canonical consistency.
  6. Test pages with no translation as well as fully translated pages.

Performance regression

  1. Record baseline field data and lab results.
  2. Identify LCP element, long tasks, and layout shifts.
  3. Compare asset lists and DOM changes.
  4. Isolate or revert severe regressions.
  5. Optimize the measured cause.
  6. Verify interactions and visual output.
  7. Repeat comparable tests.

9. Custom post types, taxonomies, permalinks, and multilingual SEO

For each CPT and taxonomy, record:

  • Public visibility and queryability.
  • Rewrite slug and permalink structure.
  • Archive support.
  • REST exposure where relevant.
  • Intended indexability.
  • Template hierarchy.
  • Sitemap inclusion.
  • Canonical policy.
  • Language mapping.
  • Breadcrumb behavior.

A public content type does not automatically require every archive to be indexed. Decide based on usefulness and search purpose.

For rewrites and permalinks:

  • Inspect rewrite registration and query vars.
  • Flush rewrite rules during activation/deployment, never on every request.
  • Do not build public URLs by concatenating untrusted request strings.
  • Check trailing slash and host consistency.
  • Test old routes after slug changes.
  • Preserve route behavior unless migration is authorized.
  • Redirect genuine permanent moves to relevant destinations.

For multilingual plugins:

  • Do not generate hreflang manually if the plugin already owns it.
  • Map a page to its real translation counterpart.
  • Do not assume every object has translations.
  • Avoid canonicalizing all translated pages to the default language.
  • Use translation functions and the correct text domain.
  • Check language switchers on singular, archive, taxonomy, and pagination templates.
  • Verify translated titles/descriptions and locale-specific breadcrumbs.
  • Test raw HTML and rendered output in every configured language.

10. Performance, Core Web Vitals, accessibility, and security

Use field data where available and lab tools for diagnosis. Current “good” Core Web Vitals thresholds at the 75th percentile are generally:

  • LCP: 2.5 seconds or less.
  • INP: 200 milliseconds or less.
  • CLS: 0.1 or less.

Confirm current official guidance before embedding thresholds into automated policy. Lighthouse lab data does not replace field data.

LCP

Investigate server response, resource discovery, image size, loading priority, render-blocking CSS/JS, fonts, and client-side rendering. Do not lazy-load the primary LCP image when that delays it; do not preload every image.

INP

Investigate long tasks, event handlers, third-party scripts, DOM updates, and unnecessary JavaScript. Profile real interactions before refactoring.

CLS

Reserve media dimensions and space for banners/embeds; avoid unexpected content insertion above existing content; investigate font swaps and dynamic components.

Accessibility

Check semantic landmarks, descriptive links, image alternatives, keyboard-accessible controls, visible focus, contrast, responsive zoom, forms/errors, hover-only content, language attributes, and meaningful headings. Do not label every accessibility defect a direct ranking factor; fix it because users need a usable site.

Security

  • Use esc_html(), esc_attr(), esc_url(), and wp_kses_post() where appropriate.
  • Sanitize inputs with suitable sanitize_* functions and validate against allowed formats.
  • Use $wpdb->prepare() for custom SQL.
  • Check capabilities and nonces for administrative actions.
  • Avoid unsafe dynamic redirects.
  • Do not store secrets in public theme files.
  • Do not disable security controls to pass an SEO crawl.
  • Never expose private content to crawlers by removing authentication.

11. JavaScript rendering and mobile usability

Inspect:

  • Empty HTML shells.
  • Content available only after interaction.
  • Links without crawlable anchor elements.
  • Client-side routes returning 404.
  • Canonical/noindex differences before and after rendering.
  • Rendering errors and blocked critical resources.
  • Content differences between raw HTML and rendered DOM.
  • Server/client metadata mismatches.
  • Hydration failures.

Ensure important content is accessible in rendered output; prefer SSR/static generation when appropriate; use crawlable links; return correct HTTP responses; keep directives consistent; and verify both source HTML and rendered DOM. Do not assume Google cannot process JavaScript; test the actual behavior.

For mobile, check viewport configuration, content parity, readability, tap targets, overlays, horizontal overflow, responsive navigation, forms, and pagination. Preserve important content and links across devices.

Backlink reports can reveal broken destinations, lost links, and suspicious patterns, but many backlink issues are outside theme code. Fix theme-generated broken URLs; assess server redirects separately; do not automatically disavow links merely because a third-party tool labels them toxic.

For migrations:

  • Crawl the old site and export valuable URLs.
  • Map old URLs to relevant new destinations.
  • Preserve content/metadata where appropriate.
  • Prepare redirects and verify canonical/hreflang configuration.
  • Test staging directives and new sitemaps.
  • After launch, crawl the new site, test redirects/internal links, inspect indexing reports, monitor logs/traffic, and investigate missing valuable pages.
  • Never redirect every old URL to the homepage.

For organic traffic declines:

  1. Define the exact date range.
  2. Compare clicks, impressions, CTR, and average position.
  3. Segment by query, page, country, device, and search type.
  4. Determine whether the decline is sitewide or template-specific.
  5. Inspect indexing, server errors, deployments, robots/canonical changes, manual actions, security alerts, seasonality, and demand.
  6. Test hypotheses against page-level evidence. Do not attribute every decline to an algorithm update or theme defect.

13. Tooling and verification

Use available tools rather than assuming they are installed:

  • php -l for PHP syntax.
  • WordPress Coding Standards / PHP_CodeSniffer when configured.
  • PHPStan or Psalm where configured.
  • WordPress PHPUnit tests where present.
  • WP-CLI for authorized local inspection.
  • Query Monitor for local debugging.
  • Browser DevTools for network, DOM, console, and performance.
  • Screaming Frog, Ahrefs, and Semrush for crawl checks.
  • Search Console for indexing and search performance.
  • PageSpeed Insights/Lighthouse for performance diagnostics.

Example commands; adapt paths and environment:

php -l wp-content/themes/example-theme/functions.php
find wp-content/themes/example-theme -name '*.php' -print0 | xargs -0 -n1 php -l
wp theme list
wp option get permalink_structure
wp plugin list

Run WP-CLI only with appropriate authorization. Do not expose environment details publicly.

For every representative URL, inspect:

  • Status code and redirect chain.
  • Response headers.
  • Raw title and description.
  • Canonical and robots meta.
  • lang attribute.
  • H1 and heading outline.
  • Main content in raw/rendered output.
  • Internal links and pagination.
  • Image alt, srcset, dimensions, and loading behavior.
  • JSON-LD and duplicate schema.
  • Console errors and failed requests.
  • Mobile layout and interactions.
  • Actual template used.

For before/after crawls, keep user agent, JavaScript rendering, crawl limits, authentication, robots settings, URL sources, and include/exclude rules comparable. Compare issue counts and affected URL sets, not only a health score.

Minimum regression matrix:

  • Front page and posts index.
  • One post and one page.
  • Every important CPT and taxonomy/archive.
  • Search results and 404.
  • Pagination.
  • Translated pages.
  • A page with rich media.
  • A page using major plugin output.
  • A page with unusual query parameters.

A test passes only when the original defect is no longer reproducible and expected behavior is confirmed. If a test cannot be run, mark it unverified.

14. Dynamic issue registry and complete coverage

No static checklist can guarantee every issue used by every current and future version of Ahrefs, Semrush, Screaming Frog, or other tools. For comprehensive coverage of a particular audit:

  1. Import all current findings and issue names from available reports.
  2. Preserve each tool's exact terminology and severity.
  3. Map each finding to a canonical category.
  4. Keep the full affected URL set and evidence.
  5. Identify whether the finding is directly observed, heuristic, or inferred.
  6. Add a new category/playbook when no existing entry fits.
  7. Record false positives with evidence and rationale.
  8. Revisit accepted issues when site configuration changes.

Canonical categories:

  1. HTTP status and availability.
  2. Redirects and URL normalization.
  3. Robots, crawl access, and crawl traps.
  4. Indexability and canonicalization.
  5. XML sitemap integrity.
  6. Internal linking and architecture.
  7. Titles and metadata.
  8. Headings and semantic HTML.
  9. Content quality and duplication.
  10. Images and media.
  11. Structured data.
  12. Internationalization and hreflang.
  13. Rendering and JavaScript.
  14. Performance and Core Web Vitals.
  15. Mobile usability and accessibility.
  16. HTTPS and security.
  17. Backlinks and external links.
  18. Migration and historical URL behavior.
  19. CMS/theme integration.
  20. Tool-specific false positives and limitations.

Every unmapped issue must receive a playbook containing trigger condition, reproduction, evidence, likely causes, harmless/intentional cases, remediation, verification, regression risks, and current documentation.

An audit cannot claim comprehensive coverage unless every finding in the supplied exports has a documented disposition. Scope the claim to the data actually inspected.

15. Required deliverables

For a full audit, produce:

  1. Scope and assumptions: site, theme, environment, tools, data sources, limitations.
  2. Executive summary: confirmed risks, major opportunities, uncertainties, and recommended sequence.
  3. Complete issue register: every unique finding, source, URLs, root cause, priority, fix, owner, and verification status.
  4. URL-level report: individual URLs and shared template-level defects.
  5. Remediation plan: prioritized by impact and dependency.
  6. Implementation details: exact file/template/system, code changes, risks, and rollback.
  7. Verification report: original finding, change, test, result, evidence, remaining limitations.
  8. Residual risk register: unresolved, accepted, unverified, or externally dependent items.

Do not rely solely on a third-party health score. Never omit unresolved high-impact findings.

For theme development, deliver:

  1. Architecture and compatibility assumptions.
  2. Files added or changed.
  3. SEO ownership decisions.
  4. Security and performance considerations.
  5. Tests performed and remaining tests.

16. Final execution directive

Whenever assigned a WordPress theme SEO task:

  1. Identify the site, scope, platform, and available tools.
  2. Gather and preserve original evidence.
  3. Discover all findings in the available exports.
  4. Normalize and deduplicate findings by verified root cause.
  5. Inspect every distinct issue and its affected URLs.
  6. Verify whether each finding is genuine.
  7. Trace it to the correct template, plugin, CMS setting, or infrastructure layer.
  8. Assign evidence-based priority.
  9. Recommend the safest effective correction.
  10. Implement only when authorized.
  11. Test the original defect and neighboring templates.
  12. Rerun the relevant audit.
  13. Document results and uncertainty.
  14. Report unresolved high-impact findings.
  15. Update the issue registry when new problems or remediation patterns are discovered.

The objective is a technically sound, crawlable, indexable, useful, fast, secure, and maintainable WordPress theme. Every discovered issue must have a documented outcome, but not every warning must be “fixed” if it is intentional, harmless, or unsupported by evidence.

17. Official references

Consult current documentation rather than relying on outdated assumptions:

Overall Score

92/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

93

Quality

94

Clarity

89

Completeness

90

Summary

This skill provides comprehensive guidance for WordPress theme engineers and technical SEO auditors to develop, audit, debug, and repair classic, block, and hybrid themes. It establishes a structured methodology (five-stage workflow: scope, baseline, normalize, implement, verify) for identifying and fixing SEO, performance, accessibility, and security defects, grounded in WordPress APIs, official documentation, and evidence-based prioritization rather than blindly chasing tool warnings.

Detected Capabilities

file read and inspectionphp syntax analysishtml/dom inspectionurl crawling and auditinggit/version control inspectionwordpress api knowledgeregex/pattern matchingcomparative analysis (before/after)code review and recommendationsdocumentation and reporting

Trigger Keywords

Phrases that agents use to match this skill to user intent.

wordpress theme auditseo technical defectcanonical mismatchmetadata duplicatecore web vitals debugmultilingual routingstructured data conflicttheme migration verificationbreadcrumb schemarendering regression

Referenced Domains

External domains referenced in skill content, detected by static analysis.

developer.wordpress.orgdevelopers.google.comhelp.ahrefs.comweb.devwww.screamingfrog.co.ukwww.semrush.com

Use Cases

  • Develop or refactor a WordPress theme with sound SEO defaults and accessibility support
  • Audit an existing theme against Ahrefs/Semrush/Screaming Frog findings to identify and fix root causes
  • Diagnose and repair metadata, canonical, robots, hreflang, or structured data defects in theme templates
  • Investigate performance regressions (LCP, INP, CLS) and optimize Core Web Vitals
  • Verify theme compatibility with multilingual plugins and correct language routing/hreflang output
  • Migrate content or redesign while preserving SEO value, redirects, and internal link architecture
  • Debug JavaScript rendering issues, hydration failures, or content visibility in block themes
  • Prepare themes for deployment with regression testing and rollback procedures
  • Audit and fix security vulnerabilities, XSS/injection risks, and escaping in theme templates
  • Create and maintain a comprehensive issue registry mapping tool findings to verified root causes

Quality Notes

  • Exceptional documentation: 17 numbered sections provide clear methodology, from workflow stages to playbooks to canonical issue categories
  • Evidence-based prioritization: skill explicitly rejects blindly following tool severity and requires root-cause verification before remediating
  • Comprehensive scope: covers classic/block/hybrid themes, multilingual SEO, Core Web Vitals, accessibility, security, migrations, and performance
  • Well-calibrated principles: balances pragmatism (not every warning is a defect) with rigor (every issue needs documented disposition)
  • Responsibility matrix and template hierarchy guidance help disambiguate ownership between theme, plugins, and server configuration
  • Mandatory issue record format (section 5) ensures consistent, repeatable audit outcomes and prevents vague recommendations
  • Advanced workflows (section 8 playbooks) show exact reproduction and verification steps for common defects
  • Strong emphasis on testing before/after with comparable conditions and regression matrix (section 13)
  • Excellent reference links to official WordPress, Google, Ahrefs, Semrush, and Screaming Frog documentation
  • Risk mitigation: skill explicitly forbids editing WordPress core/plugin files, disabling security controls, or fabricating findings
  • Clear security guardrails: contextual escaping, input validation, sanitization, prepared queries, and nonce verification are non-negotiable
Model: claude-haiku-4-5-20251001Analyzed: Oct 29, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use sabrysuleiman/wordpress-seo-theme-auditor in your dev environment

Command Palette

Search for a command to run...