Skip to content
W

WordPress/wp-phpstan

PHPStan static analysis for WordPress projects

Open source

Star
#12830in AI Skills
0In stores

Description

wp-phpstan is an agent skill for setting up and running PHPStan static analysis in WordPress plugins and themes. It handles the phpstan.neon…

Highlights

  • phpstan.neon setup with paths and exclusions
  • Baseline generation for legacy code
  • WordPress-specific type annotations
  • WP_REST_Request and WP_Query typing
  • WooCommerce and ACF stubs

Ratings & Reviews

No ratings yet

Be the first to rate WordPress/wp-phpstan.

People also visit

W

wp-phpstan

Configuring, running, or fixing PHPStan static analysis in WordPress projects

AI Skills
Get
W

wp-guard

Review generated or changed WordPress code

AI Skills
Get
W

wp-plugin-development

Developing WordPress plugins: architecture and hooks

AI Skills
Get
W

wp-project-triage

A deterministic inspection of a WordPress repository

AI Skills
Get
W

wordpress-pro

Develops custom WordPress themes and plugins

AI Skills
Get
W

WordPress/wp-project-triage

Detects project type, tooling, and versions automatically

AI Skills
Get

WordPress/wp-phpstan FAQ

What does this skill do?

It configures and runs PHPStan on WordPress code, with baselines and WordPress-aware typing.

How do I install it?

Run npx skills add https://github.com/WordPress/agent-skills --skill wp-phpstan, or paste the repository link and ask your coding assistant to install it.

Who is it for?

WordPress plugin and theme developers who want static analysis in their workflow.

Why is a WordPress-specific setup needed?

The page says hooks, REST requests and direct database queries cause many false positives in a generic PHPStan configuration.

Is it free?

The skill is in a public repository on GitHub and the page shows no price, so it is open source.

What are the best WordPress/wp-phpstan alternatives?

Popular alternatives to WordPress/wp-phpstan include wp-phpstan, wp-guard and wp-plugin-development. See all WordPress/wp-phpstan alternatives

Developer Stuff

Badges