wp2next audit
A technical audit of the new site (accessibility, performance, theming, responsive layout, anti-patterns), run on the side, that ends in a report. It never edits code.
| Synopsis | wp2next audit [site | /<url-path>/ | <source path>] (Claude desktop and Claude Code plugin: /wp2next:audit; Codex: $wp2next audit; Cursor: /wp2next audit) |
|---|---|
| Changes code | No |
| Touches outside services | No. If impeccable isn't installed, it asks whether to install it or use the built-in checklist. It may start a local server and stops it afterwards |
| Reads | The running site (a production build is preferred for performance numbers), the source in apps/web/src, wp2next.json |
| Writes | .impeccable/reports/<date>-audit-<target>.md and a detector .json. After your decisions: departure entries in CLAUDE.md and wp2next.json |
What it does
It first runs impeccable's automatic detector over the source, then impeccable's audit as a side process (a background subagent in Claude Code, a second session or terminal tab in Codex or Cursor, inline if neither is possible).
The quality bar is WCAG 2.2 AA (configurable as quality.wcag) and Core Web Vitals "good": LCP ≤ 2.5 s,
INP ≤ 200 ms, CLS ≤ 0.1.
When the report lands, it shows you the scores and every high-priority finding:
- Accessibility failures are fixed even in pixel mode, but a change visible on desktop needs your approval and is recorded as a departure. It proposes the smallest change: a token value, a focus style in the shared component, a hidden label.
- Performance findings are fixed in code (image sizes, font loading, third-party tags behind consent). It never removes a tracking tag or the consent banner to win a score without asking.
- Mobile and polish-level items are queued for
polish. - A finding you decide to keep (say, a brand color that fails contrast on a decorative element) is written down with the reason, so later runs don't raise it again.
Without impeccable it uses a built-in checklist: landmarks and headings, alt text, contrast, keyboard and focus, target sizes, form labels; LCP image, fonts, layout shift, third-party scripts, page weight vs WordPress; tokens only; 320 to 1920 px with no horizontal scroll; no inline styles or utility classes.
Arguments and options
| Argument | Effect |
|---|---|
(none) or site | Home, one inner page, contact, one post, one archive and the 404 page |
/<url-path>/ | One page |
<source path> | One component |
Examples
/wp2next:audit/wp2next:audit$wp2next audit/wp2next auditwp2next audit /services/: audit one page.
Related
critique(design and UX) ·polish·optimize(Lighthouse before and after) ·compliance(accessibility as part of a legal-gap scan)- Companion skills: impeccable
- Agent instructions:
references/commands/audit.md (external site)