Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼6.52ms] Passed 4 tests
An overview of server-side resources used by Easy Image Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 38.33 ▼4.18 |
Dashboard /wp-admin | 3.87 ▲0.53 | 49.07 ▼10.80 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 48.72 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 83.78 ▼9.60 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 37.01 ▲5.71 |
Easy Image Optimizer /wp-admin/options-general.php?page=easy-image-optimizer-options | 3.70 | 33.91 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/easy-image-optimizer/" and "wp-content/uploads/"
- (new file) wp-content/easyio/.empty
Filesystem: 28 new files
Database: no new tables, 21 new options
New WordPress options |
---|
easyio_plan_id |
easyio_use_siip |
exactdn_all_the_things |
widget_theysaidso_widget |
exactdn_prevent_db_queries |
easyio_version |
easyio_exactdn |
db_upgraded |
easyio_add_missing_dims |
easyio_ll_autoscale |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Image Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲76 | 14.19 ▼0.52 | 1.77 ▲0.17 | 38.68 ▼5.12 |
Dashboard /wp-admin | 2,203 ▲26 | 5.60 ▼0.04 | 90.72 ▼2.60 | 38.40 ▼3.42 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 1.94 ▲0.00 | 41.60 ▲2.54 | 36.78 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.15 ▲0.17 | 599.86 ▲5.82 | 57.12 ▼3.70 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.17 ▼0.12 | 95.45 ▼0.12 | 42.94 ▲1.34 |
Easy Image Optimizer /wp-admin/options-general.php?page=easy-image-optimizer-options | 1,041 | 1.97 | 29.76 | 32.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 14 options in the database
- easyio_use_lqip
- easyio_add_missing_dims
- easyio_ll_autoscale
- db_upgraded
- widget_theysaidso_widget
- exactdn_prevent_db_queries
- can_compress_scripts
- widget_recent-posts
- exactdn_exclude
- widget_recent-comments
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: lazy load, resize, convert, optimize, image...
easy-image-optimizer/easy-image-optimizer.php 92% from 13 tests
The main PHP script in "Easy Image Optimizer" version 3.5.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 149 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,967 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 604 | 2,280 | 6,423 |
JavaScript | 9 | 226 | 67 | 1,468 |
XML | 1 | 8 | 0 | 37 |
YAML | 1 | 8 | 0 | 21 |
Markdown | 1 | 9 | 0 | 18 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,004)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 229)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 308.83 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 1,004.00 |
Average method complexity | 12.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 229.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 161 | |
▷ Static methods | 1 | 0.62% |
▷ Public methods | 157 | 97.52% |
▷ Protected methods | 3 | 1.86% |
▷ Private methods | 1 | 0.62% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/test.png | 0.85KB | 0.86KB | 0.00% |
images/question-circle.png | 0.57KB | 0.47KB | ▼ 17.62% |
images/easyio-toon-car.png | 15.76KB | 5.71KB | ▼ 63.79% |