Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.36ms] Passed 4 tests
This is a short check of server-side resources used by Image Compressor & Optimizer - iLoveIMG
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.34 ▼5.43 |
Dashboard /wp-admin | 3.54 ▲0.20 | 53.56 ▼0.58 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 46.47 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 90.54 ▼5.49 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 35.51 ▲3.27 |
Bulk Optimization /wp-admin/upload.php?page=iloveimg-media-page | 3.47 | 35.55 |
Watermark settings /wp-admin/admin.php?page=iloveimg-watermark-admin-page | 3.50 | 33.09 |
Compress settings /wp-admin/admin.php?page=iloveimg-compress-admin-page | 3.51 | 31.12 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
ilove_img_compress_db_version |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
iloveimg_options_compress |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Image Compressor & Optimizer - iLoveIMG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲95 | 14.15 ▼0.09 | 1.74 ▲0.05 | 42.58 ▼1.92 |
Dashboard /wp-admin | 2,232 ▲54 | 5.65 ▲0.06 | 97.43 ▼17.32 | 112.68 ▲71.65 |
Posts /wp-admin/edit.php | 2,167 ▲64 | 2.03 ▲0.00 | 40.67 ▼0.89 | 46.11 ▲10.93 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.31 ▲0.04 | 703.55 ▲86.22 | 70.29 ▲19.92 |
Media Library /wp-admin/upload.php | 1,471 ▲77 | 4.22 ▼0.12 | 99.89 ▲3.63 | 92.14 ▲49.23 |
Bulk Optimization /wp-admin/upload.php?page=iloveimg-media-page | 1,145 | 2.08 | 30.28 | 51.05 |
Watermark settings /wp-admin/admin.php?page=iloveimg-watermark-admin-page | 1,195 | 2.34 | 27.50 | 41.45 |
Compress settings /wp-admin/admin.php?page=iloveimg-compress-admin-page | 1,435 | 1.84 | 27.76 | 49.12 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- ilove_img_compress_db_version
- iloveimg_options_compress
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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 | 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
- 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/tests/Iloveimg/IloveTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/tests/Iloveimg/IloveimgTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/iloveimg/admin/Ilove_Img_Compress_Media_List_Table.php:14
- > PHP Fatal error
Uncaught Error: Class 'Iloveimg\\Iloveimg' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/src/ImageTask.php:14
- > PHP Fatal error
Uncaught Error: Class 'Ilove_Img_Compress\\Ilove_Img_Compress_Media_List_Table' not found in wp-content/plugins/iloveimg/admin/views/media-bulk.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/tests/Iloveimg/FileTest.php:8
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/samples/try_catch_errors.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Iloveimg\\ImageTask' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/src/CropImageTask.php:9
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/samples/repair_basic.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Iloveimg\\Exceptions\\ExtendedException' not found in wp-content/plugins/iloveimg/vendor/ilovepdf/iloveimg-php/src/Exceptions/AuthException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in iloveimg/assets to your readme.txt
iloveimg/ilove-img-compress.php 77% from 13 tests
Analyzing the main PHP file in "Image Compressor & Optimizer - iLoveIMG" version 2.0.1
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 445 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("iloveimg.php" instead of "ilove-img-compress.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin5,889 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 70 | 930 | 2,232 | 3,794 |
Sass | 7 | 32 | 13 | 960 |
JSON | 4 | 0 | 0 | 466 |
SVG | 10 | 0 | 10 | 238 |
JavaScript | 2 | 11 | 24 | 154 |
Markdown | 3 | 68 | 0 | 152 |
XML | 3 | 0 | 0 | 71 |
YAML | 4 | 2 | 0 | 53 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 257 | |
▷ Static methods | 82 | 31.91% |
▷ Public methods | 238 | 92.61% |
▷ Protected methods | 4 | 1.56% |
▷ Private methods | 15 | 5.84% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 48 | |
▷ Global constants | 6 | 12.50% |
▷ Class constants | 42 | 87.50% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin