Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.88ms] Passed 4 tests
This is a short check of server-side resources used by Image Optimizers - Desktop, Mobile, Viewport Distance, Any Caching Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 45.36 ▲3.23 |
Dashboard /wp-admin | 3.62 ▲0.31 | 50.42 ▼0.80 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 50.41 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 88.33 ▼2.01 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 41.09 ▲9.18 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 9 new options
New WordPress options |
---|
imop_wp_optimize |
widget_recent-posts |
imop_setting_data |
theysaidso_admin_options |
imop_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Optimizers - Desktop, Mobile, Viewport Distance, Any Caching Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲249 | 13.78 ▼0.57 | 12.58 ▲10.69 | 39.73 ▼11.83 |
Dashboard /wp-admin | 2,289 ▲115 | 5.64 ▲0.04 | 83.90 ▼16.28 | 40.91 ▼2.41 |
Posts /wp-admin/edit.php | 2,182 ▲85 | 1.99 ▼0.05 | 33.30 ▼3.48 | 34.55 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,540 ▲13 | 23.72 ▲0.60 | 713.15 ▲63.14 | 60.38 ▲6.14 |
Media Library /wp-admin/upload.php | 1,482 ▲85 | 4.28 ▲0.11 | 109.40 ▲3.92 | 47.63 ▲3.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- imop_wp_optimize
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/image-optimizers/optimizers.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'IMOP\\Common\\IMOPBaseController' not found in wp-content/plugins/image-optimizers/opt/Common/IMOPAdminController.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/image-optimizers/views/setting_view.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-optimizers/opt/Helper/IMOPCommonHelper.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-optimizers/opt/Helper/IMOPCommonHelper.php:49
- > 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 86% 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
Attributes that require attention:
- Requires at least: Invalid plugin version format
image-optimizers/optimizers.php 77% from 13 tests
This is the main PHP file of "Image Optimizers - Desktop, Mobile, Viewport Distance, Any Caching Plugin" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-optimizers.php" instead of "optimizers.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- 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 | 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 plugin10,562 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 558 | 29 | 5,675 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 25 | 255 | 394 | 1,327 |
JavaScript | 5 | 137 | 34 | 719 |
JSON | 3 | 0 | 0 | 156 |
Sass | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 88 | |
▷ Static methods | 12 | 13.64% |
▷ Public methods | 72 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 18.18% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
There are no PNG files in this plugin