wp-phpstan-review
Installation
SKILL.md
WordPress PHPStan Review Skill
Overview
Systematic review guidance for PHPStan in WordPress projects. Core principle: static analysis should be strict enough to catch real bugs without becoming noise, and WordPress-specific extensions or stubs should be wired in intentionally. Review covers config files, includes, baselines, CI integration, analysis paths, bootstrap files, WordPress stubs, and gradual adoption strategy.
When to Use
Use when:
- Reviewing
phpstan.neon,phpstan.neon.dist, or CI config - Planning PHPStan adoption in a WordPress plugin or theme
- Auditing baseline usage or ignored errors
- Reviewing
szepeviktor/phpstan-wordpresssetup - Checking analysis scope, bootstrap files, or stub configuration
Don't use for:
- Runtime performance review
- PHPUnit or browser test strategy without static analysis focus
- General PHP refactors unrelated to analysis setup