MegaOptim Image Optimizer 1.4.21

Does MegaOptim Image Optimizer work with WordPress 6.4.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: 100.11 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.4.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=6535d97619
Aspect after-activation
HTTP status 200
Load time 1.033 s
Memory usage 3.53 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.329 s
Memory usage 3.47 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.4.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.4.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=7701b0c3857f914212ef:2:9104\n    at /wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef:2:9372\n    at /wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef:2:9408",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: wp is not defined\n    at /wp-admin/upload.php?page=megaoptim_bulk_optimizer:385:1",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: wp is not defined\n    at /wp-admin/js/common.min.js?ver=6.4.2:2:62\n    at /wp-admin/js/common.min.js?ver=6.4.2:2:20807",
        "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.290 s
Memory usage 3.51 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.259 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.421 s0.436 s+0.015 s3.38 MiB3.48 MiB+ 107.41 KiB
/wp-admin/edit.php0.270 s0.279 s+0.009 s3.41 MiB3.51 MiB+ 106.24 KiB
/wp-admin/post-new.php0.975 s0.767 s-0.208 s5.46 MiB5.57 MiB+ 112.54 KiB
/wp-admin/upload.php0.684 s0.595 s-0.089 s3.32 MiB3.42 MiB+ 95.47 KiB
/wp-admin/options-writing.php0.256 s0.321 s+0.065 s3.32 MiB3.4 MiB+ 81.84 KiB
/wp-admin/media-new.php0.348 s0.341 s-0.007 s3.29 MiB3.4 MiB+ 110.82 KiB
/wp-admin/edit-tags.php?taxonomy=category0.233 s0.285 s+0.052 s3.31 MiB3.43 MiB+ 115.48 KiB
/wp-admin/post-new.php?post_type=page0.720 s0.620 s-0.100 s5.45 MiB5.56 MiB+ 112.13 KiB
/wp-admin/options-discussion.php0.367 s0.450 s+0.083 s3.3 MiB3.39 MiB+ 91.02 KiB
/wp-admin/edit-comments.php0.270 s0.335 s+0.065 s3.33 MiB3.42 MiB+ 88.65 KiB
/0.313 s0.238 s-0.075 s3.31 MiB3.38 MiB+ 79.58 KiB
Average 0.442 s0.424 s-0.017 s3.72 MiB3.81 MiB+ 100.11 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,1985,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,789 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

[11-Dec-2023 09:36:06 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
[11-Dec-2023 09:36: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