
內容簡介
Basic Optimization for WordPress 外掛可協助您管理基本的優化,例如:停用表情符號、移除 Shortlink、停用 Embeds、停用 XML-RPC、隱藏 WordPress 版本等。Basic Optimization for WordPress 是一個開源專案,感謝您(的程式碼)的貢獻。
功能
停用表情符號 - 移除與 WordPress 相關的額外表情符號程式碼,這是最近為了支援舊版瀏覽器的表情符號而新增的功能。
移除 Shortlink - 從版本 3 開始,WordPress 在標頭程式碼中加入了短連結(網頁地址的簡短版本)。例如:<link rel='shortlink' href='https://mcqacademy.com/?p=187' />。如果沒有使用短連結,則需要將其移除。
移除資產檔案版本 - 檔案中有查詢字串可能導致 CDN 無法緩存這些檔案,因此可能未能充分利用所提供的所有緩存效益。
移除 RSD 連結 - 如果您打算使用 XML-RPC 客戶端、pingback 等,則需要使用 RSD(Really Simple Discovery)。但是,如果您不需要 pingback 或遠端客戶端管理文章,則可以去除此不必要的標頭。
停用 Embeds - WordPress 在 4.4 中推出 oEmbed 功能。該功能可防止其他人嵌入您的部落格文章,並停用相關的 JS 檔案載入。
停用 XML-RPC - 您是否需要使用 WordPress API(XML-RPC)來發布/編輯/刪除文章、編輯/列出評論、上傳檔案?同時,啟用 XML-RPC 且未正確強化可能會導致 DDoS 和暴力攻擊。
移除 WLManifest 連結 - 如果您不使用 Windows Live Writer 的標籤支援,請透過以下方式移除它。
停用自我 Pingback - 我不知道為什麼您需要在部落格文章中自我 Pingback 的詳細資訊,我知道我很不高興。
隱藏 WordPress 版本 - 這並不會幫助性能,而是為了減輕信息洩露漏洞。預設情況下,WordPress 會添加包含版本詳細資訊的 meta name generator,可在源代碼和 HTTP 標頭中看到。
停用 Heartbeat - WordPress 使用 Heartbeat API 來通過頻繁呼叫 admin-ajax.php 來與瀏覽器通信,這可能會降低整體頁面加載時間並增加共用託管的 CPU 運用率。
支援 - 通過 GitHub issues page 提供的活躍支援
請注意,Basic Optimization 需要 PHP 7+ 才能執行。
Basic Optimization for WordPress 是一個開源專案,歡迎任何人貢獻。開發和問題跟蹤器位於 GitHub 上,請參見:https://github.com/Micro-Solutions-Bangladesh/basic-optimization
報告問題
在我們的 GitHub issues page 上報告錯誤、問題、問題和/或功能請求。
外掛標籤
開發者團隊
原文外掛簡介
Basic Optimization provides simple on/off controls for common WordPress cleanup and performance-related tweaks. It is intentionally small, dependency-free, and designed for site owners who want practical optimization controls without a large performance suite.
The plugin adds a Basic Optimization admin screen where administrators can enable or disable each feature independently. It also includes a child Email Notifications settings page for disabling selected WordPress core auto emails.
Basic Optimization supports regular single-site WordPress installs and WordPress Multisite. On multisite, when the plugin is network activated, Super Admins configure the plugin only from Network Admin and all sites use the network settings.
Features
Multisite Support – Adds Network Admin settings pages and stores network-wide settings with WordPress network options.
Network-Only Mode – When network activated, subsite admin pages are not added and every site uses the Network Admin settings.
Disable Emojis – Removes WordPress emoji scripts, styles, filters, and emoji DNS prefetch output.
Remove Shortlink – Removes the shortlink tag from the document head.
Remove CSS/JS Version – Removes the ver query argument from enqueued stylesheet and script URLs.
Remove RSD Links – Removes the Really Simple Discovery link from the document head.
Disable Embeds – Removes WordPress oEmbed discovery links and dequeues the default wp-embed frontend script.
Disable XML-RPC – Disables XML-RPC requests and removes the X-Pingback response header.
Remove WLW Manifest Link – Removes the Windows Live Writer manifest link from the document head.
Disable Self Pingback – Prevents self pingbacks when content links to the same site.
Hide WordPress Version – Removes the WordPress generator meta tag from the document head.
Disable Heartbeat – Deregisters the WordPress heartbeat script on the frontend.
Email Notifications – Adds dropdown controls to disable selected WordPress core auto emails, including new user registration, password changed, comment moderation, and automatically approved comment notifications.
Multisite Behavior
On a multisite network, the plugin can be network activated. When network activated, only the Network Admin settings pages are shown. Subsite admin pages are not added, and all sites use the network-level settings.
Network settings are available under Network Admin > Basic Optimization. Subsite dashboards do not receive a Basic Optimization admin menu while the plugin is network activated.
Notes
Some features can affect integrations that rely on WordPress defaults. For example, disabling XML-RPC can affect external publishing clients and services that still depend on XML-RPC. Disabling auto emails can also affect administrator awareness of user and comment activity. Disable only the features that match your site requirements.
