Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.19ms] Passed 4 tests
Server-side resources used by Broadnet SMS Services
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.08 ▲1.32 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.35 ▼4.45 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.84 ▼3.10 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.27 ▼10.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.96 ▲2.93 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 14 new options
New WordPress options |
---|
pending_order_sms_template |
cancelled_order_sms_template |
text_message_admin_template |
on_hold_order_sms_template |
default_sms_template |
widget_recent-comments |
processing_order_sms_template |
can_compress_scripts |
refunded_order_sms_template |
completed_order_sms_template |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Broadnet SMS Services
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 13.63 ▼0.95 | 5.32 ▲3.23 | 41.40 ▼7.94 |
Dashboard /wp-admin | 2,219 ▲43 | 4.89 ▲0.02 | 105.73 ▼8.33 | 37.40 ▼11.12 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.03 ▲0.02 | 35.22 ▼1.93 | 30.59 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.24 ▲0.01 | 599.07 ▼43.09 | 58.63 ▲4.36 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.17 ▼0.04 | 97.99 ▼10.22 | 43.67 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/broadnet-sms-services/trunk/public/partials/woocoomerce-sms-services-public-display.php
- > /wp-content/plugins/broadnet-sms-services/public/partials/woocoomerce-sms-services-public-display.php
- > /wp-content/plugins/broadnet-sms-services/trunk/admin/partials/woocoomerce-sms-services-admin-display.php
- > /wp-content/plugins/broadnet-sms-services/admin/partials/woocoomerce-sms-services-admin-display.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/broadnet-sms-services/trunk/admin/views/partials-html-how-to-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/broadnet-sms-services/trunk/admin/views/partials-html-sms-settings-form-view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/broadnet-sms-services/admin/views/partials-html-sms-settings-form-view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/broadnet-sms-services/admin/views/partials-html-how-to-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/broadnet-sms-services/admin/views/partials-html-sms-general-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/broadnet-sms-services/trunk/admin/views/partials-html-sms-general-settings.php:2
- > 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 Passed 29 tests
readme.txt Passed 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
7 plugin tags: order on-hold sms notification, order cancelled sms notification, order processing sms notification, order refunded sms notification, send direct message to customer...
broadnet-sms-services/broadnet-sms-services.php Passed 13 tests
The primary PHP file in "Broadnet SMS Services" version 0.0.1 is used by WordPress to initiate all plugin functionality
119 characters long description:
This plugin is to send SMS notification to customers and administrator when orders status is changed using WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected902 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 291 | 597 | 793 |
CSS | 2 | 14 | 5 | 87 |
JavaScript | 2 | 11 | 28 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 8 | 10.00% |
▷ Public methods | 66 | 82.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 17.50% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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