Image Optimizer - Compress, Resize and Optimize Images 1.6.2

Does "Image Optimizer - Compress, Resize and Optimize Images" work with WordPress 6.7.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
6Unrecognized messages in the PHP error log
2JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 286.29 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.7.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 800,000+
WordPress.org page https://wordpress.org/plugins/image-optimization/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=image-optimization%2Fimage-optimization.php&plugin_status=all&paged=1&s&_wpnonce=421092c8b5
Aspect after-activation
HTTP status 200
Load time 1.453 s
Memory usage 4.26 MiB
JS errors None
Resource errors None

Media → Image Optimizer

Page screenshot: Media  → Image Optimizer
URL /wp-admin/upload.php?page=image-optimization-settings
Aspect menu-item
HTTP status 200
Load time 0.401 s
Memory usage 3.76 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'quota')\n    at /wp-content/plugins/image-optimization/assets/build/admin.js?ver=22905c77ce899fcbce7f:37:31424\n    at Ur (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:73389)\n    at El (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:93210)\n    at fl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:85526)\n    at Nn (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:32474)\n    at /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:92012\n    at xl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:92017)\n    at ol (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:84530)\n    at v (/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1:10:3388)\n    at MessagePort.fe (/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1:10:5617)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Media → Bulk Optimization

Page screenshot: Media  → Bulk Optimization
URL /wp-admin/upload.php?page=image-optimization-bulk-optimization
Aspect menu-item
HTTP status 200
Load time 0.281 s
Memory usage 3.8 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'quota')\n    at /wp-content/plugins/image-optimization/assets/build/admin.js?ver=22905c77ce899fcbce7f:37:31424\n    at Ur (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:73389)\n    at El (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:93210)\n    at fl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:85526)\n    at Nn (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:32474)\n    at /wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:92012\n    at xl (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:92017)\n    at ol (/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:84530)\n    at v (/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1:10:3388)\n    at MessagePort.fe (/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1:10:5617)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Tools → Scheduled Actions

Page screenshot: Tools → Scheduled Actions
URL /wp-admin/tools.php?page=action-scheduler
Aspect menu-item
HTTP status 200
Load time 0.199 s
Memory usage 3.79 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.186 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.303 s0.285 s-0.018 s3.48 MiB3.76 MiB+ 285.85 KiB
/wp-admin/edit.php0.183 s0.228 s+0.045 s3.54 MiB3.85 MiB+ 309.99 KiB
/wp-admin/post-new.php0.724 s0.600 s-0.124 s5.92 MiB6.27 MiB+ 356.88 KiB
/wp-admin/upload.php0.517 s0.738 s+0.221 s3.5 MiB3.81 MiB+ 317.98 KiB
/wp-admin/options-writing.php0.213 s0.222 s+0.009 s3.47 MiB3.74 MiB+ 274.04 KiB
/wp-admin/media-new.php0.326 s0.265 s-0.061 s3.46 MiB3.74 MiB+ 283.06 KiB
/wp-admin/edit-tags.php?taxonomy=category0.202 s0.226 s+0.024 s3.48 MiB3.76 MiB+ 288.2 KiB
/wp-admin/post-new.php?post_type=page0.602 s0.604 s+0.002 s5.92 MiB6.26 MiB+ 348.41 KiB
/wp-admin/options-discussion.php0.256 s0.335 s+0.079 s3.47 MiB3.74 MiB+ 271.16 KiB
/wp-admin/edit-comments.php0.198 s0.222 s+0.024 s3.49 MiB3.76 MiB+ 270.83 KiB
/0.280 s0.185 s-0.095 s3.48 MiB3.62 MiB+ 142.73 KiB
Average 0.346 s0.355 s+0.010 s3.93 MiB4.21 MiB+ 286.29 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP91.0%8,9781,858152
JavaScript7.7%7565015
CSS1.2%11403
SVG0.1%1301
Total 9,861 1,908 171

PHP Code Analysis | More results »

Lines of code 8,289
Total complexity 1,364
Median class complexity 6.0
Median method complexity 1.0
Most complex class ImageOptimization\Classes\Rest\Route
Most complex function ImageOptimization\Modules\Optimization\Components\Media_Control::render_optimization_control()
Classes 135
Methods 678
Functions 0

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 10

Custom Post Types 1

ID Name
scheduled-actionScheduled Actions

PHP Error Log 6 lines

[17-Dec-2024 12:20:40 UTC] [Image Optimizer]: info in ImageOptimization\Modules\Core\Components\Migrations->run_migration(): The migration `fix_optimized_size_keys` successfully executed.
[17-Dec-2024 12:20:40 UTC] [Image Optimizer]: info in ImageOptimization\Modules\Core\Components\Migrations->run_migration(): The migration `fix_mime_type` successfully executed.
[17-Dec-2024 12:20:40 UTC] [Image Optimizer]: info in ImageOptimization\Modules\Core\Components\Migrations->run_migration(): The migration `fix_avif_with_zero_dimensions` successfully executed.
[17-Dec-2024 12:20:42 UTC] [Image Optimizer]: info in ImageOptimization\Modules\ConnectManager\Components\Connect->get_connect_status(): Status check error. Reason: User is not connected
[17-Dec-2024 12:20:44 UTC] [Image Optimizer]: info in ImageOptimization\Modules\ConnectManager\Components\Connect->get_connect_status(): Status check error. Reason: User is not connected
[17-Dec-2024 12:20:49 UTC] [Image Optimizer]: info in ImageOptimization\Modules\ConnectManager\Components\Connect->get_connect_status(): Status check error. Reason: User is not connected
See also: All tests for this plugin, How to Hide Image Optimizer - Compress, Resize and Optimize Images Admin Menus