Skip to content

Add a simple script for WP plugin activation stats for Playground CLI - #2880

Open
JanJakes wants to merge 4 commits into
trunkfrom
wp-stats-script
Open

Add a simple script for WP plugin activation stats for Playground CLI#2880
JanJakes wants to merge 4 commits into
trunkfrom
wp-stats-script

Conversation

@JanJakes

Copy link
Copy Markdown
Member

Motivation for the change, related issues

I've been using this script locally to evaluate SQLite (and Playground) compatibility of top N plugins.

Here's a bit more polished version that it's maybe worth preserving somewhere.

Implementation details

It's just a simple TS script using @wp-playground/cli's runCLI method with the run-blueprint command.

The script does the following:

  1. It fetches top N plugins from https://api.wordpress.org/plugins/info/1.2/.
  2. For each plugin, it prepares a Blueprint, honoring PHP version, WP version, and plugin dependencies.
  3. It executes runCLI for each plugin and checks if there are any error logs.
  4. In case of errors, it retries to avoid reporting failed requests, flakiness, etc.

Testing Instructions (or ideally a Blueprint)

$ npx nx start playground-plugin-stats --top=10

Testing top 10 plugins...

[1] elementor... [OK]
[2] wordpress-seo... [OK]
[3] contact-form-7... [OK]
[4] classic-editor... [OK]
[5] woocommerce... [OK]
[6] litespeed-cache... [OK]
[7] akismet... [OK]
[8] wpforms-lite... [OK]
[9] all-in-one-wp-migration... [OK]
[10] google-site-kit... [OK]

====================================================================================================

SUCCESS RATE: 10/10 (100%)
ERROR RATE:    0/10 (0%)

====================================================================================================
@JanJakes
JanJakes requested a review from a team as a code owner November 10, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant