Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.33ms] Passed 4 tests
This is a short check of server-side resources used by reSmush.it : the only free Image Optimizer & compress plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 45.75 ▲0.71 |
Dashboard /wp-admin | 3.63 ▲0.33 | 51.66 ▼5.32 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 52.58 ▲1.70 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 96.60 ▼6.39 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 41.30 ▲5.57 |
reSmush.it /wp-admin/upload.php?page=resmushit_options | 3.53 | 299.12 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 18 new options
New WordPress options |
---|
resmushit_preserve_exif |
resmushit_remove_unsmushed |
db_upgraded |
widget_recent-posts |
resmushit_cron_firstactivation |
resmushit_statistics |
resmushit_notice_close_eoldec23 |
resmushit_has_no_backup_files |
resmushit_on_upload |
resmushit_cron_lastrun |
... |
Browser metrics Passed 4 tests
Checking browser requirements for reSmush.it : the only free Image Optimizer & compress plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.36 ▼0.24 | 1.70 ▼0.08 | 29.29 ▼15.00 |
Dashboard /wp-admin | 2,237 ▲57 | 5.64 ▼0.03 | 81.59 ▼19.27 | 91.29 ▲47.43 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.14 ▲0.17 | 41.82 ▲6.44 | 60.65 ▲23.76 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 18.28 ▼5.25 | 586.31 ▼79.85 | 67.93 ▲13.05 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.24 ▲0.05 | 96.83 ▲0.36 | 87.89 ▲44.86 |
reSmush.it /wp-admin/upload.php?page=resmushit_options | 1,016 | 2.02 | 25.41 | 40.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 18 options in the database
- db_upgraded
- resmushit_notice_close_eoldec23
- can_compress_scripts
- resmushit_statistics
- widget_recent-comments
- resmushit_preserve_exif
- resmushit_cron_lastrun
- resmushit_total_optimized
- resmushit_on_upload
- resmushit_has_no_backup_files
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/resmushit-image-optimizer/resmushit.settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/resmushit-image-optimizer/resmushit.settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resmushit-image-optimizer/resmushit.admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/resmushit-image-optimizer/resmushit.settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
resmushit-image-optimizer/resmushit.php 92% from 13 tests
This is the main PHP file of "reSmush.it : the only free Image Optimizer & compress plugin" version 0.4.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("resmushit-image-optimizer.php" instead of "resmushit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,283 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 317 | 551 | 1,355 |
PO File | 3 | 139 | 155 | 399 |
CSS | 1 | 11 | 0 | 303 |
JavaScript | 1 | 37 | 32 | 226 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 29 | 87.88% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/info.png | 1.63KB | 0.78KB | ▼ 52.48% |
images/twitter.png | 0.36KB | 0.44KB | 0.00% |
images/maecia.png | 1.86KB | 1.24KB | ▼ 33.73% |
images/ok.png | 0.48KB | 0.72KB | 0.00% |
images/toggle.png | 1.42KB | 0.53KB | ▼ 62.38% |