OptiPic images optimization 1.27.1

Does OptiPic images optimization work with WordPress 5.8.2 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 8.43 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 version5.8.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/optipic/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=optipic%2Foptipic.php&plugin_status=all&paged=1&s&_wpnonce=c535997866
Aspect after-activation
HTTP status 200
Load time 0.786 s
Memory usage 3.05 MiB
JS errors None
Resource errors None

OptiPic

Page screenshot: OptiPic
URL /wp-admin/admin.php?page=optipic_main_menu
Aspect menu-item
HTTP status 200
Load time 0.378 s
Memory usage 3.06 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.286 s
Memory usage 2.95 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.297 s0.260 s-0.037 s3.08 MiB3.09 MiB+ 11.84 KiB
/wp-admin/edit.php0.167 s0.177 s+0.010 s3.11 MiB3.12 MiB+ 11.84 KiB
/wp-admin/post-new.php0.721 s0.872 s+0.151 s5.27 MiB5.28 MiB+ 16.03 KiB
/wp-admin/upload.php0.364 s0.299 s-0.065 s3.03 MiB3.04 MiB+ 10.71 KiB
/wp-admin/options-writing.php0.250 s0.135 s-0.115 s3.02 MiB3.02 MiB- 5.31 KiB
/wp-admin/media-new.php0.397 s0.179 s-0.218 s3.01 MiB3.02 MiB+ 10.88 KiB
/wp-admin/edit-tags.php?taxonomy=category0.168 s0.172 s+0.004 s3.04 MiB3.05 MiB+ 11.79 KiB
/wp-admin/post-new.php?post_type=page0.566 s0.732 s+0.166 s5.26 MiB5.27 MiB+ 11.62 KiB
/wp-admin/options-discussion.php0.281 s0.267 s-0.014 s3 MiB3.01 MiB+ 11.2 KiB
/wp-admin/edit-comments.php0.200 s0.201 s+0.001 s3.04 MiB3.05 MiB+ 10.73 KiB
/0.364 s0.292 s-0.072 s2.96 MiB2.95 MiB- 8.66 KiB
Average 0.343 s0.326 s-0.017 s3.44 MiB3.45 MiB+ 8.43 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
PO File
Language % Lines of code Comment lines Files
PHP91.4%7522366
PO File8.6%7151
Total 823 241 7

PHP Code Analysis | More results »

Lines of code 646
Total complexity 171
Median class complexity 127.0
Median method complexity 3.0
Most complex class optipic\cdn\ImgUrlConverter
Most complex function optipic\cdn\ImgUrlConverter::convertHtml()
Classes 1
Methods 26
Functions 16

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.

No new entries found.

PHP Error Log 2 lines

[04-Jan-2022 22:21:42 UTC] PHP Notice:  Undefined index: whitelist_img_urls in /wp-content/plugins/optipic/includes/settings.php on line 64
[04-Jan-2022 22:21:42 UTC] PHP Notice:  Undefined index: cdn_domain in /wp-content/plugins/optipic/includes/settings.php on line 87
See also: All tests for this plugin, How to Hide the "OptiPic" Admin Menu