Last active
November 30, 2023 17:33
-
-
Save mehdichaouch/a985f03ca7df030ceb64bbb17e1567c7 to your computer and use it in GitHub Desktop.
Revisions
-
mehdichaouch revised this gist
Jan 29, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ # WordPress Plugins Compatibility from command line with WP-CLI ## System requirements - `curl`: https://curl.se/ - `jq`: https://stedolan.github.io/jq/ - `wp`: https://wp-cli.org/ ## Description This script check compatibility of all installed plugins. It's similar to [Plugin Compatibility Checker](https://wordpress.org/plugins/plugin-compatibility-checker/) or [Better Plugin Compatibility Control](https://wordpress.org/plugins/better-plugin-compatibility-control/) but from the command line, using [WP-CLI](https://wp-cli.org/). -
mehdichaouch revised this gist
Jan 29, 2023 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,15 @@ # WordPress Plugins Compatibility from command line with WP-CLI ## requirement - `curl`: https://curl.se/ - `jq`: https://stedolan.github.io/jq/ - `wp`: https://wp-cli.org/ ## Presentation This script check compatibility of all installed plugins. It's similar to [Plugin Compatibility Checker](https://wordpress.org/plugins/plugin-compatibility-checker/) or [Better Plugin Compatibility Control](https://wordpress.org/plugins/better-plugin-compatibility-control/) but from the command line, using [WP-CLI](https://wp-cli.org/). <img width="1671" alt="wordpress-plugins-compatibility" src="https://user-images.githubusercontent.com/861701/215360321-71a1bf06-08aa-4b75-bdef-df543929ff9f.png"> -
mehdichaouch created this gist
Jan 29, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # WordPress Plugins Compatibility from command line with WP-CLI This script check compatibility of all installed plugins. It's similar to [Plugin Compatibility Checker](https://wordpress.org/plugins/plugin-compatibility-checker/) or [Better Plugin Compatibility Control](https://wordpress.org/plugins/better-plugin-compatibility-control/) but from the command line, using [WP-CLI](https://wp-cli.org/fr/). <img width="1671" alt="wordpress-plugins-compatibility" src="https://user-images.githubusercontent.com/861701/215360321-71a1bf06-08aa-4b75-bdef-df543929ff9f.png"> NB. if you have a lot of plugins this can take few second to curl all data. Enjoy, This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/usr/bin/env bash ### # @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 # @author Mehdi Chaouch <[email protected]> <@advocodo> # @copyright Copyright (c) 2023 ADVOCODO (https://www.advocodo.com) # @description This script check compatibility of all installed plugins. # It's similar to Plugin Compatibility Checker or Better Plugin Compatibility Control # but from the command line, usinq WP-CLI. # NB. if you have a lot of plugins this can take few second to curl all data. # @usage ./wordpress-plugins-compatibility.sh ### #set -e #set -x PLUGINS_URL="";for SLUG in $(wp plugin list --field=name --status=active); do PLUGINS_URL+="https://wordpress.org/plugins/wp-json/plugins/v1/plugin/${SLUG} "; done; curl --silent $PLUGINS_URL | jq -rs '(["NAME","TESTED"] | (., map(length*"-"))),(.[] | [.slug, .tested]) | @tsv'| column -t