# WordPress/WordPress-Coding-Standards

PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

Repository: https://github.com/WordPress/WordPress-Coding-Standards
Canonical: https://ross.abutalabs.com/products/wordpress-coding-standards
Language: PHP
License: MIT
License Family: permissive
Topics: php-codesniffer, phpcs, wordpress-standards, ruleset, wordpress-development, coding-conventions
Last push: 2026-08-20T23:19:18+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 71, longevity 100
- inputs: {"age_days": 5602, "days_push": 13, "days_rel": 37, "gap_med": 123, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2823, forks 523 (observed 2026-08-28T04:07:24.036245+00:00)

## What it is
A set of PHP_CodeSniffer rules (sniffs) that enforce WordPress coding conventions in PHP code. It integrates with PHPCS, IDEs, and CI pipelines to lint WordPress projects against official standards.

## Use cases
- lint wordpress plugin code against coding standards
- enforce wordpress coding conventions in ci
- check php code style for wordpress themes
- run phpcs with wordpress ruleset
- integrate wordpress standards into ide

## When to choose
- developing WordPress plugins, themes, or core contributions
- wanting automated style enforcement in CI or editor
- need official WordPress PHP coding conventions

## When to avoid
- linting non-WordPress PHP projects
- needing full static analysis beyond style/convention checks

## Facets
- artifact type: library
- maturity: active
- function: linter, developer-tools, testing
- domain: developer-tools, web-development, cms
- platform: php, cli, cross-platform
- tags: phpcs, coding-standards, wordpress, code-quality, static-analysis, sniffs

## Member repositories
- WordPress/WordPress-Coding-Standards (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.036245+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:38:16.287140+00:00, confidence not recorded.
  - readme: https://github.com/WordPress/WordPress-Coding-Standards (fetched 2026-08-28T04:07:24.036245+00:00, sha a530ed030bf2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
