Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.79ms] Passed 4 tests
This is a short check of server-side resources used by Optimus - WordPress Image Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.71 ▼2.73 |
Dashboard /wp-admin | 3.44 ▲0.13 | 59.27 ▲8.93 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.07 ▲4.06 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.81 ▼16.80 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.65 ▲4.33 |
Optimize all images /wp-admin/tools.php?page=optimus-bulk-optimizer | 3.35 | 33.50 |
Optimus /wp-admin/options-general.php?page=optimus | 3.34 | 32.11 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Optimus - WordPress Image Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.17 ▼0.45 | 1.53 ▼0.06 | 36.99 ▼1.33 |
Dashboard /wp-admin | 2,231 ▲54 | 5.58 ▼0.10 | 83.18 ▼0.56 | 75.43 ▲30.91 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▲0.02 | 33.30 ▼4.61 | 35.61 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 18.16 ▼4.97 | 604.78 ▼70.00 | 74.08 ▲15.28 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.29 ▲0.04 | 97.72 ▲1.96 | 39.87 ▼1.45 |
Optimize all images /wp-admin/tools.php?page=optimus-bulk-optimizer | 789 | 2.04 | 23.85 | 39.29 |
Optimus /wp-admin/options-general.php?page=optimus | 987 | 2.05 | 22.98 | 28.75 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
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 97% 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
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
optimus/optimus.php Passed 13 tests
The main PHP script in "Optimus - WordPress Image Optimizer" version 1.6.3 is automatically included on every request by WordPress
99 characters long description:
Smart compression and optimization of uploaded images in WordPress. Automatic, reliable, effective.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,460 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 376 | 568 | 1,286 |
JavaScript | 1 | 9 | 0 | 90 |
CSS | 2 | 15 | 4 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 21.43 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 44 | 97.78% |
▷ Public methods | 33 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 26.67% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin