From 32909cc05e8e61d63c710429b6c272ae90bed39d Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 5 Feb 2026 11:28:41 +0100 Subject: [PATCH 1/2] Replace `wp-author-widget` plugin in tests That plugin has been closed by author request as of 2026-02-05. --- features/check-plugin-active-count.feature | 2 +- features/check-plugin-deactivated.feature | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/check-plugin-active-count.feature b/features/check-plugin-active-count.feature index 99cca3d..f151f6c 100644 --- a/features/check-plugin-active-count.feature +++ b/features/check-plugin-active-count.feature @@ -26,7 +26,7 @@ Feature: Check whether a high number of plugins are activated options: threshold_count: 3 """ - And I run `wp plugin install debug-bar wp-author-widget` + And I run `wp plugin install debug-bar wordpress-importer` And I run `wp plugin activate --all` When I run `wp doctor check plugin-active-count --config=config.yml` diff --git a/features/check-plugin-deactivated.feature b/features/check-plugin-deactivated.feature index ed9264f..27b40af 100644 --- a/features/check-plugin-deactivated.feature +++ b/features/check-plugin-deactivated.feature @@ -10,7 +10,7 @@ Feature: Check whether a high percentage of plugins are deactivated Scenario: All plugins are activated Given a WP install - And I run `wp plugin install debug-bar wp-author-widget` + And I run `wp plugin install debug-bar wordpress-importer` And I run `wp plugin activate --all` When I run `wp doctor check plugin-deactivated` @@ -20,7 +20,7 @@ Feature: Check whether a high percentage of plugins are deactivated Scenario: Too many plugins are deactivated Given a WP install - And I run `wp plugin install debug-bar wp-author-widget` + And I run `wp plugin install debug-bar wordpress-importer` When I run `wp doctor check plugin-deactivated` Then STDOUT should be a table containing rows: @@ -36,7 +36,7 @@ Feature: Check whether a high percentage of plugins are deactivated options: threshold_percentage: 60 """ - And I run `wp plugin install debug-bar wp-author-widget` + And I run `wp plugin install debug-bar wordpress-importer` When I run `wp doctor check plugin-deactivated --config=custom.yml` Then STDOUT should be a table containing rows: From b9920e3e31255cea7bc7f40aa549ef12e3a000f8 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 5 Feb 2026 14:28:34 +0100 Subject: [PATCH 2/2] Require WP 5.2 in test --- features/check-plugin-active-count.feature | 2 ++ features/check-plugin-deactivated.feature | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/features/check-plugin-active-count.feature b/features/check-plugin-active-count.feature index f151f6c..81193dd 100644 --- a/features/check-plugin-active-count.feature +++ b/features/check-plugin-active-count.feature @@ -17,6 +17,8 @@ Feature: Check whether a high number of plugins are activated | name | status | message | | plugin-active-count | success | Number of active plugins (2) is less than threshold (80). | + # WordPress Importer requirement. + @require-wp-5.2 Scenario: Greater than threshold plugins are active Given a WP install And a config.yml file: diff --git a/features/check-plugin-deactivated.feature b/features/check-plugin-deactivated.feature index 27b40af..4bce662 100644 --- a/features/check-plugin-deactivated.feature +++ b/features/check-plugin-deactivated.feature @@ -8,6 +8,8 @@ Feature: Check whether a high percentage of plugins are deactivated | name | description | | plugin-deactivated | Warns when greater than 40% of plugins are deactivated. | + # WordPress Importer requirement. + @require-wp-5.2 Scenario: All plugins are activated Given a WP install And I run `wp plugin install debug-bar wordpress-importer` @@ -18,6 +20,8 @@ Feature: Check whether a high percentage of plugins are deactivated | name | status | message | | plugin-deactivated | success | Less than 40 percent of plugins are deactivated. | + # WordPress Importer requirement. + @require-wp-5.2 Scenario: Too many plugins are deactivated Given a WP install And I run `wp plugin install debug-bar wordpress-importer` @@ -27,6 +31,8 @@ Feature: Check whether a high percentage of plugins are deactivated | name | status | message | | plugin-deactivated | warning | Greater than 40 percent of plugins are deactivated. | + # WordPress Importer requirement. + @require-wp-5.2 Scenario: Custom percentage of deactivated plugins Given a WP install And a custom.yml file: