{"id":253271,"date":"2025-10-08T11:01:29","date_gmt":"2025-10-08T11:01:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/safe-headers-scanner\/"},"modified":"2025-10-08T11:04:50","modified_gmt":"2025-10-08T11:04:50","slug":"safe-headers-scanner","status":"publish","type":"plugin","link":"https:\/\/fi.wordpress.org\/plugins\/safe-headers-scanner\/","author":21190234,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"1.2","tested":"6.8.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"Safe Headers Scanner","header_author":"Amir Tohidlo","header_description":"Scan themes and plugins for potential header issues such as whitespace before\/after PHP tags or direct output before headers.","assets_banners_color":"","last_updated":"2025-10-08 11:04:50","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/tohidlo.com","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/safe-headers-scanner\/","header_author_uri":"https:\/\/tohidlo.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":201,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2":{"tag":"1.2","author":"tohidlo","date":"2025-10-08 11:04:50"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3375016,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3375007,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2"],"block_files":[],"assets_screenshots":{"Screenshot-1.png":{"filename":"Screenshot-1.png","revision":3375007,"resolution":"1","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,2846,2391,6464,600],"plugin_category":[54,59],"plugin_contributors":[244150],"plugin_business_model":[],"class_list":["post-253271","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-headers","plugin_tags-plugins","plugin_tags-scanner","plugin_tags-security","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_contributors-tohidlo","plugin_committers-tohidlo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/safe-headers-scanner\/assets\/icon-128x128.png?rev=3375016","icon_2x":"https:\/\/ps.w.org\/safe-headers-scanner\/assets\/icon-256x256.png?rev=3375007","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/safe-headers-scanner\/assets\/Screenshot-1.png?rev=3375007","caption":""}],"raw_content":"<!--section=description-->\n<p>Safe Headers Scanner helps WordPress administrators identify common issues that may cause header-related problems.<br \/>\nThe plugin scans installed themes and plugins for:\n* Unnecessary whitespace before <code>&lt;?php<\/code> tags\n* Extra whitespace after closing <code>?&gt;<\/code> tags\n* Direct output (e.g., <code>echo<\/code>, <code>print<\/code>) before headers are sent<\/p>\n\n<p>Results are displayed in a clear report, so you can review and fix potential issues easily.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>safe-headers-scanner<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to <strong>Tools &gt; Safe Headers Scanner<\/strong> to scan your themes or plugins.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20automatically%20fix%20issues%3F'><h3>Does this plugin automatically fix issues?<\/h3><\/dt>\n<dd><p>No. It only scans and reports possible issues. You need to manually review and fix them.<\/p><\/dd>\n<dt id='will%20it%20slow%20down%20my%20website%3F'><h3>Will it slow down my website?<\/h3><\/dt>\n<dd><p>No. The scan only runs when you request it from the admin panel. It does not affect frontend performance.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed path handling by replacing hardcoded WP_CONTENT_DIR references with get_theme_root() and WP_PLUGIN_DIR.  <\/li>\n<li>Improved asset handling by replacing inline  and  with wp_register_script(), wp_add_inline_script() and wp_add_inline_style().  <\/li>\n<li>Added explicit versioning for enqueued resources to comply with WordPress coding standards. <\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Replaced WP_PLUGIN_DIR with plugin_dir_path() for improved compatibility with non-standard WordPress setups.<\/li>\n<\/ul>","raw_excerpt":"Scan themes and plugins for potential header issues such as whitespace before\/after PHP tags or direct output before headers.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/253271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=253271"}],"author":[{"embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tohidlo"}],"wp:attachment":[{"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=253271"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=253271"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=253271"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=253271"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=253271"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fi.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=253271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}