PHPackages                             tuhin18003/wp-compat-tester - 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. [CLI &amp; Console](/categories/cli)
4. /
5. tuhin18003/wp-compat-tester

ActiveLibrary[CLI &amp; Console](/categories/cli)

tuhin18003/wp-compat-tester
===========================

A CLI tool to scan WordPress plugins for compatibility with the latest WordPress versions.

v1.0.0(1y ago)011MITPHPPHP &gt;=7.2.5

Since Jun 30Pushed 1y agoCompare

[ Source](https://github.com/tuhin18003/wp-compat-tester)[ Packagist](https://packagist.org/packages/tuhin18003/wp-compat-tester)[ Docs](https://github.com/tuhin18003/wp-compat-tester)[ RSS](/packages/tuhin18003-wp-compat-tester/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

WP Compat Tester
================

[](#wp-compat-tester)

A CLI tool to scan your WordPress plugin code for compatibility issues with the latest WordPress version.

Features
--------

[](#features)

- Detects your local WordPress version
- Fetches the latest WordPress version from wordpress.org
- Scans plugin PHP files for deprecated functions (based on official GitHub source)
- Warns about improper usage of `plugins_loaded` for translations in WP 6.7+

Installation (in your plugin project)
-------------------------------------

[](#installation-in-your-plugin-project)

Inside your plugin project folder:

```
composer require --dev tuhin18003/wp-compat-tester
```

Usage
-----

[](#usage)

### Option 1: Manually

[](#option-1-manually)

Run the CLI tool directly:

```
vendor/bin/wp-check.php -- ./my-plugin-folder
```

Or scan multiple paths:

```
vendor/bin/wp-check.php -- ./my-plugin.php ./core
```

### Option 2: Add to composer scripts

[](#option-2-add-to-composer-scripts)

In your plugin project's `composer.json`:

```
"scripts": {
  "check:compat": "vendor/bin/wp-check.php -- ./my-plugin.php ./core"
}
```

Then run:

```
composer run check:compat
```

Output Example
--------------

[](#output-example)

```
🔍 Scanning plugin at: ./my-plugin.php
Local WP Version:  6.7.0
Latest WP Version: 6.7.2

⚠️  Deprecated function `get_page_by_title()` found in plugin.php (deprecated since WP 6.2.0)
⚠️  Detected 'plugins_loaded' hook usage in plugin.php. Use 'init' instead for translations in WP >= 6.7.
✅ Scan complete.

```

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

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

Unknown

Total

1

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d3ca97c3d8c9f5c5e46763ff130c96b5b5deafc3d2c41ce78d19ad50fda3b9c?d=identicon)[tuhin18003](/maintainers/tuhin18003)

---

Top Contributors

[![tuhin18003](https://avatars.githubusercontent.com/u/3587495?v=4)](https://github.com/tuhin18003 "tuhin18003 (12 commits)")

### Embed Badge

![Health badge](/badges/tuhin18003-wp-compat-tester/health.svg)

```
[![Health](https://phpackages.com/badges/tuhin18003-wp-compat-tester/health.svg)](https://phpackages.com/packages/tuhin18003-wp-compat-tester)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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