PHPackages                             wpcompatibility/wp-compatibility - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. wpcompatibility/wp-compatibility

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

wpcompatibility/wp-compatibility
================================

WPCompatibility has a collection of PHPCS sniffs which will tell you if your plugin/theme code is compatible with a specific wordpress version

0.0.3(1y ago)117GPL-3.0-or-laterPHPPHP &gt;=5.4

Since May 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/WPCompatibility/WPCompatibility)[ Packagist](https://packagist.org/packages/wpcompatibility/wp-compatibility)[ RSS](/packages/wpcompatibility-wp-compatibility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

WPCompatibility
===============

[](#wpcompatibility)

`wpcompatibility` is a collection of PHP\_CodeSniffer (PHPCS) sniffs designed to check if your WordPress plugin/theme code is compatible with specific WordPress versions.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Functions](#Functions)
- [Buy me a coffee ☕](https://buymeacoffee.com/naveen17797)

Installation:
-------------

[](#installation)

```
composer require wpcompatibility/wp-compatibility
```

Usage:
------

[](#usage)

### Command

[](#command)

```
# For single wp version
WP_COMPAT_PHPCS_SUPPORTED_VERSIONS='5.0.0' vendor/bin/phpcs --standard=WPCompatibility your-plugin-or-theme-folder/

# To test against multiple wp versions you can separate versions by comma
WP_COMPAT_PHPCS_SUPPORTED_VERSIONS='5.0.1,6.0' vendor/bin/phpcs --standard=WPCompatibility your-plugin-or-theme-folder/
```

### Ruleset File

[](#ruleset-file)

```

```

### Functions

[](#functions)

- Detect if a wordpress function is present in specific version. For example if you have a plugin file with the below code which is set to be compatible with 5.0, this will throw an error

```

```

```
Function: wp_date is not available in wordpress version 5.0.0

```

- Verify wordpress function signature, if you pass less number of arguments to a wordpress function then it will raise an error.

### [Buy me a coffee ☕](https://buymeacoffee.com/naveen17797)

[](#buy-me-a-coffee-)

[![F_TwK0vbIAAShWP](https://private-user-images.githubusercontent.com/18109258/335472735-abeffd2c-0440-4774-a80d-70075a192820.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyMDc2MTEsIm5iZiI6MTc3NTIwNzMxMSwicGF0aCI6Ii8xODEwOTI1OC8zMzU0NzI3MzUtYWJlZmZkMmMtMDQ0MC00Nzc0LWE4MGQtNzAwNzVhMTkyODIwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDA5MDgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1M2Q5ZjIwN2Y1YjUyMmI0ZGU0NDlhZDBlMzgxZGNiN2ZhYWRkNDBmZWRjMWM0Yzg3ZmZiMDRmZjdkZDEwYTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.24ddQvHRR60oZTEqhtGKYd_O5uhM2lwRgcpAhTiHQF4)](https://private-user-images.githubusercontent.com/18109258/335472735-abeffd2c-0440-4774-a80d-70075a192820.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyMDc2MTEsIm5iZiI6MTc3NTIwNzMxMSwicGF0aCI6Ii8xODEwOTI1OC8zMzU0NzI3MzUtYWJlZmZkMmMtMDQ0MC00Nzc0LWE4MGQtNzAwNzVhMTkyODIwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDA5MDgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1M2Q5ZjIwN2Y1YjUyMmI0ZGU0NDlhZDBlMzgxZGNiN2ZhYWRkNDBmZWRjMWM0Yzg3ZmZiMDRmZjdkZDEwYTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.24ddQvHRR60oZTEqhtGKYd_O5uhM2lwRgcpAhTiHQF4)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/750b317b10ce1e38c6fb7b74468ff9ec2ca88329cc05209285e65215538cbd35?d=identicon)[naveen17797](/maintainers/naveen17797)

---

Top Contributors

[![naveen17797](https://avatars.githubusercontent.com/u/18109258?v=4)](https://github.com/naveen17797 "naveen17797 (16 commits)")

---

Tags

phpcsphpcs-standardswordpresswordpress-pluginwordpress-theme

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wpcompatibility-wp-compatibility/health.svg)

```
[![Health](https://phpackages.com/badges/wpcompatibility-wp-compatibility/health.svg)](https://phpackages.com/packages/wpcompatibility-wp-compatibility)
```

###  Alternatives

[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10224.3M44](/packages/phpcsstandards-phpcsextra)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
