[WordPress] 外掛分享: Ultimate media cleaner

首頁外掛目錄 › Ultimate media cleaner
300+
安裝啟用
★★☆☆☆
2.3/5 分(3 則評價)
1373 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.2+ v2.6.1 上架:2018-01-27

內容簡介

r />

Ultimate Media Cleaner 可以讓你查找站點中的「未使用檔案」並將它們刪除。

未使用檔案通常指在檢測系統中未找到使用情況的檔案。大家都知道,WordPress 是一套使用簡單、但同時十分複雜的軟體。WP 可以用來建立電商、影片分享平台、一般博客等等,因此要做到 100% 精準判斷「未使用檔案」幾乎是不可能的。所以在這個版本中,我們將「未使用檔案」的詞語更改為「找不到使用情況的檔案」,這樣更準確地表達插件的作用。

專業版

我們推出了專業版,新增了一些方便的功能,您可以在 Ultimate media cleaner PRO 找到它。

爬蟲選項

即使我們已经盡可能找到檔案在数据库中的参考情況,但有些檔案仍在無法检测到内部用途。这时候唯一的辦法是使用網站爬蟲進行檢測,直接查找檔案在 HTML、JS 和 CSS 代碼中的引用情況。我们自己开发了一个网站爬虫,您可以在 Ultimate media cleaner Crawler 找到它(外部付费服务)。

插件如何運作

重要的是要知道這個插件是如何運作的:

插件分為五個部分:

1.資料庫中的檔案部分:顯示您資料庫中保存的每個檔案和圖片。

2.文件夾部分:這裡顯示您 WordPress wp-upload 文件夾中找到的檔案。请注意,有些插件可能會自行添加檔案到此文件夾中,這些檔案爲本插件无法檢測的。

3.选择來自哪裡顯示 WP 檔案。

4.插件将嘗試确定檔案是否已使用或未使用。這一過程需要通過某些 SQL 腳本來尝试查找文章和頁面中的物理引用。

5.您可以忽略標記上為「未使用檔案」的檔案?或者您可以把它放在刪除列表中(但不會刪除檔案)。

请注意,「找不到使用情況的檔案」的標籤的准确性可能會從 0% 到 100% 不等。

刪除列表中顯示的是您将要删除的所有檔案,您可以選擇繼續刪除它們或将它們從列表中删除。

选项部分中,您可以找到一些有用的配置,例如隐藏子圖片的删除按钮。

爬蟲部分,您可以運行網站爬蟲以提高「找不到使用情況的檔案」的精確度。

如何使用此插件

使用此插件很簡單,您只需要花一天时间(不发新文章或页面的情况下)進行網站的維護:

备份您的網站(WP 有很多好用的备份插件)

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.6.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ultimate media cleaner」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Ultimate media cleaner give you the power to find “unused files” (please read the next line) in your sites and delete them
Unused files is more “not usage found” with our detection system. You have to know that WP is easy to use, but is a very complex software.
Remember that WP can be used like e-commerce, video share platform, normal blog, etc.
So is impossible to be 100% accurate about the “unused files”, so for this version we changed for “Not usage found”, this phrase is more accurate about what this plugin do
PRO VERSION
We made one Pro version, we added some “nice to have feature”, you can find it at Ultimate media cleaner PRO
Crawler option
Even if we made all possible to try to find reference in the database, there are some files used in ways impossible to detected internally.
The only way is to use one web crawler and to detect the reference in direct in your HTML, JS and CSS code
We work in our own web crawler, you can find it at Ultimate media cleaner Crawler (external and pay service)
We made one Pro version, we added some “nice to have feature”, you can find it at Ultimate media cleaner PRO
HOW THIS PLUGIN WORK
Is important to you to know how this plugin work, so here we go:
The plugin is composed in 5 prat
Find files from database and find files from your folder system part
This two parts are really similar, the unique difference is where the information is coming from.
Files from the database will show you every file and images found in the database (in your database this will be the table Post with values post_type=’attachment’)
And folders, are files found in the wp-upload folder. Keep in mind that some plugin use this folder to add their own files, and this plugin will not detect their usage

After selecting from where you want to show the WP files
The plugin will try to find out if the file is used or unused, this is made with some sql script, trying to found some physical reference in post and pages
Try to find if the file is used in some shortcode (coming soon)
Found if the crawler system detected the file (pay service)
Show you the result and give you the opportunity to delete, ignored the “unused files”, if is used, the plugin will not show any option
You can ignore the file, because you know that this file is used, but the file have the “unused” label
You can put in the delete list (this will not delete the file)

Keep in mind that the “not usage found” label can have from 0% to 100% accuracy
The delete list part
You can see every file that you want to delete, so have two option, continue and delete them or remove it from them from the list
Try to make your own verification and validate that the file you want to delete is not used in your site
The option part
You can found some useful configuration, like hide the delete button for children images
The crawler part
You can crawl your site to have better accuracy in the “not usage found” found
HOW TO USE IT
This plugin is like “one-shot usage”, you should do:
In only one day (you can take one day without making news post or page, to make this maintenance activity )

Make one backup of your site (There are good backup plugin in WP)
Add one test post or page with test images/files
See if the plugin is working and detecting the test images/file are used
Delete the unused test files or images
See if the test post or page is working as it should
If the plugin is working for this test, go with some productions post and page (like the oldest, the least viewed or less important posts or pages)
See if the plugin is working and detecting the images/file are used
Delete the unused files or images

You have two possible result: Working, not working
Working

Keep going with other images and files, but trying to see if your site still working
Delete all unused files/images
Normally your site is free of unused files, so you can delete and forget about the plugin

Not working

restore your site from the backup system
Delete the plugin
Find another plugin

IMPORTANT
This plugin can destroy your site IF you don’t know how to use it, YES YOU CAN DESTROY IT!!!
This plugin need you to see if is working like it should, take the “not usage found” like inaccurate and go by little steps, see if is working with your WP configuration, plugins, themes, etc.
Is very wisely to use one backup system, that take in account your upload folder and database
HOW IT WORKS
They are some big part of this plugin:

the search: it show you all medias in your site, from the database or you upload folder
the verification: try to find if the media is used, if all detection fail to find reference, the media will show like is “not usage found”, but again this can be inaccurate
deletion: after you chose witch files will be deleted, the plugin will delete it from the database and from your upload folder

延伸相關外掛

文章
Filter
Mastodon