前言介紹
- 這款 WordPress 外掛「HTTP Requests Manager」是 2023-06-03 上架。
- 目前有 700 個安裝啟用數。
- 上一次更新是 2025-05-03,不久前才剛更新。
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 有 5 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 0%
外掛協作開發者
veppa |
外掛標籤
log | debug | limit | wp_http | optimization |
內容簡介
總結:這個 WordPress 外掛可以防止 WP HTTP 請求拖慢你的網站和管理介面的速度。它可以設定每個請求的超時時間、限制每個頁面請求的數量、當頁面載入時間超過 3 秒時限制 WP HTTP 請求的數量等等。
問題與答案:
問題:我在 WordPress 管理介面上經常遇到速度緩慢的問題,可能需要等超過 5 秒才能載入頁面,這個外掛能夠解決這個問題嗎?
答案:是的,這個外掛可以幫助防止外部 WP HTTP 請求拖慢你的網站和管理介面的速度。它可以設定每個請求的超時時間和限制每個頁面請求的數量,以協助加快網站載入速度。
問題:這個外掛只能夠管理使用 WP_Http 類別的請求嗎?其他類別的請求會被忽略掉嗎?
答案:是的,這個外掛僅能夠偵測和管理使用 WP_Http 類別的請求,其他類別的請求,如 WP_Http_Curl 或 PHP 函數,不會被偵測到。
問題:這個外掛的操作模式是怎樣的?
答案:這個外掛有三種操作模式。"Only log HTTP requests" 記錄所有非 cron 請求但不會做任何限制;"Only log HTTP requests (+ cron requests)" 記錄所有請求包括 cron 請求但不會做任何限制;"Smart block" 會記錄非 cron HTTP 請求,並根據以下規則限制請求:
- 頁面處理時間超過 3 秒。
- 單個頁面的請求量達到 3。
- 設置每個請求的超時時間為 1 秒。
- 設置每個請求的重定向數量為 1。
- 除了下載文件(如插件、主題等)之外,跳過上述限制。
原文外掛簡介
Prevent WP HTTP requests from slowing down your WordPress website and admin interface
Do you have a slow WordPress admin that takes longer than usual to load? Sometime longer than 5 seconds to load admin or login pages. In rare occasions WordPress may even timeout and show 504 page.
Reason may be slow external WP_HTTP requests. HTTP Requests Manager plugin will log all WP HTTP requests with time taken to complete for each request. If there are multiple requests per page they will be color grouped.
Check plugin overview on YouTube | Watch plugin tutorials
Plugin tested with PHP version 5.6, 7.x and up to 8.3.
Do not confuse WP_HTTP request with HTML requests that loads page assets like js, css, image, font
Plugin only detects and manages requests made using WP_Http class. Which is default method used and advised by WordPress for getting remote data and updates.
Plugin will not detect any requests made by other WordPress classes like WP_Http_Curl or PHP functions like curl_exec, fsockopen, file_get_contents etc.
Do not confuse it with HTML requests (loading assets like css, js, image) done by HTML page. WP_Http requests are performed only inside PHP files and not visible in web browser.
Learn more about difference between WP_HTTP requests and HTML requests
How plugin prevents slow pages containing WP_HTTP requests?
Plugin helps to prevent website slowdown by:
Sets request timeout period to 2 second. Where default is 5.
Limit number of request per page by 3. Default is unlimited.
Limit WP HTTP request if page load time is longer than 3 seconds. Default is unlimited.
Option to block all external requests or allow only requests to wordpress.org for plugin, theme and core updates.
Operation mode
Plugin has following operation modes in setting to manage WP HTTP requests. Here is what each mode does:
Only log HTTP requests — logs all non cron requests. No blocking done.
Only log HTTP requests (+ cron requests) — logs all requests including cron. No blocking done.
Smart block — logs non cron HTTP requests and blocks request using following rules.
Page processing time exceeded 3 seconds.
Number of request for single page reached 3.
Sets timeout for each request to 2 second.
Sets number of redirects for request to 1.
Apply custom rules for “Smart block” defined in settings.
Prevent some built in requests: happy browser, maybe update, self pings, do_enclose.
Skip some limitations listed above for: file downloads (plugin, theme, other), requests inside cron jobs.
Block external requests — all requests not matching your current domain will be blocked. No updates for WordPress core, plugins and themes. (+ Smart block features.)
Block external requests (allow WordPress.org only) — all requests not matching your current domain and wordpress.org will be blocked. Allows updates for WordPress core, plugins and themes coming from wordpress.org website. (+ Smart block features.)
Custom rules only work in “Smart block” mode. It will not work in “Block external requests” or “Block external requests (allow WordPress.org only)” mode.
Disable logging
After using plugin for some time and knowing which requests are performed you can disable logging. Operation mode will remain unchanged. Request blocking will remain in tact. No new logs will be recorded. You can analyze old logs, they will not be deleted.
Load before other plugins
In order to catch more requests you can enable “Load before other plugins” option. It uses Must-Use plugin feature and load before other regular plugins. This way you will make sure to detect all WP_HTTP requests by other plugins.
Custom rules for “Smart Block” mode
Allow or block some requests based on domain, plugin or all. Choose on which page type rule will be applied. For example you can block requests in frontend while allowing in other pages.
Finally you can define action as block or allow for custom rule. For example you can make sure that some plugin will always be allowed to send WP_HTTP request. This can be SEO or mail plugin that uses remote API for functioning.
Features
View performance improvement of your WordPress website due to blocking some remote HTTP requests.
View blocked requests by this plugin. Show reason why it was blocked.
View failed requests with error message.
View what initiated HTTP request: WordPress core, plugin or theme.
View on which page request was made. Also view page type is frontend, admin, login, cron, ajax, xmlrpc or rest_api.
View list of other requests made on same page view.
View sent and received data.
How long it took to get response in seconds.
Check Point with page time and memory usage for most common hooks like plugins_loaded, init, wp_loaded, setup_theme, after_setup_theme, shutdown. This will give some idea about cause of slow pages.
Only last 1000 records will be stored.
Group requests by URL, domain, initiator, plugin, page, response status etc.
Add custom rules (conditional logic) to block or allow certain requests.
Log summary populated for visible logs in selected page. Summary has following information cards:
Performance gain quantifier (2x) as a result of optimization.
Blocked requests percentage. When hovered it will show request breakdown by core, plugins or theme.
Number of requests per page. When hovered shows breakdown by page type: Frontend, admin, login, cron, ajax, xmlrpc, rest_api.
Request time / Page time percentage.
Average page time.
Average request time.
Number of domains. On hover shows breakdown of domains.
Use cases
Check if WordPress communication to remote APIs works without any problem. — Check how easy it is to debug WP_HTTP requests →
Identify if your website slow because of WP_HTTP requests. Average page load time, average request time and average number of requests per page shown as summary at the top of reports.
Block all external request on development or localhost website. All updates will be blocked. You switch off blocking when you want to perform Core, Plugin, Theme updates. No need to use define(‘WP_HTTP_BLOCK_EXTERNAL’, true); in your wp-config.php. Plugin will prevent requests automatically when you choose “Block external requests” or “Block external requests (allow WordPress.org only)” operation mode.
Block non WordPress request. No data will be sent to third parties. They are usually loading other website news, plugin/theme promotions, advertisements, sending usage statistics etc.
Prevent your website from timeout. By blocking all requests if page generation time exceeds 3 seconds. Kill slow HTTP request with small timeout of 2 second. Slow request can be because of temporary network problem or remote website can be too busy to respond on time. Slow request is not your fault so your website should not suffer from it. — Learn how WP_HTTP Optimization works →
More info about “HTTP Requests Manager” plugin on official home page →
Credits
Initial logging functionality was taken from Log HTTP Requests (version 1.4, year 2023) Github →
Blocking, grouping and additional features added by veppa →
What’s next
If you find this plugin useful to view WP_HTTP requests and speeding up your admin pages by blocking some requests then give good rating. Also check my other projects:
Tutorial to get high PageSpeed Score — video showing how I get PageSpeed Score 100 for my own website powered by WordPress CMS.
Cloudflare Custom Rules — pluginsless solutions for Page Cache, Antibot (prevents automated spam comments and brute-force login attacks) etc.
Share button without plugin — add super fast native sharing button to your website. Tiny inline code, ad blocker safe, no external dependencies.
bbPress WP Tweaks — add custom sidebar, additional widgets and forum columns for sites powered with bbPress forum plugin.
Visit veppa.com to learn from my WordPress tutorials.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTTP Requests Manager」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.3.6 | 1.3.7 | trunk |
延伸相關外掛(你可能也想知道)
AMP 》「Page Experience」(PX)是一組排名訊號,包括「核心網頁素質」(Core Web Vitals,CWV),用來測量使用者與網頁互動的使用體驗。AMP 是一個強大的工具,能...。
Performance Lab 》Performance Lab 外掛是一個專注於提升網站效能的模組集合,其中大部分模組最終都會合併到 WordPress 核心中。這個外掛允許使用者個別啟用和測試模組,以便在...。
Optimization Detective 》,
總結:這個外掛會收集使用者實際瀏覽時的數據,以便跨不同設備形式(如桌面、平板和手機)應用載入優化,這是使用WordPress目前伺...。
Image Prioritizer 》### 總結:, 這個外掛通過優化圖片的加載,特別是 LCP(最大內容繪製時間)元素,包括 img 元素和帶有 CSS 背景圖像的元素。它還通過捕獲每個斷點的 LCP 元素...。
WP Meteor Website Speed Optimization Addon 》 , WP Meteor 是一種全新的優化網頁速度的方式。即使在現有的優化基礎之上,例如:, , Autoptimize, WP Rocket, WP Total Cache, WP Super Cache, , WP Meteo...。
Flying Pages: Preload Pages for Faster Navigation & Improved User Experience 》Flying Pages 是一款 WordPress 外掛,可以在使用者點擊頁面前預先加載頁面,讓頁面瞬間載入。, , 它的運作方式是透過注入一小段(1KB gzipped)JavaScript ...。
Delete Duplicate Posts 》這個外掛可以搜尋並移除重複的文章及它們的相關資料。, 在您自己的測試網站上試試看:請點擊此連結 => https://tastewp.com/template/t6-CTt-T3P4?ni=true...。
Speed Booster Pack ⚡ PageSpeed Optimization Suite 》「Speed Booster Pack」是一款WordPress外掛,它可以讓你的網站速度更快,讓你在Google PageSpeed、GTmetrix、Pingdom、WebPageTest等主要速度測試服務上得到...。
PhastPress 》PhastPress 使用先進技術在加載時顯著改善頁面、腳本、樣式表和圖像。它設計成符合 Google PageSpeed Insights 和 GTmetrix 建議,可以顯著提高您網站的得分...。
GTmetrix for WordPress 》GTmetrix 為 WordPress 設計了 GTmetrix for WordPress 擴充套件,這款擴充套件會主動追蹤您的 WP 安裝狀況,並在您的網站未達到特定標準時發送警報。, 透過 ...。
Machete 》Machete是一個簡單的工具套件,可以盡可能節省資源來解決常見的WordPress煩惱。Machete並不適用於每一種使用情況,但若您使用Machete,會需要較少的外掛程式...。
WordPress Hosting Benchmark tool 》這個外掛可以幫助你測試你的主機伺服器。透過執行統一測試,你可以觀察和比較不同的伺服器或主機平台。它不需要任何特殊的額外軟體或工具,因為所有的測試都...。
Specific Content For Mobile – Customize the mobile version without redirections 》「Specific Content For Mobile」外掛可以讓你針對手機版頁面和文章創建特定的內容。若某些頁面需要有不同的內容,這款外掛就非常適合你使用。雖然擁有一個完...。
WordPress WPO Tweaks & Optimizations 》預設情況下,WordPress 載入了許多不必要且經常拖慢您的安裝,浪費主機資源的功能、服務和腳本。多年來,我一直嘗試進行一些微調,以節省主機資源,提高 Word...。
Helper Lite for PageSpeed 》使用解碼屬性 “async” 和 “loading=”lazy”,加速您的網站中的
和