ShortPixel Image Optimizer 5.5.0

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

Summary

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

Memory usage: 204.52 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.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 300,000+
WordPress.org page https://wordpress.org/plugins/shortpixel-image-optimiser/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

ShortPixel Settings ‹ Test site — WordPress

Page screenshot: ShortPixel Settings ‹ Test site — WordPress
URL /wp-admin/options-general.php?page=wp-shortpixel-settings&part=settings
Requested URL /wp-admin/plugins.php?action=activate&plugin=shortpixel-image-optimiser%2Fwp-shortpixel.php&plugin_status=all&paged=1&s&_wpnonce=5b2199a0df
Aspect after-activation
HTTP status 200
Load time 1.841 s
Memory usage 3.82 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at ShortPixelSettings.InitActions (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:63:26)\n    at ShortPixelSettings.Init (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:9:9)\n    at new ShortPixelSettings (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:718:8)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:723:12)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Media → Custom Media

Page screenshot: Media → Custom Media
URL /wp-admin/upload.php?page=wp-short-pixel-custom
Aspect menu-item
HTTP status 200
Load time 0.296 s
Memory usage 3.73 MiB
JS errors None
Resource errors None

Media → Bulk ShortPixel

Page screenshot: Media → Bulk ShortPixel
URL /wp-admin/upload.php?page=wp-short-pixel-bulk
Aspect menu-item
HTTP status 200
Load time 0.456 s
Memory usage 4.71 MiB
JS errors None
Resource errors None

Settings → ShortPixel

Page screenshot: Settings → ShortPixel
URL /wp-admin/options-general.php?page=wp-shortpixel-settings&part=settings
Requested URL /wp-admin/options-general.php?page=wp-shortpixel-settings
Aspect menu-item
HTTP status 200
Load time 0.501 s
Memory usage 3.52 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at ShortPixelSettings.InitActions (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:63:26)\n    at ShortPixelSettings.Init (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:9:9)\n    at new ShortPixelSettings (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:718:8)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/shortpixel-image-optimiser/res/js/shortpixel-settings.js?ver=5.5.0:723:12)",
        "trace": null,
        "code": null
    }
]
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.210 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.380 s0.370 s-0.010 s3.38 MiB3.56 MiB+ 182.38 KiB
/wp-admin/edit.php0.218 s0.310 s+0.092 s3.41 MiB3.66 MiB+ 256.57 KiB
/wp-admin/post-new.php1.073 s0.910 s-0.163 s5.46 MiB5.67 MiB+ 215.21 KiB
/wp-admin/upload.php0.712 s0.477 s-0.235 s3.32 MiB3.76 MiB+ 443.15 KiB
/wp-admin/options-writing.php0.241 s0.220 s-0.021 s3.32 MiB3.46 MiB+ 150.64 KiB
/wp-admin/media-new.php0.333 s0.334 s+0.001 s3.29 MiB3.48 MiB+ 188.87 KiB
/wp-admin/edit-tags.php?taxonomy=category0.216 s0.205 s-0.011 s3.31 MiB3.5 MiB+ 195.41 KiB
/wp-admin/post-new.php?post_type=page0.643 s0.587 s-0.056 s5.45 MiB5.66 MiB+ 219.2 KiB
/wp-admin/options-discussion.php0.301 s0.260 s-0.041 s3.3 MiB3.46 MiB+ 158.86 KiB
/wp-admin/edit-comments.php0.255 s0.220 s-0.035 s3.34 MiB3.49 MiB+ 157.28 KiB
/0.306 s0.377 s+0.071 s3.36 MiB3.44 MiB+ 82.16 KiB
Average 0.425 s0.388 s-0.037 s3.72 MiB3.92 MiB+ 204.52 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
JavaScript
CSS
Sass
Language % Lines of code Comment lines Files
PHP67.8%25,5182,601127
JavaScript14.6%5,48655818
CSS8.6%3,2406311
Sass8.1%3,04210922
SVG0.4%137110
Markdown0.3%11101
JSON0.2%8606
Total 37,620 3,332 195

PHP Code Analysis | More results »

Lines of code 22,472
Total complexity 4,646
Median class complexity 27.0
Median method complexity 2.0
Most complex class ShortPixel\Model\Image\MediaLibraryModel
Most complex function ShortPixel\Model\Image\MediaLibraryModel::checkLegacy()
Classes 91
Methods 1,126
Functions 1

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 4

Options wp_options 11

User Metadata wp_usermeta 1

PHP Error Log 1 lines

[09-Nov-2023 03:08:58 UTC] PHP Warning:  Undefined array key "sortable" in /wp-content/plugins/shortpixel-image-optimiser/class/view/view-other-media.php on line 49
See also: All tests for this plugin, How to Hide ShortPixel Image Optimizer Admin Menus