[WordPress] 外掛分享: WP-Sweep

WordPress 外掛 WP-Sweep 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP-Sweep」是 2015-02-24 上架。
  • 目前有 100000 個安裝啟用數。
  • 上一次更新是 2025-04-16,距離現在已有 25 天。
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 有 135 人給過評分。
  • 論壇上目前有 2 個提問,問題解答率 0%

外掛協作開發者

gamerz |

外掛標籤

clean | sweep | cleanup | clean-up | Optimize |

內容簡介

這個外掛可以清理以下項目:

修改版本
自動草稿
已刪除評論
未經批准的評論
垃圾評論
已刪除評論
已孤立的文章元數據
已孤立的評論元數據
已孤立的使用者元數據
已孤立的分類元數據
已孤立的分類關聯
未被使用的分類
重複的文章元數據
重複的評論元數據
重複的使用者元數據
重複的分類元數據
暫時選項
優化資料表
文章內的 oEmbed 快取

這個外掛儘量使用 WordPress 的刪除函數,而非直接刪除 MySQL 資料庫查詢。

使用以下刪除函式:

wp_delete_post_revision()
wp_delete_post()
wp_delete_comment()
delete_post_meta()
delete_comment_meta()
delete_user_meta()
delete_term_meta()
wp_remove_object_terms()
wp_delete_term()
delete_transient()
delete_site_transient()

WP-Sweep WP REST API 端點
* GET /wp-json/sweep/v1/count/。獲取我們將要清理的物品數量。
* GET /wp-json/sweep/v1/details/。獲取我們將要清理的物品詳細資訊。
* DELETE /wp-json/sweep/v1/sweep/。運行特定物品的清理程序。

WP-Sweep WP-CLI 命令
* wp sweep --all。運行所有物品的清理程序。
* wp sweep 。運行特定物品的清理程序。
* wp sweep 。運行選定物品的清理程序。

WP-Sweep 可用項目:
* revisions
* auto_drafts
* deleted_posts
* unapproved_comments
* spam_comments
* deleted_comments
* transient_options
* orphan_postmeta
* orphan_commentmeta
* orphan_usermeta
* orphan_termmeta
* orphan_term_relationships
* unused_terms
* duplicated_postmeta
* duplicated_commentmeta
* duplicated_usermeta
* duplicated_termmeta
* optimize_database
* oembed_postmeta

WP-Sweep 與以下外掛不相容:
* Asgaros Forum
* Custom Fonts
* Elementor Popup Builder
* MailPress
* Meta Slider
* Polylang
* Slider Revolution
* Viba Portfolio
* WPML

建立狀態

開發

原文外掛簡介

This plugin cleans up:

Revisions
Auto drafts
Deleted comments
Unapproved comments
Spammed comments
Deleted comments
Orphaned post meta
Orphaned comment meta
Orphaned user meta
Orphaned term meta
Orphan term relationships
Unused terms
Duplicated post meta
Duplicated comment meta
Duplicated user meta
Duplicated term meta
Transient options
Optimizes database tables
oEmbed caches in post meta

This plugin uses proper WordPress delete functions as much as possible instead of running direct delete MySQL queries.
Following delete functions are used:

wp_delete_post_revision()
wp_delete_post()
wp_delete_comment()
delete_post_meta()
delete_comment_meta()
delete_user_meta()
delete_term_meta()
wp_remove_object_terms()
wp_delete_term()
delete_transient()
delete_site_transient()

WP-Sweep WP REST API Endpoints
* GET /wp-json/sweep/v1/count/. Get the number of items that we will be sweeping.
* GET /wp-json/sweep/v1/details/. Get the details of the items that we will be sweeping.
* DELETE /wp-json/sweep/v1/sweep/. Runs sweep for that particular item.
WP-Sweep WP-CLI Commands
* wp sweep --all. Runs sweep for all items.
* wp sweep . Runs sweep for that particular item.
* wp sweep . Run sweep for the selected items.
WP-Sweep Available Items:
* revisions
* auto_drafts
* deleted_posts
* unapproved_comments
* spam_comments
* deleted_comments
* transient_options
* orphan_postmeta
* orphan_commentmeta
* orphan_usermeta
* orphan_termmeta
* orphan_term_relationships
* unused_terms
* duplicated_postmeta
* duplicated_commentmeta
* duplicated_usermeta
* duplicated_termmeta
* optimize_database
* oembed_postmeta
WP-Sweep is not compatible with the following plugins:
* Custom Fonts
* Elementor Popup Builder
* MailPress
* Meta Slider
* Polylang
* Slider Revolution
* Viba Portfolio
* WPML
Build Status

Development

https://github.com/lesterchan/wp-sweep

Credits

Plugin icon by Freepik from Flaticon

Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-Sweep」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | trunk | 1.0.10 | 1.0.11 | 1.0.12 |

延伸相關外掛(你可能也想知道)

  • Delete Duplicate Posts 》這個外掛可以搜尋並移除重複的文章及它們的相關資料。, 在您自己的測試網站上試試看:請點擊此連結 => https://tastewp.com/template/t6-CTt-T3P4?ni=true...。
  • WP Clean Up 》WP Clean Up 可以幫助我們通過刪除「修訂版本」、「草稿」、「自動草稿」、「已審核評論」、「垃圾評論」、「已刪除評論」、「孤立的文章元數據」、「孤立的...。
  • Simple Revisions Delete 》這個外掛允許您逐個或一次性刪除文章的修訂版(清除或批量動作)。與 Gutenberg(實驗性的)和經典編輯器兼容。, 它有什麼作用?, Simple Revisions Delete ...。
  • Image Regenerate & Select Crop 》該外掛可管理圖像的高級設置,覆蓋本機的中等大小和大型裁剪選項,註冊新的自定義圖像尺寸。該外掛添加了兩個自定義按鈕,讓您可以重新生成和裁剪圖像,提供...。
  • Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages 》FDP 可讓您在特定頁面上停用外掛程式,以進行速度優化、偵錯和解決問題。它可適用於所有頁面、文章、定製文章(可公開查詢)、歸檔和後端頁面。, , 使用 FDP...。
  • Optimize Images Resizing 》如果你曾經對 WordPress 處理圖片大小調整感到煩惱,這個外掛就是為你而設的。, 這個外掛的作用是優化圖片處理方式,只有在必要時才會調整圖片大小。也就是說...。
  • AAA Option Optimizer 》,
      ,
    • 該外掛追踪頁面上使用的自動載入選項,並在頁面渲染結束時存儲該數據。它保留一個已使用的選項數組。在管理頁面上,它...。
    • DNUI 》不再維護, 該外掛已不再維護,您可以在 https://wordpress.org/plugins/ultimate-media-cleaner/ 查看新開發的版本, 我會稍等一段時間再刪除該存儲庫, 現在可...。
    • Specific Content For Mobile – Customize the mobile version without redirections 》「Specific Content For Mobile」外掛可以讓你針對手機版頁面和文章創建特定的內容。若某些頁面需要有不同的內容,這款外掛就非常適合你使用。雖然擁有一個完...。
    • Image Cleanup 》你曾在WordPress中縮放或裁剪上傳的圖片嗎?你曾經試過不同的圖像生成外掛嗎?你曾經更改或添加過各種媒體圖像大小嗎?如果是,你的內容文件夾可能充滿了未使...。
    • Templ Optimizer 》Templ Optimizer 是一款能夠讓您輕鬆優化您的網站並提高其性能的外掛程式。, 我們在 Templ 這家公司透過這些年的經驗,已經針對 1000 多個 WordPress 網站進...。
    • Cleanup Action Scheduler 》使用此 WordPress 外掛可以刪除 Action Scheduler 事件,以避免資料庫表格過大。, 功能:, , 刪除按鈕以刪除所有動作[已完成,已失敗]。請參見屏幕截圖。, , 1...。
    • whatwedo ACF Cleaner 》我們會對所選擇的文章類型逐一檢查使用的 ACF 群組,接下來會從已刪除的群組中刪除所有數據。, 這裡提供一個「偵測」選項,可以預覽會被刪除多少字段。在實際...。
    • Database Toolset 》資料庫工具集可以通過刪除所有孤兒或不需要的條目,例如“短期數據”、“修訂版”、“自動草稿”、“孤立的文章元”等,幫助您保持資料庫的清潔和優化。, 此外,資料...。
    • SweepPress: Website Cleanup and Optimization 》SweepPress 是一款易於使用的 WordPress 插件,圍繞著 30 個不同的清理程式(專業版有 33 個)進行數據庫清理,支援 WP-CLI 和 WP REST API 執行清理操作。, ...。

文章
Filter
Apply Filters
Mastodon