Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲8.13ms] Passed 4 tests
Server-side resources used by Resize Image Before Upload
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 45.51 ▲6.06 |
Dashboard /wp-admin | 3.64 ▲0.34 | 54.37 ▲4.30 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 56.00 ▲9.92 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 117.43 ▲25.81 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 44.97 ▲12.22 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.66 | 58.09 |
Resize Before Upload /wp-admin/upload.php?page=ribu | 3.52 | 40.16 |
Server storage [IO: ▲5.95MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 575 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_groups |
New WordPress options |
---|
can_compress_scripts |
wp-plugins-core-notifications-resize-image-before-upload |
schema-ActionScheduler_StoreSchema |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
theysaidso_admin_options |
action_scheduler_hybrid_store_demarkation |
Browser metrics Passed 4 tests
An overview of browser requirements for Resize Image Before Upload
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲310 | 14.46 ▲0.22 | 3.72 ▲1.84 | 41.27 ▼3.78 |
Dashboard /wp-admin | 2,460 ▲272 | 6.03 ▲0.93 | 133.05 ▲23.94 | 45.65 ▲5.20 |
Posts /wp-admin/edit.php | 2,175 ▲83 | 2.99 ▲0.98 | 46.19 ▲6.19 | 33.94 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.48 ▲0.36 | 716.97 ▲50.82 | 36.44 ▼28.75 |
Media Library /wp-admin/upload.php | 1,487 ▲105 | 4.90 ▲0.70 | 90.76 ▼9.44 | 42.11 ▼1.92 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,416 | 2.52 | 33.98 | 31.14 |
Resize Before Upload /wp-admin/upload.php?page=ribu | 1,019 | 2.74 | 42.79 | 29.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- Zombie WordPress options were found after uninstall: 10 options
- wp-plugins-core-notifications-resize-image-before-upload
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- schema-ActionScheduler_StoreSchema
- schema-ActionScheduler_LoggerSchema
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- action_scheduler_hybrid_store_demarkation
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
Good news, no errors were detected
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 take a closer look at the following
- 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/resize-image-before-upload/src/templates/admin/screens/main.php:15
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/resize-image-before-upload/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: optimization, resize, images, image-resize
resize-image-before-upload/resize-image-before-upload.php 85% from 13 tests
"Resize Image Before Upload" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
- 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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin57,247 lines of code in 470 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 163 | 5,926 | 1,100 | 33,882 |
PHP | 167 | 3,317 | 8,515 | 16,174 |
CSS | 49 | 112 | 117 | 2,501 |
TypeScript | 44 | 583 | 3,438 | 2,012 |
Sass | 20 | 46 | 1 | 845 |
JSON | 7 | 0 | 0 | 617 |
Markdown | 10 | 243 | 0 | 551 |
LESS | 7 | 13 | 25 | 415 |
Svelte | 2 | 31 | 0 | 244 |
XML | 1 | 2 | 1 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 135 | |
▷ Abstract classes | 15 | 11.11% |
▷ Concrete classes | 120 | 88.89% |
▷ Final classes | 20 | 16.67% |
Methods | 950 | |
▷ Static methods | 154 | 16.21% |
▷ Public methods | 668 | 70.32% |
▷ Protected methods | 191 | 20.11% |
▷ Private methods | 91 | 9.58% |
Functions | 129 | |
▷ Named functions | 96 | 74.42% |
▷ Anonymous functions | 33 | 25.58% |
Constants | 60 | |
▷ Global constants | 17 | 28.33% |
▷ Class constants | 43 | 71.67% |
▷ Public constants | 42 | 97.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin