Back to directory

WordPress Coding Standards for PHP_CodeSniffer

A set of PHP_CodeSniffer rules that check PHP code against the official WordPress coding conventions.

WordPress Coding Standards for PHP_CodeSniffer

This project is a collection of PHP_CodeSniffer sniffs that validate code written for WordPress against the official WordPress Coding Standards, helping enforce consistent code quality and style. It installs via Composer, either into a single project or globally, and registers its rulesets with PHP_CodeSniffer automatically through a Composer plugin.

It supports subsets of the standard, custom rulesets, and customizing individual sniff behavior, and can be run from the command line, from within an IDE that integrates with PHPCS, or automatically as part of a continuous-integration pipeline. It requires PHP 7.2 or higher with several extensions enabled, and the project notes it depends on ongoing funding to continue maintenance.

More in Code quality

See all 94
  • Critic

    critic.run

    A code-change viewer, backed by Y Combinator, built for reviewing work written by coding agents, presenting a plain-language narrative of each change alongside the diff and a running conversation with the agent.

  • GitIntel

    hoangsonww.github.io

    An MCP server that computes git repository analytics such as hotspots, churn, temporal coupling, knowledge maps and risk scoring entirely from local commit history, for AI coding agents like Claude Code and Codex.

  • Axint

    axint.ai

    A verification layer for AI coding agents working on Apple projects: it runs real Xcode builds and tests against the Swift an agent wrote, reconciles static analysis findings against that evidence, and returns a signed proof with the exact repairs still needed.