Preflightcheck helps you avoid errors and improves the quality of your WordPress projects. The plugin adds a
‘Hello Preflightcheck’ submenu in the Tools menu in the WordPress admin interface. On this page all tests will
be executed displaying a test result for each test. The tests are found in hello-preflightcheck/tests inside your
Please suggest your own useful tests and contribute to the development of this plugin. Just send an email to
email@example.com if you want us to add your tests to Hello Preflightcheck.
- Unzip the zip-archive you downloaded.
- Upload the directory hello-preflightcheck (and all subdirectories) to the plugins directory (wp-content/plugins).
- Activate the plugin through the ‘Plugins’ menu in the admin interface
Neither structure nor content of the database is changed.
- How do I run the tests?
Just open the Hello Preflightcheck page found in the Tools section.
- How often are the tests executed?
These tests are only executed by manually opening the Hello Preflightcheck page (found in the Tools section).
Therefore it’s no problem if some of these tests take a bit of time.
- Should I write own tests?
- How do I write my own tests?
Every test lives in the tests directory (wp-content/plugins/hello-preflightcheck/tests) or in a
subdirectory. It has the following:
- a JavaDoc/phpdoc style comment that provides the test description.
- Some logic for the test itself.
- Exactly one method of the following:
$check->info($message): for showing information without any evaluation
$check->success($message): for successful test results
$check->warning($message): for test results that might cause a problem
$check->error($message): for test results that definitely will cause a problem
$check->ignore(): if no output is provided.
Additionally you may use
$check->showList()to output an array as a list.
Have a look at the existing tests to see how it works.
- Can I remove tests?
Yes, just throw them away. But why should you?
- Can I contribute tests?
Yes, please! Just send me a mail at firstname.lastname@example.org with the test and I will add each useful test
as soon as I can.
Contributors & Developers
“Hello Preflightcheck” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- used the new function wp_get_theme() instead of the deprecated get_current_theme() when exists
- removed Hello Future specific tests
- deactivated php syntax checking under a special (and strange) condition
- favicon test: changed severity from error to warning
- wordpress-version test: changed severity from warning to error
- timezone test: new test, that checks whether the timezone is the default timezone
- filler-text-in-templates text: removed grepping ‘@example’ since it’s too generic
- uploads-folder test: skip directories that start with a dot
- changed icon on plugin page
- improved readme.txt
- Initial release