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://tw.wordpress.org/plugins/safe-headers-scanner/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/safe-headers-scanner/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/safe-headers-scanner/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/safe-headers-scanner/)
 * 標籤:
 * [debug](https://tw.wordpress.org/plugins/tags/debug/)[headers](https://tw.wordpress.org/plugins/tags/headers/)
   [plugins](https://tw.wordpress.org/plugins/tags/plugins/)[scanner](https://tw.wordpress.org/plugins/tags/scanner/)
   [security](https://tw.wordpress.org/plugins/tags/security/)
 *  [進階檢視](https://tw.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)