MegaOptim Image Optimizer 1.4.20

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: 88.69 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.050 seconds
The average page load time increased by this amount after activating the plugin.

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=2a9dc3d31d
Aspect after-activation
HTTP status 200
Load time 0.784 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.239 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.205 s
Memory usage 3.17 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.193 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.259 s0.595 s+0.336 s3.05 MiB3.14 MiB+ 97.05 KiB
/wp-admin/edit.php0.184 s0.242 s+0.058 s3.07 MiB3.18 MiB+ 103.88 KiB
/wp-admin/post-new.php0.731 s0.908 s+0.177 s4.97 MiB5.06 MiB+ 97.73 KiB
/wp-admin/upload.php0.653 s0.322 s-0.331 s2.99 MiB3.07 MiB+ 85.11 KiB
/wp-admin/options-writing.php0.133 s0.182 s+0.049 s2.99 MiB3.05 MiB+ 67.14 KiB
/wp-admin/media-new.php0.242 s0.209 s-0.033 s2.97 MiB3.07 MiB+ 100.46 KiB
/wp-admin/edit-tags.php?taxonomy=category0.160 s0.192 s+0.032 s2.98 MiB3.08 MiB+ 105.38 KiB
/wp-admin/post-new.php?post_type=page0.623 s0.771 s+0.148 s4.96 MiB5.05 MiB+ 93.31 KiB
/wp-admin/options-discussion.php0.195 s0.344 s+0.149 s2.98 MiB3.05 MiB+ 80.04 KiB
/wp-admin/edit-comments.php0.175 s0.219 s+0.044 s3 MiB3.08 MiB+ 79.42 KiB
/0.279 s0.201 s-0.078 s2.94 MiB3.01 MiB+ 66.02 KiB
Average 0.330 s0.380 s+0.050 s3.35 MiB3.44 MiB+ 88.69 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.3%9,2005,664104
SVG16.9%2,67101
JavaScript10.3%1,6264225
CSS8.1%1,286382
Markdown2.0%31703
HTML1.7%269251
LESS1.0%15652
CoffeeScript0.9%147301
JSON0.8%11904
Total 15,791 6,184 123

PHP Code Analysis | More results »

Lines of code 7,489
Total complexity 1,957
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 476
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

[29-Nov-2022 01:24:05 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
[29-Nov-2022 01:24:06 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