WordPress/WordPress-Coding-Standards

PHP 2.7k stars

PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

✓ Synced 3h ago Share on X →
README badge: [![ngmi](https://ngmi.review/badge/WordPress/WordPress-Coding-Standards.svg)](https://ngmi.review/repo/WordPress/WordPress-Coding-Standards)
1.4k Merged PRs
14 days Avg Merge Time
0m Fastest PR
2 years Slowest PR
#2661 Global Speed Rank
Trim top 0% outliers

Trends Over Time

Monthly aggregates for this repo. The gap between avg and median reveals outlier skew.

PR size over time (lines changed)
Review time over time (hrs)
Changes requested rate over time (%)
Merged PRs per month
Time to first review (hrs)
Unreviewed merge rate (%)

PR Size Analysis

Lines changed (additions + deletions) vs review outcomes.

PRs by size
Avg review time (hrs)
Clean approval rate (%)

Top Reviewers

Recent Merged PRs

# Title Author Time Reviews Blocks
#2696 Arrays/ArrayDeclarationSpacing: add new property and soft-deprecate old one @rodrigoprimo 18 days 6
#2687 WP/AlternativeFunctions: add XML documentation @rodrigoprimo 24 days 5
#2701 PHP/NoSilencedErrors: remove tolerance for `parse_url()` @jrfnl 1 day 3
#2702 PHP/RestrictedPHPFunctions: rephrase error message @jrfnl 1 day 3
#2700 GH Actions: Bump crate-ci/typos from 1.43.2 to 1.43.5 in the action-runners group @dependabot 1.4h 1
#2695 GH Actions: Bump the action-runners group with 2 updates @dependabot 1.1h 1
#2688 Arrays/ArrayDeclarationSpacing: replace "associative" with "explicit keys" @rodrigoprimo 2 days 3
#2682 Arrays/ArrayDeclarationSpacing: add XML documentation @rodrigoprimo 1 month 6
#2689 DB/RestrictedClasses: add XML documentation @rodrigoprimo 1 day 4
#2690 PHP/DevelopmentFunctions: add XML documentation @rodrigoprimo 1 day 3
#2678 CodeAnalysis/AssignmentInTernaryCondition: add XML documentation @rodrigoprimo 1 month 9
#2680 WP/DiscouragedConstants: add XML documentation @rodrigoprimo 1 month 2
#2679 WP/GlobalVariablesOverride: add XML documentation @rodrigoprimo 1 month 13
#2681 WP/DiscouragedConstants: update sniff docblock to mention constants (re-)declaration check @rodrigoprimo 1 month 2
#2643 AbstractClassRestrictionsSniff sniffs: add tests for namespaced names @rodrigoprimo 2 months 3
#2617 WP/AlternativeFunctions: add tests for namespaced names tests and fix handling of class functions/constants/properties @rodrigoprimo 4 months 14
#2579 ConstantsHelper::is_use_of_global_constant(): do not treat `use const` alias as global constant usage @rodrigoprimo 5 months 3
#2669 AbstractClassRestrictionsSniff: fix inconsequential typo @jrfnl 1 month 2
#2592 [Update] Documentation for sniff WordPress.Security.PluginMenuSlug @jasonkenison 5 months 14
#2686 GH Actions: Bump crate-ci/typos from 1.41.0 to 1.42.1 in the action-runners group @dependabot 4.1h 1