Created
December 6, 2019 06:54
-
-
Save maheshwaghmare/cd63501be5ace84dfc9497dea89ceb5f to your computer and use it in GitHub Desktop.
Test website performance by deactivating the single plugin.
This file contains 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 characters
for id in $(wp plugin list --fields=name --status=active --format=csv); do | |
echo $id; | |
wp plugin deactivate $id; | |
curl -s -o /dev/null -w "%{time_total}\n" http://localhost/dev.new/; | |
curl -s -o /dev/null -w "%{time_total}\n" http://localhost/dev.new/; | |
curl -s -o /dev/null -w "%{time_total}\n" http://localhost/dev.new/; | |
curl -s -o /dev/null -w "%{time_total}\n" http://localhost/dev.new/; | |
curl -s -o /dev/null -w "%{time_total}\n" http://localhost/dev.new/; | |
wp plugin activate $id; | |
done |
Author
maheshwaghmare
commented
Dec 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment