MegaOptim Image Optimizer 1.4.23

Does MegaOptim Image Optimizer work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP deprecation warnings
4JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 109.2 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.5.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 200+
WordPress.org page https://wordpress.org/plugins/megaoptim-image-optimizer/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=megaoptim-image-optimizer%2Fmegaoptim.php&plugin_status=all&paged=1&s&_wpnonce=7df70fc6f0
Aspect after-activation
HTTP status 200
Load time 0.813 s
Memory usage 3.6 MiB
JS errors None
Resource errors None

Media → Bulk MegaOptim

Page screenshot: Media → Bulk MegaOptim
URL /wp-admin/upload.php?page=megaoptim_bulk_optimizer
Aspect menu-item
HTTP status 200
Load time 0.244 s
Memory usage 3.53 MiB
JS errors
[
    {
        "message": "TypeError: Cannot set properties of undefined (setting 'wrap')\n    at /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.2:4:1822\n    at /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.2:4:6428",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'hooks')\n    at /wp-includes/js/dist/i18n.min.js?ver=5e580eb46a90c2b997e6:2:8814\n    at /wp-includes/js/dist/i18n.min.js?ver=5e580eb46a90c2b997e6:2:9067\n    at /wp-includes/js/dist/i18n.min.js?ver=5e580eb46a90c2b997e6:2:9104",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: wp is not defined\n    at /wp-admin/upload.php?page=megaoptim_bulk_optimizer:380:1",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: wp is not defined\n    at /wp-admin/js/common.min.js?ver=6.5.2:2:62\n    at /wp-admin/js/common.min.js?ver=6.5.2:2:21000",
        "trace": null,
        "code": null
    }
]
Resource errors None

Settings → MegaOptim

Page screenshot: Settings → MegaOptim
URL /wp-admin/options-general.php?page=megaoptim_settings
Aspect menu-item
HTTP status 200
Load time 0.282 s
Memory usage 3.57 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.185 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.342 s0.370 s+0.028 s3.44 MiB3.56 MiB+ 127.15 KiB
/wp-admin/edit.php0.212 s0.211 s-0.001 s3.46 MiB3.58 MiB+ 125.98 KiB
/wp-admin/post-new.php0.921 s0.786 s-0.135 s5.59 MiB5.74 MiB+ 152.34 KiB
/wp-admin/upload.php0.698 s0.508 s-0.190 s3.38 MiB3.47 MiB+ 95.21 KiB
/wp-admin/options-writing.php0.232 s0.199 s-0.033 s3.37 MiB3.45 MiB+ 80.95 KiB
/wp-admin/media-new.php0.304 s0.279 s-0.025 s3.35 MiB3.46 MiB+ 110.56 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.218 s+0.023 s3.37 MiB3.5 MiB+ 135.22 KiB
/wp-admin/post-new.php?post_type=page0.636 s0.579 s-0.057 s5.59 MiB5.73 MiB+ 147.92 KiB
/wp-admin/options-discussion.php0.292 s0.386 s+0.094 s3.36 MiB3.45 MiB+ 90.77 KiB
/wp-admin/edit-comments.php0.253 s0.254 s+0.001 s3.39 MiB3.5 MiB+ 108.42 KiB
/0.302 s0.194 s-0.108 s3.42 MiB3.44 MiB+ 26.7 KiB
Average 0.399 s0.362 s-0.037 s3.79 MiB3.9 MiB+ 109.2 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
SVG
JavaScript
CSS
Language % Lines of code Comment lines Files
PHP58.7%9,3795,815104
SVG16.7%2,67101
JavaScript10.2%1,6264225
CSS8.1%1,286382
Markdown2.0%31703
HTML1.7%269251
LESS1.0%15652
CoffeeScript0.9%147301
JSON0.7%11904
Total 15,970 6,335 123

PHP Code Analysis | More results »

Lines of code 7,674
Total complexity 2,014
Median class complexity 19.5
Median method complexity 2.0
Most complex class MGO_Ajax
Most complex function MGO_Ajax::save_advanced_settings()
Classes 54
Methods 493
Functions 135

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.

Database Tables 1

Options wp_options 2

PHP Error Log 2 lines

[14-Apr-2024 17:57:19 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/megaoptim-image-optimizer/includes/classes/MGO_Settings.php on line 171
[14-Apr-2024 17:57:20 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/megaoptim-image-optimizer/includes/classes/MGO_Profile.php on line 69
See also: All tests for this plugin, How to Hide MegaOptim Image Optimizer Admin Menus