Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼136.24ms] Passed 4 tests
Server-side resources used by Winsite Image Optimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.10 | 36.69 ▲4.17 |
Dashboard /wp-admin | 3.17 ▲0.12 | 45.21 ▲3.31 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 44.59 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 88.40 ▼545.81 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 30.95 ▼3.54 |
WS. Image Optimizer /wp-admin/upload.php?page=wsi-image-optimizer | 3.07 | 32.55 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wsi_media_settings |
Browser metrics Passed 4 tests
Winsite Image Optimizer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.21 ▲0.67 | 7.86 ▼0.29 | 48.74 ▼0.98 |
Dashboard /wp-admin | 2,972 ▲41 | 5.87 ▼0.08 | 135.47 ▼10.49 | 108.93 ▼2.47 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.69 ▼0.00 | 69.39 ▲4.40 | 95.24 ▲5.38 |
Add New Post /wp-admin/post-new.php | 1,594 ▲96 | 18.79 ▼0.04 | 382.05 ▲2.71 | 106.52 ▼9.24 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.05 ▲0.05 | 142.46 ▼3.62 | 115.65 ▲0.25 |
WS. Image Optimizer /wp-admin/upload.php?page=wsi-image-optimizer | 1,066 | 2.38 | 56.46 | 67.20 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- wsi_media_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/winsite-image-optimizer/winsite-image-optimizer.php:74
- > PHP Fatal error
Uncaught Error: Class 'WSI_Engine' not found in wp-content/plugins/winsite-image-optimizer/includes/engines/class-wsi-engine-imageoptim.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: image optimization, image compression
winsite-image-optimizer/winsite-image-optimizer.php 92% from 13 tests
"Winsite Image Optimizer" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected543 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 126 | 257 | 392 |
Bourne Shell | 1 | 19 | 6 | 93 |
JavaScript | 1 | 19 | 12 | 58 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 31 | |
▷ Static methods | 4 | 12.90% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected