{"id":14742,"date":"2011-09-05T09:52:05","date_gmt":"2011-09-05T09:52:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/hello-preflightcheck\/"},"modified":"2012-09-06T09:19:34","modified_gmt":"2012-09-06T09:19:34","slug":"hello-preflightcheck","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/hello-preflightcheck\/","author":8289934,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.4","stable_tag":"trunk","tested":"3.4.2","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Hello Preflightcheck","header_author":"Olaf Schneider for Hello Future","header_description":"","assets_banners_color":"","last_updated":"2012-09-06 09:19:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.hellofuture.se","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1185,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539441","resolution":"1","location":"plugin"}},"screenshots":{"1":"Example output of the test results"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[10675,34471,9014,1591,14585],"plugin_category":[],"plugin_contributors":[97410],"plugin_business_model":[],"class_list":["post-14742","plugin","type-plugin","status-closed","hentry","plugin_tags-checks","plugin_tags-preflightcheck","plugin_tags-quality","plugin_tags-testing","plugin_tags-tests","plugin_contributors-hellofuturese","plugin_committers-elint","plugin_committers-hellofuturese"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/hello-preflightcheck.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/hello-preflightcheck\/trunk\/screenshot-1.png?rev=1539441","caption":"Example output of the test results"}],"raw_content":"<!--section=description-->\n<p>Preflightcheck helps you avoid errors and improves the quality of your WordPress projects. The plugin adds a\n\u2018Hello Preflightcheck\u2019 submenu in the Tools menu in the WordPress admin interface. On this page all tests will\nbe executed displaying a test result for each test. The tests are found in hello-preflightcheck\/tests inside your\nplugin directory.<\/p>\n\n<p>Please suggest your own useful tests and contribute to the development of this plugin. Just send an email to\nolaf@hellofuture.se if you want us to add your tests to Hello Preflightcheck.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the zip-archive you downloaded.<\/li>\n<li>Upload the directory hello-preflightcheck (and all subdirectories) to the plugins directory (wp-content\/plugins).<\/li>\n<li>Activate the plugin through the 'Plugins' menu in the admin interface<\/li>\n<\/ol>\n\n<p>Neither structure nor content of the database is changed.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How do I run the tests?<\/dt>\n<dd><p>Just open the Hello Preflightcheck page found in the Tools section.<\/p><\/dd>\n<dt>How often are the tests executed?<\/dt>\n<dd><p>These tests are only executed by manually opening the Hello Preflightcheck page (found in the Tools section).\nTherefore it's no problem if some of these tests take a bit of time.<\/p><\/dd>\n<dt>Should I write own tests?<\/dt>\n<dd><p>Definitely yes!<\/p><\/dd>\n<dt>How do I write my own tests?<\/dt>\n<dd><p>Every test lives in the tests directory (wp-content\/plugins\/hello-preflightcheck\/tests) or in a\nsubdirectory. It has the following:<\/p>\n\n<ol>\n<li>a JavaDoc\/phpdoc style comment that provides the test description.<\/li>\n<li>Some logic for the test itself.<\/li>\n<li>Exactly one method of the following:<\/li>\n<\/ol>\n\n<ul>\n<li><code>$check-&gt;info($message)<\/code>: for showing information without any evaluation<\/li>\n<li><code>$check-&gt;success($message)<\/code>: for successful test results<\/li>\n<li><code>$check-&gt;warning($message)<\/code>: for test results that might cause a problem<\/li>\n<li><code>$check-&gt;error($message)<\/code>: for test results that definitely will cause a problem<\/li>\n<li><code>$check-&gt;ignore()<\/code>: if no output is provided.<\/li>\n<\/ul>\n\n<p>Additionally you may use <code>$check-&gt;showList()<\/code> to output an array as a list.<\/p>\n\n<p>Have a look at the existing tests to see how it works.<\/p><\/dd>\n<dt>Can I remove tests?<\/dt>\n<dd><p>Yes, just throw them away. But why should you?<\/p><\/dd>\n<dt>Can I contribute tests?<\/dt>\n<dd><p>Yes, please! Just send me a mail at olaf@hellofuture.se with the test and I will add each useful test\nas soon as I can.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>used the new function wp_get_theme() instead of the deprecated get_current_theme() when exists<\/li>\n<li>removed Hello Future specific tests<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>deactivated php syntax checking under a special (and strange) condition<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>favicon test: changed severity from error to warning<\/li>\n<li>wordpress-version test: changed severity from warning to error<\/li>\n<li>timezone test: new test, that checks whether the timezone is the default timezone<\/li>\n<li>filler-text-in-templates text: removed grepping '@example' since it\u2019s too generic<\/li>\n<li>uploads-folder test: skip directories that start with a dot<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>changed icon on plugin page<\/li>\n<li>improved readme.txt<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Preflightcheck runs various php test scripts to avoid errors when developing and deploying. Preflightcheck is easily extensible.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14742"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hellofuturese"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14742"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14742"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14742"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14742"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14742"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}