Title: Safe Headers Scanner
Author: amir tohidlo
Published: <strong>miz Here 8, 2025</strong>
Last modified: miz Here 8, 2025

---

Search plugins

![](https://ps.w.org/safe-headers-scanner/assets/icon-256x256.png?rev=3375007)

# Safe Headers Scanner

 By [amir tohidlo](https://profiles.wordpress.org/tohidlo/)

[Download](https://downloads.wordpress.org/plugin/safe-headers-scanner.1.2.zip)

 * [Details](https://bre.wordpress.org/plugins/safe-headers-scanner/#description)
 * [Reviews](https://bre.wordpress.org/plugins/safe-headers-scanner/#reviews)
 *  [Installation](https://bre.wordpress.org/plugins/safe-headers-scanner/#installation)
 * [Development](https://bre.wordpress.org/plugins/safe-headers-scanner/#developers)

 [Support](https://wordpress.org/support/plugin/safe-headers-scanner/)

## Description

Safe Headers Scanner helps WordPress administrators identify common issues that 
may cause header-related problems.
 The plugin scans installed themes and plugins
for: * Unnecessary whitespace before `<?php` tags * Extra whitespace after closing`?
>` tags * Direct output (e.g., `echo`, `print`) before headers are sent

Results are displayed in a clear report, so you can review and fix potential issues
easily.

## Screenshots

 * [[

## Installation

 1. Upload the `safe-headers-scanner` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to **Tools > Safe Headers Scanner** to scan your themes or plugins.

## FAQ

### Does this plugin automatically fix issues?

No. It only scans and reports possible issues. You need to manually review and fix
them.

### Will it slow down my website?

No. The scan only runs when you request it from the admin panel. It does not affect
frontend performance.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Safe Headers Scanner” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ amir tohidlo ](https://profiles.wordpress.org/tohidlo/)

[Translate “Safe Headers Scanner” into your language.](https://translate.wordpress.org/projects/wp-plugins/safe-headers-scanner)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/safe-headers-scanner/),
check out the [SVN repository](https://plugins.svn.wordpress.org/safe-headers-scanner/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/safe-headers-scanner/)
by [RSS](https://plugins.trac.wordpress.org/log/safe-headers-scanner/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release.

#### 1.1

 * Fixed path handling by replacing hardcoded WP_CONTENT_DIR references with get_theme_root()
   and WP_PLUGIN_DIR.
 * Improved asset handling by replacing inline and with wp_register_script(), wp_add_inline_script()
   and wp_add_inline_style().
 * Added explicit versioning for enqueued resources to comply with WordPress coding
   standards.

#### 1.2

 * Replaced WP_PLUGIN_DIR with plugin_dir_path() for improved compatibility with
   non-standard WordPress setups.

## Meta

 *  Version **1.2**
 *  Last updated **6 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/safe-headers-scanner/)
 * Tags
 * [debug](https://bre.wordpress.org/plugins/tags/debug/)[headers](https://bre.wordpress.org/plugins/tags/headers/)
   [plugins](https://bre.wordpress.org/plugins/tags/plugins/)[scanner](https://bre.wordpress.org/plugins/tags/scanner/)
   [security](https://bre.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://bre.wordpress.org/plugins/safe-headers-scanner/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/safe-headers-scanner/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/safe-headers-scanner/reviews/)

## Contributors

 *   [ amir tohidlo ](https://profiles.wordpress.org/tohidlo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/safe-headers-scanner/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://tohidlo.com)