MegaOptim Image Optimizer 1.4.19

Does MegaOptim Image Optimizer work with WordPress 6.1.1 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: 86.9 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.1.1
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=31ae0a140b
Aspect after-activation
HTTP status 200
Load time 0.894 s
Memory usage 3.19 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.249 s
Memory usage 3.13 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,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1.1:3:1750\n    at /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1.1:3:6278",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'defaultHooks')\n    at /wp-includes/js/dist/i18n.min.js?ver=9e794f35a71bb98672ae:2:9921\n    at /wp-includes/js/dist/i18n.min.js?ver=9e794f35a71bb98672ae:2:10157\n    at /wp-includes/js/dist/i18n.min.js?ver=9e794f35a71bb98672ae:2:10193",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'setLocaleData')\n    at /wp-admin/upload.php?page=megaoptim_bulk_optimizer:381:9",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of undefined (reading '__')\n    at /wp-admin/js/common.min.js?ver=6.1.1:2:70\n    at /wp-admin/js/common.min.js?ver=6.1.1:2:20100",
        "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.203 s
Memory usage 3.16 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.214 s
Memory usage 3.01 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.269 s0.290 s+0.021 s3.05 MiB3.14 MiB+ 95.23 KiB
/wp-admin/edit.php0.203 s0.183 s-0.020 s3.07 MiB3.17 MiB+ 102.07 KiB
/wp-admin/post-new.php0.736 s0.879 s+0.143 s4.97 MiB5.06 MiB+ 95.91 KiB
/wp-admin/upload.php0.524 s0.289 s-0.235 s2.99 MiB3.07 MiB+ 83.3 KiB
/wp-admin/options-writing.php0.134 s0.280 s+0.146 s2.99 MiB3.05 MiB+ 65.33 KiB
/wp-admin/media-new.php0.249 s0.258 s+0.009 s2.97 MiB3.06 MiB+ 98.65 KiB
/wp-admin/edit-tags.php?taxonomy=category0.161 s0.229 s+0.068 s2.98 MiB3.08 MiB+ 103.57 KiB
/wp-admin/post-new.php?post_type=page0.626 s0.633 s+0.007 s4.96 MiB5.05 MiB+ 91.5 KiB
/wp-admin/options-discussion.php0.204 s0.253 s+0.049 s2.98 MiB3.05 MiB+ 78.23 KiB
/wp-admin/edit-comments.php0.178 s0.215 s+0.037 s3 MiB3.08 MiB+ 77.61 KiB
/0.272 s0.205 s-0.067 s2.94 MiB3.01 MiB+ 64.46 KiB
Average 0.323 s0.338 s+0.014 s3.35 MiB3.44 MiB+ 86.9 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.2%9,1365,651104
SVG17.0%2,67101
JavaScript10.1%1,5924195
CSS8.2%1,286382
Markdown2.0%31703
HTML1.7%269251
LESS1.0%15652
CoffeeScript0.9%147301
JSON0.8%11904
Total 15,693 6,168 123

PHP Code Analysis | More results »

Lines of code 7,452
Total complexity 1,945
Median class complexity 17.5
Median method complexity 2.0
Most complex class MGO_Ajax
Most complex function MGO_Ajax::save_advanced_settings()
Classes 54
Methods 474
Functions 133

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

[20-Nov-2022 11:21:25 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
[20-Nov-2022 11:21:25 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