Benchmarks
Plugin footprint 65% 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: ▲2.02MB] [CPU: ▲13.83ms] Passed 4 tests
An overview of server-side resources used by Smart Image Resize - Make WooCommerce Images the Same Size
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.50 ▲2.04 | 60.42 ▲19.32 |
Dashboard /wp-admin | 5.36 ▲2.01 | 69.37 ▲5.20 |
Posts /wp-admin/edit.php | 5.41 ▲2.05 | 70.57 ▲22.93 |
Add New Post /wp-admin/post-new.php | 7.88 ▲1.99 | 107.78 ▲7.86 |
Media Library /wp-admin/upload.php | 5.28 ▲2.06 | 62.18 ▲24.41 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 5.43 | 62.81 |
Smart Image Resize /wp-admin/options-general.php?page=wp-smart-image-resize | 5.28 | 61.30 |
Server storage [IO: ▲2.10MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 340 new files
Database: 4 new tables, 12 new options
New tables |
---|
wp_actionscheduler_claims |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_actions |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
schema-ActionScheduler_StoreSchema |
action_scheduler_lock_async-request-runner |
theysaidso_admin_options |
wp_sir_prev_plugin_version |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Image Resize - Make WooCommerce Images the Same Size
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▲0.13 | 2.38 ▲0.61 | 40.05 ▼0.32 |
Dashboard /wp-admin | 2,200 ▲29 | 5.60 ▲0.01 | 84.91 ▼6.72 | 37.68 ▼6.90 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.06 ▲0.09 | 34.16 ▼2.86 | 31.24 ▼6.70 |
Add New Post /wp-admin/post-new.php | 1,554 ▲23 | 18.10 ▼5.25 | 650.87 ▼5.86 | 53.26 ▲3.32 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.49 ▲0.29 | 102.63 ▲4.52 | 42.90 ▼4.49 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,223 | 1.81 | 25.00 | 28.37 |
Smart Image Resize /wp-admin/options-general.php?page=wp-smart-image-resize | 1,514 | 3.86 | 62.83 | 34.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_actionscheduler_claims
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- The uninstall procedure has failed, leaving 12 options in the database
- wp_sir_plugin_version
- action_scheduler_lock_async-request-runner
- can_compress_scripts
- action_scheduler_hybrid_store_demarkation
- theysaidso_admin_options
- widget_theysaidso_widget
- schema-ActionScheduler_StoreSchema
- wp_sir_prev_plugin_version
- schema-ActionScheduler_LoggerSchema
- widget_recent-posts
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 206× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BlurCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/PickColorCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Gd/Commands/BackupCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/smart-image-resize/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Exception\\ImageException' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\AbstractEncoder' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Imagick/Encoder.php:9
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Gd/Commands/OpacityCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/InsertCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/smart-image-resize/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Gd\\Commands\\ResizeCommand' not found in wp-content/plugins/smart-image-resize/src/vendor/intervention/image/src/Intervention/Image/Gd/Commands/FlipCommand.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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 need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
smart-image-resize/plugpix-smart-image-resize.php 77% from 13 tests
The main PHP script in "Smart Image Resize - Make WooCommerce Images the Same Size" version 1.8.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("smart-image-resize.php" instead of "plugpix-smart-image-resize.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin22,416 lines of code in 324 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 305 | 5,123 | 10,570 | 20,310 |
Markdown | 8 | 429 | 0 | 749 |
JavaScript | 2 | 104 | 26 | 491 |
JSON | 7 | 0 | 0 | 482 |
CSS | 1 | 52 | 5 | 366 |
XML | 1 | 4 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 11 | |
Traits | 5 | |
Classes | 258 | |
▷ Abstract classes | 24 | 9.30% |
▷ Concrete classes | 234 | 90.70% |
▷ Final classes | 7 | 2.99% |
Methods | 1,499 | |
▷ Static methods | 178 | 11.87% |
▷ Public methods | 1,235 | 82.39% |
▷ Protected methods | 170 | 11.34% |
▷ Private methods | 94 | 6.27% |
Functions | 168 | |
▷ Named functions | 121 | 72.02% |
▷ Anonymous functions | 47 | 27.98% |
Constants | 65 | |
▷ Global constants | 9 | 13.85% |
▷ Class constants | 56 | 86.15% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin