Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.67ms] Passed 4 tests
This is a short check of server-side resources used by EZOptimize Image Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.38 ▼0.03 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.29 ▲0.50 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 56.37 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.49 ▼21.74 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.77 ▼1.25 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ezoptimize |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by EZOptimize Image Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.24 ▼0.32 | 1.80 ▲0.05 | 44.16 ▼5.93 |
Dashboard /wp-admin | 2,208 ▲34 | 5.62 ▼0.04 | 90.88 ▼8.50 | 37.94 ▼0.26 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.98 ▼0.01 | 39.38 ▼1.81 | 35.59 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.44 ▲0.34 | 664.06 ▲47.77 | 70.31 ▲12.52 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.33 ▲0.12 | 103.87 ▼7.65 | 43.57 ▼1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- ezoptimize
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ez-optimize-media-optimizer/optimizer.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Settings Page)
ez-optimize-media-optimizer/optimizer.php 85% from 13 tests
The main file in "EZOptimize Image Optimizer" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ez-optimize-media-optimizer.php" instead of "optimizer.php")
- Description: The description should be shorter than 140 characters (currently 195 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9,700 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 999 | 1,241 | 8,139 |
CSS | 15 | 142 | 21 | 1,212 |
PHP | 1 | 37 | 38 | 349 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 33.33% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected