Title: HK Media Optimizer
Author: Harikrut Technolab
Published: <strong>2026年7月10日</strong>
Last modified: 2026年7月10日

---

プラグインを検索

![](https://ps.w.org/hk-media-optimizer/assets/banner-772x250.png?rev=3603288)

![](https://ps.w.org/hk-media-optimizer/assets/icon-256x256.png?rev=3603288)

# HK Media Optimizer

 作者: [Harikrut Technolab](https://profiles.wordpress.org/harikrut/)

[ダウンロード](https://downloads.wordpress.org/plugin/hk-media-optimizer.1.0.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/hk-media-optimizer/#description)
 * [レビュー](https://ja.wordpress.org/plugins/hk-media-optimizer/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/hk-media-optimizer/#installation)
 * [開発](https://ja.wordpress.org/plugins/hk-media-optimizer/#developers)

 [サポート](https://wordpress.org/support/plugin/hk-media-optimizer/)

## 説明

HK Media Optimizer scans your WordPress Media Library and tells you exactly which
files are no longer used anywhere on your site, so you can safely delete them and
reclaim disk space.

Unlike heavier media-cleaning tools, HK Media Optimizer is built around a simple
rule: never do more work in one request than necessary. Every scan runs in small,
configurable batches over AJAX, so it works comfortably even on modest shared hosting.

**Where it checks for usage:**

 * Post and page content
 * Featured images
 * Direct attachment relationships (files uploaded into a post)
 * Custom fields / post meta
 * Advanced Custom Fields (ACF) values, if ACF is active
 * Widgets, including block-based widgets
 * Theme Customizer settings (logo, background, header image)
 * Site icon

**Built for control:**

 * Turn any scan source on or off
 * Protect recently uploaded files with a configurable safety window
 * Whitelist specific files or whole folders
 * Exclude file types you never want flagged (PDFs, ZIPs, etc.)
 * Adjust batch size to match your server’s resources
 * Optional “type DELETE to confirm” safeguard before permanent removal

**Find duplicate files:**

 * Compares every file in your library by its actual contents (not just filename),
   so true duplicates are found even if they were re-uploaded under a different 
   name
 * Groups duplicates together and shows how much space each group is wasting
 * Always keeps at least one copy from every group — server-side, even if you select
   every file in a group for deletion

**Export & reporting:**

 * Export your unused, in-use, or full scan results to a CSV file at any time
 * Optional scheduled scans (daily/weekly/monthly) with an email summary report —
   nothing is ever deleted automatically by a scheduled scan

**Lightweight by design:**

 * No data is sent to any external server — everything runs locally on your site
 * Scan results are stored in their own dedicated database tables, not in `wp_postmeta`
   or `wp_options`, so your site’s core tables stay fast
 * Assets (CSS/JS) only load on the plugin’s own admin screens, never elsewhere 
   in wp-admin
 * No background cron jobs running on a schedule unless you explicitly turn on Scheduled
   Scans in Settings

## スクリーンショット

[⌊Scanner page with real-time progress tracking, summary cards, and scan status 
for unused media files.⌉⌊Scanner page with real-time progress tracking, summary 
cards, and scan status for unused media files.⌉[

Scanner page with real-time progress tracking, summary cards, and scan status for
unused media files.

[⌊Unused Media page listing all unused attachments with bulk actions, file details,
and safe deletion options.⌉⌊Unused Media page listing all unused attachments with
bulk actions, file details, and safe deletion options.⌉[

Unused Media page listing all unused attachments with bulk actions, file details,
and safe deletion options.

[⌊In-Use Media page showing media currently referenced across your website, along
with the exact usage location.⌉⌊In-Use Media page showing media currently referenced
across your website, along with the exact usage location.⌉[

In-Use Media page showing media currently referenced across your website, along 
with the exact usage location.

[⌊Duplicate Finder displaying grouped duplicate files, reclaimable storage space,
and tools to safely remove redundant copies.⌉⌊Duplicate Finder displaying grouped
duplicate files, reclaimable storage space, and tools to safely remove redundant
copies.⌉[

Duplicate Finder displaying grouped duplicate files, reclaimable storage space, 
and tools to safely remove redundant copies.

[⌊Settings page with configurable scan sources, post status filters, safety rules,
performance tuning, scheduled scans, and deletion safeguards.⌉⌊Settings page with
configurable scan sources, post status filters, safety rules, performance tuning,
scheduled scans, and deletion safeguards.⌉[

Settings page with configurable scan sources, post status filters, safety rules,
performance tuning, scheduled scans, and deletion safeguards.

## インストール

 1. Upload the plugin files to `/wp-content/plugins/hk-media-optimizer`, or install
    directly through the WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to **Media Optimizer** in your admin menu to run your first scan.
 4. Visit **Media Optimizer  Settings** to customize scan sources and safety rules 
    before deleting anything.

## FAQ

### Does this plugin delete files automatically?

No. HK Media Optimizer never deletes anything on its own, even with Scheduled Scans
turned on — scheduled scans only update the results and (optionally) email you a
summary. It only flags files as unused; you choose what to delete, and you must 
explicitly confirm before any permanent deletion happens.

### Can I undo a deletion?

No. Deletion is permanent once confirmed, which is why the plugin requires an explicit
confirmation step (and optionally typing “DELETE”) before removing files. Always
back up your site before bulk-deleting media.

### Will this slow down my site?

The plugin only loads its code on its own admin pages and during the AJAX requests
you trigger by clicking “Start Scan.” It has no effect on front-end page load times.

### Does it work with ACF (Advanced Custom Fields)?

Yes. If ACF is detected as active, the plugin includes an additional check for media
referenced inside ACF field values.

### What happens to a file’s scan result after I delete it?

The corresponding row is removed from the plugin’s own results table immediately
after a successful deletion.

### How does the duplicate finder decide what’s a duplicate?

It hashes the actual file contents (MD5), so two files only match if their bytes
are identical — filename and upload date don’t matter. The plugin always keeps at
least one copy from every duplicate group, even if you select all of them for deletion.

### Will scheduled scans work on any host?

Scheduled scans rely on WordPress’s built-in cron, which only fires on a site visit.
On low-traffic sites this can mean delayed runs; for reliable timing, point a real
server cron job at `wp-cron.php` as you would for any other WordPress scheduled 
task.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

HK Media Optimizer はオープンソースソフトウェアです。以下の人々がこのプラグインに
貢献しています。

貢献者

 *   [ Harikrut Technolab ](https://profiles.wordpress.org/harikrut/)

[“HK Media Optimizer” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/hk-media-optimizer)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/hk-media-optimizer/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/hk-media-optimizer/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/hk-media-optimizer/)を
[RSS](https://plugins.trac.wordpress.org/log/hk-media-optimizer/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.0

 * Initial release.

## メタ

 *  バージョン **1.0.0**
 *  最終更新日 **2日前**
 *  有効インストール数 **10未満**
 *  WordPress バージョン ** 5.8またはそれ以降 **
 *  検証済み最新バージョン: **7.0.1**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/hk-media-optimizer/)
 * タグ
 * [delete unused images](https://ja.wordpress.org/plugins/tags/delete-unused-images/)
   [media optimizer](https://ja.wordpress.org/plugins/tags/media-optimizer/)[unused media](https://ja.wordpress.org/plugins/tags/unused-media/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/hk-media-optimizer/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/hk-media-optimizer/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/hk-media-optimizer/reviews/)

## 貢献者

 *   [ Harikrut Technolab ](https://profiles.wordpress.org/harikrut/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/hk-media-optimizer/)