Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/imagus/vendor/composer/autoload_real.php+71
require(wp-content/plugins/imagus/vendor/composer/../symfony/deprecation-contracts/function.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.24ms] Passed 4 tests
This is a short check of server-side resources used by Imagus image optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.22 ▼9.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.98 ▼6.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.25 ▼8.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.54 ▼16.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.35 ▲0.69 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 206 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Imagus image optimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.13 | 1.80 ▲0.01 | 45.02 ▲6.51 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼1.02 | 103.87 ▼15.36 | 39.47 ▼3.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 39.66 ▼4.36 | 35.98 ▼2.70 |
Add New Post /wp-admin/post-new.php | 1,514 ▼6 | 17.59 ▼5.79 | 696.52 ▲14.29 | 54.79 ▼0.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.08 | 97.07 ▼4.55 | 43.85 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 50× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/psr7/src/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/imagus/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/imagus/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/imagus/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/imagus/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in imagus/assets to your readme.txt
imagus/imagus.php 92% from 13 tests
The main file in "Imagus image optimizer" v. 0.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin32,758 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 2,545 | 6,438 | 27,692 |
Markdown | 13 | 1,208 | 0 | 3,558 |
JSON | 10 | 0 | 0 | 1,044 |
JavaScript | 2 | 25 | 0 | 258 |
YAML | 5 | 22 | 3 | 91 |
PO File | 1 | 16 | 17 | 53 |
CSS | 2 | 8 | 9 | 42 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 16.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 95 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 95 | 100.00% |
▷ Final classes | 35 | 36.84% |
Methods | 791 | |
▷ Static methods | 171 | 21.62% |
▷ Public methods | 649 | 82.05% |
▷ Protected methods | 4 | 0.51% |
▷ Private methods | 138 | 17.45% |
Functions | 161 | |
▷ Named functions | 72 | 44.72% |
▷ Anonymous functions | 89 | 55.28% |
Constants | 175 | |
▷ Global constants | 47 | 26.86% |
▷ Class constants | 128 | 73.14% |
▷ Public constants | 117 | 91.41% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.32KB | 0.15KB | ▼ 53.40% |
admin/css/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
admin/css/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |