Title: Safe Headers Scanner
Author: amir tohidlo
Published: <strong>2025 年 10 月 8 日</strong>
Last modified: 2025 年 10 月 8 日

---

搜索插件

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

# Safe Headers Scanner

 作者：[amir tohidlo](https://profiles.wordpress.org/tohidlo/)

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

 * [详情](https://cn.wordpress.org/plugins/safe-headers-scanner/#description)
 * [评价](https://cn.wordpress.org/plugins/safe-headers-scanner/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/safe-headers-scanner/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/safe-headers-scanner/#developers)

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

## 描述

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.

## 屏幕截图

 * [[

## 安装

 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.

## 常见问题

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Safe Headers Scanner」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Safe Headers Scanner」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/safe-headers-scanner)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/safe-headers-scanner/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/safe-headers-scanner/)，或通过[RSS](https://plugins.trac.wordpress.org/log/safe-headers-scanner/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/safe-headers-scanner/)。

## 更新日志

#### 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.

## 额外信息

 *  版本 **1.2**
 *  最后更新：**8 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/safe-headers-scanner/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[headers](https://cn.wordpress.org/plugins/tags/headers/)
   [plugins](https://cn.wordpress.org/plugins/tags/plugins/)[scanner](https://cn.wordpress.org/plugins/tags/scanner/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/safe-headers-scanner/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/safe-headers-scanner/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/safe-headers-scanner/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://tohidlo.com)