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(10mo ago)09MITPHPPHP &gt;=7.2.5

Since Jun 30Pushed 10mo 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 1mo ago

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

26

—

LowBetter than 43% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

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

316d 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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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