Every now and then someone finds something wrong with a WordPress install which, rather than be caused by a bug in WordPress itself, is caused by a server configuration error, an interaction between WordPress and something else installed on the server or is just a recommend optimisation for better site performance.
Everyone has a different set of pitfalls that they have come across and I would like to collect together all these little things into a comprehensive community developed plugin which can hopefully become one of the first “canonical” plugins that we have talked about.
To that end I have developed a framework for this plugin, in the style of a unit test framework, to make it really easy to write tests and I am hoping that some of you will have ideas for tests and also that you will want to get involved.
For a while I have tagged tickets in the main WordPress trac where there are is possible inspiration for tests – http://bit.ly/healthchecktickets.
The following is an example of the code required to carry out one of these tests which recommends users of PHP4 upgrade to PHP5.
01 /**
02 * Check that we are running at least PHP 5
03 *
04 * @todo Provide a link to a codex article
05 * @link http://core.trac.wordpress.org/ticket/9751
06 * @author peterwestwood
07 */
08 class HealthCheck_PHP_Version extends HealthCheckTest {
09 function run_test() {
10 $this->assertTrue( version_compare(5.0.0, PHP_VERSION, <),
11 sprintf( __( Your Webserver is currently using PHP version %s, which is no longer receiving security updates and will no longer be supported by WordPress in an future version, health-check ), PHP_VERSION ),
12 HEALTH_CHECK_RECOMMENDATION );
13 }
14 }
15 HealthCheck::register_test(HealthCheck_PHP_Version);
If you would like to get involved in the development of the plugin then you can check the source code out from the WordPress plugins subversion repository here: http://plugins.svn.wordpress.org/health-check/branches/alpha/ and you can follow the development progress using the WordPress plugins trac here: http://plugins.trac.wordpress.org/log/health-check/branches/alpha.
As the plugin is not yet ready for its first release we will be doing the development in this alpha branch and then move to trunk once we make the first release.
I am actively looking for fellow developers for this project as a community team we can make this a success.
Related Stuff
Google Buzz Button Wordpress Plugin ReleasedIf you are looking for a Google Buzz button to add into your Wordpress site then we have released the first Wordpress plugin exclusively ...
Plug And Play Ecommerce With Wordpress PluginsSince 2003 Wordpress has slowly been gaining popularity amongst the elite of the internet, the bloggers. It is one of those few things ...
Add Google Search to Your WordPress BlogThe native WordPress search does not return very relevant results, thus it makes a lot of sense to add Google Search into your WordPress ...
Add More Sidebars to Your WordPress ThemeYou can add more than one sidebar section to your WordPress site. For example, with the stc-intermountain.org site, I added a whole bunch ...
Series Posting in WordpressIn my functions.php file, I have some code which implements series posting. This relies on the thematic ...

Original Source: