Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲6.66MB] [CPU: ▲44.50ms] 50% from 4 tests
A check of server-side resources used by USMS-GH WooCommerce SMS Notification
Please have a look at the following items
- RAM: Total memory usage must be kept under 10MB (currently 10.15MB on /wp-admin/tools.php?page=action-scheduler)
- Extra RAM: The extra memory usage must be under 5MB (currently 6.66MB on /wp-admin/tools.php?page=action-scheduler)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.05 ▲6.59 | 85.99 ▲49.16 |
Dashboard /wp-admin | 9.99 ▲6.65 | 90.88 ▲30.19 |
Posts /wp-admin/edit.php | 10.06 ▲6.71 | 95.16 ▲48.22 |
Add New Post /wp-admin/post-new.php | 12.59 ▲6.70 | 141.19 ▲50.43 |
Media Library /wp-admin/upload.php | 9.91 ▲6.69 | 85.42 ▲52.06 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 10.17 | 92.18 |
/wp-admin/admin.php?page=usmsgh-download-file | 9.91 | 72.93 |
UsmsGH-API SMS Settings /wp-admin/options-general.php?page=usmsgh-woocoommerce-setting | 10.14 | 81.47 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 10.15 | 89.91 |
Server storage [IO: ▲5.46MB] [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: 423 new files
Database: 5 new tables, 23 new options
New tables |
---|
usmsgh_wc_send_sms_outbox |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_logs |
wp_actionscheduler_groups |
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
action_scheduler_hybrid_store_demarkation |
schema-ActionScheduler_StoreSchema |
usmsgh_customer_setting |
fs_gdpr |
action_scheduler_lock_async-request-runner |
usmsgh_multivendor_setting |
usmsgh_setting |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for USMS-GH WooCommerce SMS Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,191 ▼580 | 12.01 ▼2.36 | 1.89 ▲0.16 | 31.19 ▼8.84 |
Dashboard /wp-admin | 1,600 ▼574 | 1.71 ▼3.96 | 19.48 ▼65.15 | 32.45 ▼7.16 |
Posts /wp-admin/edit.php | 2,315 ▲218 | 3.66 ▲1.66 | 64.12 ▲29.20 | 43.28 ▲7.71 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 21.29 ▼1.88 | 701.00 ▲41.68 | 37.09 ▼23.66 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.31 ▲0.16 | 81.36 ▼12.39 | 44.46 ▲2.32 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,265 | 3.24 | 50.83 | 28.18 |
/wp-admin/admin.php?page=usmsgh-download-file | 697 | 1.50 | 9.72 | 21.62 |
UsmsGH-API SMS Settings /wp-admin/options-general.php?page=usmsgh-woocoommerce-setting | 1,202 | 3.20 | 43.97 | 85.63 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,554 | 3.40 | 43.64 | 32.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/usmsgh-wc-sms-notification/lib/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 5 tables
- wp_actionscheduler_claims
- wp_actionscheduler_logs
- usmsgh_wc_send_sms_outbox
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- This plugin does not fully uninstall, leaving 22 options in the database
- usmsgh_customer_setting
- usmsgh_help_setting
- recovery_mode_email_last_sent
- db_upgraded
- action_scheduler_lock_async-request-runner
- widget_theysaidso_widget
- usmsgh_smsoutbox_setting
- fs_accounts
- fs_active_plugins
- fs_gdpr
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 items
- 120× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Tests\\DataStores\\AbstractStoreTest' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/tests/phpunit/jobstore/ActionScheduler_wpPostStore_Test.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/tests/phpunit/deprecated/ActionScheduler_UnitTestCase.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/tests/phpunit/migration/Runner_Test.php:13
- > PHP Warning
require_once(wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/tests/../vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php): failed to open stream: No such file or directory in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/tests/bootstrap.php on line 19
- > PHP Fatal error
Uncaught Error: Interface 'Usmsgh_Register_Interface' not found in wp-content/plugins/usmsgh-wc-sms-notification/admin/automation.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/usmsgh-wc-sms-notification/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'Usmsgh_WooCommerce_Notification' not found in wp-content/plugins/usmsgh-wc-sms-notification/includes/multivendor/class-usmsgh-multivendor-notification.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
usmsgh-wc-sms-notification/usmsgh-woocommerce.php 85% from 13 tests
The main PHP file in "USMS-GH WooCommerce SMS Notification" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Git Repository: There should be no Git repositories present in your plugin
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("usmsgh-wc-sms-notification.php" instead of "usmsgh-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin65,928 lines of code in 369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 306 | 11,754 | 22,872 | 50,995 |
CSS | 14 | 12 | 27 | 9,231 |
JSON | 10 | 0 | 0 | 3,561 |
Markdown | 13 | 461 | 0 | 917 |
JavaScript | 7 | 89 | 99 | 576 |
XML | 10 | 8 | 3 | 251 |
Bourne Shell | 1 | 23 | 11 | 147 |
YAML | 4 | 15 | 6 | 111 |
HTML | 2 | 8 | 0 | 52 |
Sass | 1 | 10 | 0 | 47 |
SVG | 1 | 0 | 0 | 40 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 27.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 219 | |
▷ Abstract classes | 20 | 9.13% |
▷ Concrete classes | 199 | 90.87% |
▷ Final classes | 0 | 0.00% |
Methods | 2,641 | |
▷ Static methods | 304 | 11.51% |
▷ Public methods | 1,992 | 75.43% |
▷ Protected methods | 186 | 7.04% |
▷ Private methods | 463 | 17.53% |
Functions | 144 | |
▷ Named functions | 120 | 83.33% |
▷ Anonymous functions | 24 | 16.67% |
Constants | 164 | |
▷ Global constants | 106 | 64.63% |
▷ Class constants | 58 | 35.37% |
▷ Public constants | 58 | 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
9 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
lib/freemius/assets/img/usmsgh-wc-sms-notification.png | 28.63KB | 10.43KB | ▼ 63.57% |
lib/action-scheduler/docs/favicon-32x32.png | 1.16KB | 0.71KB | ▼ 39.02% |
lib/action-scheduler/docs/mstile-150x150.png | 4.15KB | 3.67KB | ▼ 11.47% |
lib/action-scheduler/docs/android-chrome-256x256.png | 2.93KB | 3.03KB | 0.00% |