I have a client with a lot lot lot lot of WordPress sites, and I’m helping them craft a strategy for dealing with WordPress throughout their business. One thing we wanted to do was to take stock of all the plugins they have installed on all their sites, work out how many are in common, understand if any have security issues and so forth. Logging into hundreds of WordPress sites, even if we did have their login details, isn’t my idea of fun so I hacked some of the WordPress plugin functions to output a report on any plugins it finds in a directory. Here’s the source code for my command line plugin finding script.
I use it like this: find ~/Projects/ -name "plugins" -type d -exec php ~/Projects/WordPress/site/wp-content/plugins/find-plugins.php {} \; >> ~/Desktop/plugins.csv. Let’s break that down a bit:
find ~/Projects/ -name "plugins" -type d – this bit uses the ‘nix find command to find all directories called “plugins”.
-exec php ~/Projects/WordPress/site/wp-content/plugins/find-plugins.php {} \; – this bit uses the exec parameter for find to run the PHP script (see above for the link).
>> ~/Desktop/plugins.csv – this bit redirects the output to a file on your user’s desktop called “plugins.csv”. Did I mention that the script outputs to CSV?
Anyway. I hope this is useful to some people, if you do use it let me know how you get on in the comments.
Great infomation on WP Plug ins, I have a programmer that is working on a new one and your information has been very helpful, thanks