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(2y ago)122GPL-3.0-or-laterPHPPHP &gt;=5.4

Since May 31Pushed 2y 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 yesterday

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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwNDM4NjIsIm5iZiI6MTc4MzA0MzU2MiwicGF0aCI6Ii8xODEwOTI1OC8zMzU0NzI3MzUtYWJlZmZkMmMtMDQ0MC00Nzc0LWE4MGQtNzAwNzVhMTkyODIwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAzVDAxNTI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjODJjY2ZiNDdjY2NlZjkyYWViNTA3ZDhkYmQ0MjNhZjcxNDM0NWY0YWU3ZWY3ZDVlOWVlN2I0N2FlOTA4MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.It9HkK4Im-Z-AO3SKwAMfPcmzc06I74m8U_NLZkm2OA)](https://private-user-images.githubusercontent.com/18109258/335472735-abeffd2c-0440-4774-a80d-70075a192820.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwNDM4NjIsIm5iZiI6MTc4MzA0MzU2MiwicGF0aCI6Ii8xODEwOTI1OC8zMzU0NzI3MzUtYWJlZmZkMmMtMDQ0MC00Nzc0LWE4MGQtNzAwNzVhMTkyODIwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAzVDAxNTI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjODJjY2ZiNDdjY2NlZjkyYWViNTA3ZDhkYmQ0MjNhZjcxNDM0NWY0YWU3ZWY3ZDVlOWVlN2I0N2FlOTA4MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.It9HkK4Im-Z-AO3SKwAMfPcmzc06I74m8U_NLZkm2OA)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

762d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18109258?v=4)[naveen](/maintainers/naveen17797)[@naveen17797](https://github.com/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

[slevomat/coding-standard

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

1.5k134.0M2.3k](/packages/slevomat-coding-standard)[wp-coding-standards/wpcs

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

2.8k47.8M2.2k](/packages/wp-coding-standards-wpcs)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37514.2M403](/packages/magento-magento-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M34](/packages/yoast-yoastcs)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)[hyva-themes/hyva-coding-standard

A set of Hyvä specific PHP CodeSniffer rules extending the Magento Coding Standard

2927.5k](/packages/hyva-themes-hyva-coding-standard)

PHPackages © 2026

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