Health check page

One drawback of what we have outlined here is that these tests execute during every WordPress page request. If you have written a long series of tests, they may incur some significant overhead and they can really slow down your site performance. One option is to move all your tests into a separate file that you must navigate to directly.

Perhaps you have heard of a "health check" page—all it does is run a series of tests, and if everything looks good, it prints out an "Ok" message. There are many different monitoring applications out there (for example, Nagios—http://nagios.org/) that can be configured to take quick looks at these health check pages and verify that they are seeing the "Ok" message. If a test hits a snag, it will ...

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.