Title: ODR Image Optimizer
Author: odanree
Published: <strong>2026 年 6 月 10 日</strong>
Last modified: 2026 年 6 月 10 日

---

搜尋外掛

![](https://ps.w.org/odr-image-optimizer/assets/banner-772x250.png?rev=3568175)

![](https://ps.w.org/odr-image-optimizer/assets/icon-256x256.png?rev=3568175)

# ODR Image Optimizer

 由 [odanree](https://profiles.wordpress.org/odanree/) 開發

[下載](https://downloads.wordpress.org/plugin/odr-image-optimizer.1.0.12.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/odr-image-optimizer/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/odr-image-optimizer/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/odr-image-optimizer/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/odr-image-optimizer/#developers)

 [技術支援](https://wordpress.org/support/plugin/odr-image-optimizer/)

## 外掛說明

ODR Image Optimizer is a professional-grade performance suite built on SOLID principles.
Unlike monolithic optimization plugins, ODR focuses on the critical rendering path
to eliminate resource discovery delays.

Designed to hit a 100/100 Lighthouse score on mobile under standard configurations.
By decoupling image processing from delivery policy, the plugin reduces Largest 
Contentful Paint (LCP) by optimizing how the browser prioritizes assets.

**Performance Results (reference test site, mobile Lighthouse):**
 – Largest Contentful
Paint (LCP): 1.4s ( 1.0s improvement) – First Contentful Paint (FCP): 1.0s – Total
Blocking Time (TBT): 0ms – Cumulative Layout Shift (CLS): 0

Real-world numbers will vary based on theme, hosting, and content.

### Features

 * **Priority Service:** Injects `fetchpriority="high"` and `<link rel="preload"
   >` tags to bypass LCP discovery delay.
 * **WebP Conversion:** Automatically converts and serves images in next-gen formats.
 * **Kill Bloat:** Toggle to remove heavy WordPress core scripts like the Interactivity
   API and Emojis.
 * **SOLID Architecture:** Developer-friendly, strictly typed, and built for speed.
 * **Unified Dashboard:** Manage all performance settings from a single, secure 
   interface.
 * **Zero Configuration:** Works out-of-the-box with sensible defaults optimized
   for Lighthouse 100/100.

### Support

For issues, feature requests, or documentation:
 – GitHub: https://github.com/odanree/
odr-image-optimizer – Support Forum: https://wordpress.org/support/plugin/odr-image-
optimizer/ – Documentation: https://github.com/odanree/odr-image-optimizer/tree/
main/docs

### Credits

**Author:** Danh Le
 **Website:** https://danhle.net

Built with SOLID principles and modern PHP practices. Inspired by the methodologies
of enterprise performance optimization.

### License

This plugin is licensed under the GPLv2 or later. See LICENSE file for details.

## 螢幕擷圖

[⌊Lighthouse audit on the reference test site, desktop: 100 Performance / 97 Accessibility/
96 Best Practices / 100 SEO.⌉⌊Lighthouse audit on the reference test site, desktop:
100 Performance / 97 Accessibility / 96 Best Practices / 100 SEO.⌉[

Lighthouse audit on the reference test site, desktop: 100 Performance / 97 Accessibility/
96 Best Practices / 100 SEO.

## 安裝方式

 1. Upload the `odr-image-optimizer` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Open the new **ODR Image Optimizer** entry in the WordPress admin sidebar and configure
    your toggles under the **Settings** submenu.

## 常見問題集

### Will this slow down my site?

No. ODR Image Optimizer adds minimal overhead (~2KB to the page) and removes competing
resources. The net result is faster perceived performance and better Lighthouse 
scores.

### Can I disable specific optimizations?

Yes. Open **ODR Image Optimizer  Settings** in the WordPress admin sidebar. From
there you can:
 – Pick a compression level (low / medium / high) – Enable or disable
WebP conversion – Choose a lazy-load strategy (native / hybrid / off) – Toggle auto-
optimize on upload – Toggle “Preload Theme Fonts” – Toggle “Kill Bloat” (removes
the Interactivity API and Emoji scripts) – Toggle “Inline Critical CSS”

### Is this compatible with other image plugins?

ODR works best as the only image optimization plugin. Having multiple optimization
plugins can cause conflicts. Disable any other image optimization plugins before
activating ODR.

### What WordPress versions are supported?

WordPress 6.0+. Requires PHP 8.1+.

### Do I need to re-optimize existing images?

No. ODR works on all images, new and existing. Simply activate and the plugin handles
optimization automatically.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈ODR Image Optimizer〉的開發相關工作。

參與者

 *   [ odanree ](https://profiles.wordpress.org/odanree/)

[將〈ODR Image Optimizer〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/odr-image-optimizer)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/odr-image-optimizer/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/odr-image-optimizer/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/odr-image-optimizer/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/odr-image-optimizer/)。

## 變更記錄

#### 1.0.12

 * Docs: Added directory listing assets — icon, banner (772×250 + 1544×500 retina),
   and a desktop Lighthouse audit screenshot.

#### 1.0.11

 * Docs: Renamed “Cleanup Service” to “Kill Bloat” in the Features list to match
   the actual toggle name in the settings UI.
 * Docs: Softened the “100/100 Lighthouse” claim in the Description so it reads 
   as a design goal rather than a per-install guarantee.

#### 1.0.10

 * Docs: Listing copy accuracy pass — admin menu location, FAQ toggle list, missing
   1.0.1 entry, 1.0.8 upgrade notice, hedged performance numbers.
 * CI: Deploy workflow resolves the SVN tag from `Stable tag:` in `readme.txt` instead
   of inferring from the branch ref.

#### 1.0.8

 * Fix: Move image backups out of the plugin folder. Backups now live under `wp-
   content/uploads/odr-image-optimizer/backups/<relative path>/` instead of a `.
   backups` directory next to each media file, per WordPress.org plugin guidelines.
   Reverts of images optimized on older versions still read from the legacy location
   as a one-time fallback.
 * Chore: Remove non-permitted distribution files (development sed script, build-
   artifact zips) from the plugin root.
 * Chore: Add `uninstall.php` to remove the plugin’s options and backup folder on
   uninstall.

#### 1.0.7

 * Fix: Move phpcs:ignore for InterpolatedNotPrepared to the SQL string lines; use
   phpcs:disable/enable blocks for multi-line queries (class-database, WebpDelivery,
   DatabaseRepository)
 * Fix: Remove inline comment text before phpcs:ignore on NonPrefixedConstantFound(
   odr-image-optimizer.php line 36)

#### 1.0.6

 * Fix: Add phpcs:ignore for confirmed false positives (ExceptionNotEscaped, NonPrefixedConstant/
   HookName, DirectDatabaseQuery, InterpolatedNotPrepared, is_writable/chmod in 
   background processing context)

#### 1.0.5

 * Fix: Add ABSPATH direct-access guard to all index.php stub files
 * Fix: Replace unlink() with wp_delete_file() (WebpConverter, class-optimizer)
 * Fix: Replace date() with gmdate() (class-database, DatabaseRepository)
 * Fix: Gate error_log() calls behind WP_DEBUG check
 * Fix: Sanitize $_SERVER[‘HTTP_ACCEPT’] via wp_unslash/sanitize_text_field
 * Fix: Reduce readme.txt tags to 5; add required short description

#### 1.0.4

 * Fix: Align sanitize_settings() whitelist with registered fields (add remove_emoji,
   font_swap; remove stale remove_bloat key)
 * Fix: Escape WebP URL with esc_url() in the_content filter callback to prevent
   potential XSS
 * Fix: Move Performance Toggles admin page under plugin nav menu instead of wp-
   admin Settings

#### 1.0.3

 * Fix: Accept array $size in add_webp_picture_element() and render_picture_element()
   to match WordPress core behavior and prevent TypeError on WooCommerce order emails

#### 1.0.2

 * Fix: Achieve Lighthouse 100/100 with complete WordPress.org compliance
 * Fix: Navigation script deferral now works on-demand (click/touch interaction)
 * Fix: Settings toggle now fully controls all feature behaviors
 * Refactor: Moved navigation deferral from mu-plugin to main plugin service
 * Refactor: Complete SOLID principles implementation with DI Container
 * Refactor: All WordPress hooks prefixed with `odr_` for global namespace safety
 * Docs: Enhanced documentation for WordPress.org submission

#### 1.0.1

 * Polish: Enhanced plugin header metadata for WordPress.org consistency (description,
   PHP requirement aligned to 8.1, refreshed tags, Plugin URI now points to GitHub).

#### 1.0.0

 * Initial release.
 * Added Priority Service for LCP optimization.
 * Added Cleanup Service for bandwidth reclamation.
 * Consolidated settings into a unified dashboard.
 * Implemented SOLID architecture for maintainability.
 * Added comprehensive case study documentation.
 * Full internationalization support (i18n ready).
 * Security audit complete: nonce verification, capability checks, late escaping.
 * PHPStan Level Max compliance (strict types throughout).
 * PSR-12 formatting enforced via CI/CD.

## 中繼資料

 *  版本 **1.0.12**
 *  最後更新 **1 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/odr-image-optimizer/)
 * 標籤:
 * [images](https://tw.wordpress.org/plugins/tags/images/)[optimizer](https://tw.wordpress.org/plugins/tags/optimizer/)
   [performance](https://tw.wordpress.org/plugins/tags/performance/)[speed](https://tw.wordpress.org/plugins/tags/speed/)
   [webp](https://tw.wordpress.org/plugins/tags/webp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/odr-image-optimizer/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/odr-image-optimizer/reviews/)

## 參與者

 *   [ odanree ](https://profiles.wordpress.org/odanree/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/odr-image-optimizer/)