PHPackages                             iandunn/wp-cli-plugin-active-on-sites - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iandunn/wp-cli-plugin-active-on-sites

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

iandunn/wp-cli-plugin-active-on-sites
=====================================

A WP-CLI command to list all sites in a Multisite network that have activated a given plugin

v1.0.1(1mo ago)45215↓54.3%6[2 issues](https://github.com/iandunn/wp-cli-plugin-active-on-sites/issues)GPL-2.0-or-laterPHPCI failing

Since Mar 9Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/iandunn/wp-cli-plugin-active-on-sites)[ Packagist](https://packagist.org/packages/iandunn/wp-cli-plugin-active-on-sites)[ Docs](https://github.com/iandunn/wp-cli-plugin-active-on-sites)[ RSS](/packages/iandunn-wp-cli-plugin-active-on-sites/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

WP-CLI Plugin Active on Sites
=============================

[](#wp-cli-plugin-active-on-sites)

A [WP-CLI](http://wp-cli.org/) command to list all sites in a Multisite network that have activated a given plugin.

Examples / Usage
----------------

[](#examples--usage)

Find all sites where a specific plugin is active:

```
> wp plugin active-on-sites eu-cookie-law-widget

Checking each site  100% [==================================================] 0:02 / 0:03

Sites where eu-cookie-law-widget is active:
+---------+----------------------------------------+
| blog_id | url                                    |
+---------+----------------------------------------+
| 320     | http://2014.madrid.wordcamp.test/      |
| 371     | http://2014.paris.wordcamp.test/       |
| 413     | http://2015.london.wordcamp.test/      |
| 464     | http://2015.milano.wordcamp.test/      |
| 522     | http://2016.geneva.wordcamp.test/      |
| 571     | http://2016.belfast.wordcamp.test/     |
| 654     | http://2017.europe.wordcamp.test/      |
+---------+----------------------------------------+
```

Find all installed plugins that aren't active on any site:

```
> wp plugin active-on-sites --none

Checking each site  100% [==================================================] 0:02 / 0:03

Plugins not active on any site:
+---------------------------+------------------------------+
| slug                      | name                         |
+---------------------------+------------------------------+
| akismet                   | Akismet Anti-Spam            |
| wordpress-seo             | Yoast SEO                    |
+---------------------------+------------------------------+
```

See `wp help plugin active-on-sites` for details specifying fields, output format, etc.

Installing
----------

[](#installing)

1. Ensure your `composer.json` has `composer/installers` and an `installer-paths` entry for `type:wordpress-plugin`. Most Composer-managed WordPress projects already have this.

    ```
    {
        "require": {
            "composer/installers": "^2.0"
        },
        "extra": {
            "installer-paths": {
                "wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
            }
        }
    }
    ```
2. Install the plugin:

    ```
    composer require iandunn/wp-cli-plugin-active-on-sites
    ```
3. Activate the plugin:

    ```
    wp plugin activate wp-cli-plugin-active-on-sites --network
    ```

Local Development
-----------------

[](#local-development)

```
git clone https://github.com/iandunn/wp-cli-plugin-active-on-sites
```

```
composer install
```

```
composer prepare-tests
```

```
composer test           # run all tests
composer test-rerun		# re-run only failed scenarios

composer test -- features/plugin-active-on-sites.feature        # run a single feature file
composer test -- features/plugin-active-on-sites.feature:42		# run a single scenario by line number
composer test -- --tags=@network                                # run only network-activation scenarios
```

When run inside a [LocalWP](https://localwp.com/) shell, `composer test` routes to `bin/behat-localwp`, which auto-detects the MySQL socket. Outside LocalWP (e.g. CI), it falls back to `run-behat-tests`.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance92

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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 ~34 days

Total

4

Last Release

35d ago

Major Versions

v0.1.5 → v1.0.02026-06-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/af78c57280b5a7b834b2311a82e2c7cc115875a43a99f171720a77fe08d0098b?d=identicon)[iandunn](/maintainers/iandunn)

---

Top Contributors

[![iandunn](https://avatars.githubusercontent.com/u/484068?v=4)](https://github.com/iandunn "iandunn (20 commits)")[![mackensen](https://avatars.githubusercontent.com/u/553370?v=4)](https://github.com/mackensen "mackensen (2 commits)")[![twelch555](https://avatars.githubusercontent.com/u/8547700?v=4)](https://github.com/twelch555 "twelch555 (2 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (1 commits)")

---

Tags

wordpresspluginsmultisitewp-cli

### Embed Badge

![Health badge](/badges/iandunn-wp-cli-plugin-active-on-sites/health.svg)

```
[![Health](https://phpackages.com/badges/iandunn-wp-cli-plugin-active-on-sites/health.svg)](https://phpackages.com/packages/iandunn-wp-cli-plugin-active-on-sites)
```

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k230.2k13](/packages/tgmpa-tgm-plugin-activation)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.9M146](/packages/php-stubs-wp-cli-stubs)[bueltge/wordpress-multisite-enhancements

Enhance Multisite for Network Admins with different topics

1133.6k](/packages/bueltge-wordpress-multisite-enhancements)

PHPackages © 2026

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