Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.93ms] Passed 4 tests
An overview of server-side resources used by Opti MozJpeg Guetzli WebP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.63 ▼11.31 |
Dashboard /wp-admin | 3.80 ▲0.49 | 48.21 ▼0.23 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 53.55 ▲8.95 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 96.54 ▲2.02 |
Media Library /wp-admin/upload.php | 3.66 ▲0.42 | 35.96 ▲1.79 |
Opti MozJpeg Guetzli WebP /wp-admin/upload.php?page=opti-mozjpeg-guetzli-webp | 3.64 | 39.59 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Opti MozJpeg Guetzli WebP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.39 | 4.53 ▲2.48 | 42.72 ▼1.50 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼0.05 | 110.32 ▲5.14 | 41.42 ▲0.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 39.04 ▼1.46 | 36.00 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.42 ▲0.33 | 619.20 ▼59.38 | 56.31 ▼9.69 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.23 ▲0.04 | 94.84 ▼5.13 | 40.95 ▼3.22 |
Opti MozJpeg Guetzli WebP /wp-admin/upload.php?page=opti-mozjpeg-guetzli-webp | 1,053 | 2.06 | 28.03 | 46.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/RC4.php:54
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/RC2.php:44
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Net/SFTP.php:47
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/Twofish.php:48
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/Rijndael.php:64
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/DES.php:52
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\DES' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/TripleDES.php:46
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/opti-mozjpeg-guetzli-webp/phpseclib/Crypt/Blowfish.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opti-mozjpeg-guetzli-webp/opti-mozjpeg-guetzli-webp.php:174
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: seo, pagespeed, free image optimization, pingdom, wordpress images optimization
opti-mozjpeg-guetzli-webp/opti-mozjpeg-guetzli-webp.php Passed 13 tests
"Opti MozJpeg Guetzli WebP" version 1.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Optimize your Wordpress images using this plugin and Mozilla MozJpeg, Google Guetzli or Google WebP encoders
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin23,267 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 4,392 | 11,566 | 22,923 |
CSS | 1 | 43 | 3 | 192 |
JavaScript | 1 | 12 | 26 | 152 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 104.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 598.00 |
Average method complexity | 6.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 1 | 2.78% |
▷ Concrete classes | 35 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 709 | |
▷ Static methods | 2 | 0.28% |
▷ Public methods | 708 | 99.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.14% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 224 | |
▷ Global constants | 68 | 30.36% |
▷ Class constants | 156 | 69.64% |
▷ Public constants | 156 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/facebook-share.png | 4.47KB | 2.58KB | ▼ 42.23% |
images/twitter-share.png | 3.22KB | 2.07KB | ▼ 35.79% |