Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲6.92MB] [CPU: ▲50.39ms] 50% from 4 tests
Analyzing server-side resources used by MoceanAPI Order SMS Notification for WooCommerce
It is recommended to improve the following
- RAM: You should keep total memory usage under 10MB (currently 10.39MB on /wp-admin/tools.php?page=action-scheduler)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 6.92MB on /wp-admin/tools.php?page=action-scheduler)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.30 ▲6.84 | 84.51 ▲40.30 |
Dashboard /wp-admin | 10.26 ▲6.96 | 1,494.88 ▲1,443.91 |
Posts /wp-admin/edit.php | 10.31 ▲6.95 | 106.60 ▲57.46 |
Add New Post /wp-admin/post-new.php | 12.83 ▲6.95 | 146.17 ▲47.13 |
Media Library /wp-admin/upload.php | 10.18 ▲6.95 | 94.57 ▲56.66 |
/wp-admin/admin.php?page=moceansms-download-file | 10.17 | 84.05 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 10.42 | 86.25 |
MoceanAPI SMS Settings /wp-admin/options-general.php?page=moceansms-woocoommerce-setting | 10.45 | 80.08 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 10.39 | 95.76 |
Server storage [IO: ▲5.42MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 402 new files
Database: 5 new tables, 25 new options
New tables |
---|
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_actions |
moceansms_wc_send_sms_outbox |
wp_actionscheduler_claims |
New WordPress options |
---|
moceansms_plugin_version |
widget_recent-posts |
fs_active_plugins |
moceansms_smsoutbox_setting |
widget_recent-comments |
moceansms_sendsms_setting |
widget_theysaidso_widget |
moceansms_customer_setting |
theysaidso_admin_options |
action_scheduler_hybrid_store_demarkation |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MoceanAPI Order SMS Notification for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲324 | 15.28 ▲0.53 | 2.08 ▲0.40 | 27.06 ▼14.88 |
Dashboard /wp-admin | 2,443 ▲258 | 6.67 ▲1.81 | 144.77 ▲27.96 | 42.37 ▼4.73 |
Posts /wp-admin/edit.php | 2,310 ▲221 | 3.57 ▲1.52 | 49.42 ▲11.80 | 34.45 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 22.16 ▼1.07 | 592.63 ▼65.93 | 31.44 ▼19.09 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.42 ▲0.21 | 83.20 ▼33.54 | 42.07 ▼6.20 |
/wp-admin/admin.php?page=moceansms-download-file | 690 | 1.70 | 9.82 | 20.68 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,270 | 3.43 | 42.53 | 27.13 |
MoceanAPI SMS Settings /wp-admin/options-general.php?page=moceansms-woocoommerce-setting | 1,233 | 3.27 | 43.34 | 85.89 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,543 | 3.42 | 40.98 | 30.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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 cannot be uninstalled
- > Notice in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- wp_actionscheduler_claims
- moceansms_wc_send_sms_outbox
- Zombie WordPress options detected upon uninstall: 23 options
- can_compress_scripts
- fs_active_plugins
- moceansms_help_setting
- moceansms_automation_setting
- fs_debug_mode
- fs_gdpr
- db_upgraded
- widget_recent-comments
- fs_accounts
- moceansms_logs_setting
- ...
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)
Everything seems fine, however this is by no means 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
- 114× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Moceansms_Register_Interface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/includes/class-moceansms-woocommerce-hook.php:9
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/action-scheduler/tests/phpunit/runner/ActionScheduler_QueueCleaner_Test.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Moceansms_Register_Interface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/includes/multivendor/admin/class-moceansms-multivendor-setting.php:3
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Moceansms_PluginInterface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/includes/plugins/MoceanSimpleMembership.php:3
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/action-scheduler/tests/phpunit/procedural_api/wc_get_scheduled_actions_Test.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/lib/action-scheduler/classes/ActionScheduler_OptionLock.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Moceansms_Register_Interface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/admin/class-moceansms-woocommerce-setting.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Moceansms_PluginInterface' not found in wp-content/plugins/moceansms-order-sms-notification-for-woocommerce/includes/plugins/MoceanGroundhoggCRM.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #10, #11, #12, #13, #14, #15, #16, #17, #5, #6, #7, #8, #9 in moceansms-order-sms-notification-for-woocommerce/assets to your readme.txt
moceansms-order-sms-notification-for-woocommerce/moceansms-woocommerce.php 85% from 13 tests
The primary PHP file in "MoceanAPI Order SMS Notification for WooCommerce" version 1.4.9 is used by WordPress to initiate all plugin functionality
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: It is recommended to name the main PHP file as the plugin slug ("moceansms-order-sms-notification-for-woocommerce.php" instead of "moceansms-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin64,307 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 288 | 11,334 | 22,403 | 49,922 |
CSS | 13 | 1 | 27 | 9,119 |
JSON | 7 | 0 | 0 | 3,450 |
Markdown | 12 | 432 | 0 | 844 |
JavaScript | 6 | 89 | 95 | 484 |
Bourne Shell | 1 | 23 | 11 | 147 |
YAML | 4 | 15 | 6 | 111 |
XML | 3 | 8 | 3 | 91 |
HTML | 2 | 8 | 0 | 52 |
Sass | 1 | 10 | 0 | 47 |
SVG | 1 | 0 | 0 | 40 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 28.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 207 | |
▷ Abstract classes | 20 | 9.66% |
▷ Concrete classes | 187 | 90.34% |
▷ Final classes | 0 | 0.00% |
Methods | 2,517 | |
▷ Static methods | 288 | 11.44% |
▷ Public methods | 1,873 | 74.41% |
▷ Protected methods | 186 | 7.39% |
▷ Private methods | 458 | 18.20% |
Functions | 142 | |
▷ Named functions | 119 | 83.80% |
▷ Anonymous functions | 23 | 16.20% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.04MB with 0.01MB 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/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/action-scheduler/docs/favicon-16x16.png | 0.39KB | 0.38KB | ▼ 3.02% |
lib/action-scheduler/docs/mstile-150x150.png | 4.15KB | 3.67KB | ▼ 11.47% |
lib/action-scheduler/docs/apple-touch-icon.png | 6.77KB | 2.46KB | ▼ 63.68% |