In short.
wp-phpstan-review is an AI assistant skill for WordPress plugin and theme maintainers, and its guidance needs project files and human judgment to produce useful findings. It focuses on whether PHPStan actually covers the intended code, loads WordPress support correctly and handles existing errors without hiding new ones. The bundle includes three reference guides and a sample configuration using level 5. Supported software versions, assistant installation details and review accuracy are not established, and nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete claude-skills/wp-phpstan-review folder at revision 8c964424d05ba34b3ea5641f7181d4c13829e06f: SKILL.md and references/baseline-and-ci.md, references/config-and-bootstrap.md, references/sample-phpstan.neon.dist and references/wordpress-stubs-guide.md. The related repository-level LICENSE is also included. Other repository skills, upstream documentation, dependency implementations and actual WordPress projects are outside this scope. No commands, installation, assistant review session or PHPStan analysis was executed; runtime behavior, review accuracy and version compatibility remain unassessed.
The overview
What it is
wp-phpstan-review is a set of assistant instructions in the jorgerosal/wordpress-skills repository. Its scope is reviewing and planning PHPStan configuration for WordPress plugins, themes and larger codebases. The folder contains SKILL.md, three reference guides and one sample NEON configuration.
The original folder at the described revision is available at [https://github.com/jorgerosal/wordpress-skills/tree/8c964424d05ba34b3ea5641f7181d4c13829e06f/claude-skills/wp-phpstan-review].
Practical fit
The skill offers a focused checklist for setups that can look complete while missing useful analysis: source directories omitted from paths, an installed WordPress extension that never loads, broad exclusions or different local and CI commands. These concrete failure modes make it useful for configuration reviews and gradual adoption.
Its examples require adaptation. The sample names plugin.php, inc/, tests/ and phpstan-bootstrap.php, but supplies no corresponding project files or bootstrap implementation. Review accuracy and successful operation on an actual WordPress project are not assessed.
Who it suits
Plugin and theme maintainers can use it when introducing PHPStan, reviewing an existing setup or investigating a growing baseline. Developers responsible for CI can use its checks to compare shared configuration, Composer scripts and automated analysis commands.
Beginners get a structured explanation of what to inspect, but will still need familiarity with Composer, project directories and configuration files. Experienced developers get more specific checks around extension-installer behavior, bootstrap wiring, exclusions and baseline discipline. Runtime performance reviews and general PHPUnit or browser-testing strategy are outside its stated scope.
What it covers
The instructions cover discovery of PHPStan configuration, Composer development dependencies, CI commands, bootstrap files and stubs. Review checks address analysis level, source paths, includes, exclusions, ignored errors and whether WordPress support is actually loaded.
Findings are organized as CRITICAL, WARNING or INFO. Each should identify a file and line, describe the issue, explain its effect on coverage or useful results, and recommend a correction. The skill also supplies search commands for locating relevant configuration and dependency declarations.
Using it
What you need
Using the resource as a skill requires an assistant that can consume its instructions and inspect the relevant project files. The claude-skills directory suggests Claude-oriented packaging, but the files do not specify supported host versions, installation locations, models or invocation syntax.
Useful review inputs include phpstan.neon or phpstan.neon.dist, Composer dependency declarations, CI definitions and any baseline, stub or bootstrap files. Running the illustrated analysis separately requires a suitable PHP and PHPStan environment with the intended WordPress support. Minimum PHP, WordPress, PHPStan and package versions are unspecified.
How it works
The assistant is instructed to find the analysis entrypoints, inspect the base configuration, review baselines and ignored errors, compare CI behavior, and classify findings. This is a review procedure expressed in text; no automated reviewer implementation is included.
WordPress stubs describe core functions and classes so the analyser can recognize them. The WordPress extension provides additional support for analysing plugins and themes. The guides emphasize that these packages still need correct configuration, meaningful source paths and support for dynamic patterns.
Getting started
Preserve SKILL.md and its references directory together so the relative reference paths remain usable. Load the instructions through the chosen assistant's supported skill mechanism; a host-specific installation procedure is not supplied.
For the WordPress extension route, the guide gives composer require --dev szepeviktor/phpstan-wordpress. Without phpstan/extension-installer, it calls for including vendor/szepeviktor/phpstan-wordpress/extension.neon. With the installer present, a manual include may be unnecessary. The stubs guide also shows separate installation of php-stubs/wordpress-stubs, while noting that the extension relies on those stubs.
A concrete example
Consider a hypothetical plugin that declares szepeviktor/phpstan-wordpress in Composer, has no extension-installer and never includes extension.neon. Following the skill's file-specific checks, an assistant could raise a WARNING, identify the relevant configuration location, explain that WordPress support may not be loaded and recommend the missing include. This is an illustration, not an observed finding.
The supplied sample uses level 5, analyses plugin.php, inc/ and tests/, loads phpstan-bootstrap.php, stores temporary files under tmp/phpstan and enables reportUnmatchedIgnoredErrors. The CI guide illustrates vendor/bin/phpstan analyse -c phpstan.neon.dist. These settings and paths require review against the actual project.
Assessment & evidence
Limits and unknowns
The files contain no real-project review results, execution logs, accuracy evaluation or compatibility matrix. Nothing was executed, so successful installation, assistant behavior and PHPStan operation remain unassessed.
The guidance acknowledges that dynamic WordPress patterns may still require bootstrap files, scan files or directories, targeted ignores and better PHPDoc. The sample bootstrap file is not supplied, and level 5 is an example rather than a demonstrated best setting for every project. The skill does not cover runtime performance or general testing strategy.
Why the approach matters
The recommendation to establish source paths and WordPress wiring before generating a baseline addresses a practical risk: quiet analysis can result from missing coverage or excessive suppression. A baseline records existing errors so future runs can focus on new ones; continually regenerating it can also conceal new problems.
The extension-installer qualification helps avoid treating a missing manual include as proof of a broken setup. Together, these rules encourage checking how the project actually loads configuration. Their benefit is plausible from the described failure modes, but improved defect detection is not quantified.
Other approaches
Developers comfortable reviewing configuration directly can use PHPStan documentation and the WordPress extension's own setup instructions, which the guides identify as their upstream anchors. The skill adds a structured assistant review process around those topics. The upstream documents themselves are not included, so their current contents and comparative coverage are unknown.
The stubs guide permits another clearly documented and maintained WordPress-aware setup instead of szepeviktor/phpstan-wordpress, but names no competing implementation. No competing skill or comparative evaluation is provided.
What the files establish
SKILL.md establishes the intended review scope, sequence, search patterns and finding format. The three reference guides expand configuration, baseline, CI and WordPress support advice. The sample configuration establishes the example settings, while the root LICENSE establishes the supplied reuse terms.
These files support an assessment of the resource's instructions and examples. They do not establish successful analysis of a plugin or theme, reliable assistant findings, compatibility with particular versions or benchmark performance. Statements labeled as official anchors are summaries within the guides, rather than bundled upstream documentation.
Access & freshness
Costs
No pricing or operating-cost figures are provided. Assistant or API charges, CI usage and developer time depend on the chosen environment and remain unknown. There are no measured execution times or usage figures from which to estimate them.
The MIT licence permits commercial use and redistribution subject to its notice requirement. That permission does not establish the cost of an assistant service or the surrounding development environment.
Licence and reuse
The repository-level LICENSE contains the MIT licence and a 2026 copyright notice for Jorge Rosal. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The software and documentation are supplied without warranty. Licence terms for referenced third-party packages are not included in this scope and should be considered separately when using those packages.
Source revision
The described files are pinned to revision 8c964424d05ba34b3ea5641f7181d4c13829e06f, captured on 2026-11-16 at 21:47:19.430 UTC. The source address using main can change independently of that revision.
The skill declares no release version or supported dependency versions. Changes after the pinned revision and compatibility with current PHPStan, WordPress or assistant releases are unknown.
Before using it
Give the assistant the shared PHPStan configuration, Composer declarations, CI definitions and any baseline or bootstrap files. Ask it to establish which first-party files are analysed and how WordPress support loads before recommending changes to strictness or ignored errors.
Before adopting the sample, replace its paths with real project paths, choose an appropriate analysis level and provide a justified bootstrap file if one is needed. Compare local and CI commands, review baseline changes deliberately and request findings with severity, file and line, impact and a proposed fix. Confirm each finding against the actual configuration.
