Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.55ms] Passed 4 tests
This is a short check of server-side resources used by Woo SMS Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.14 ▲0.08 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.92 ▼0.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.42 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.93 ▼9.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.78 ▼1.55 |
Woo SMS Gateway /wp-admin/admin.php?page=woo-smsgateway-admin | 3.23 | 35.11 |
Help /wp-admin/admin.php?page=woo-smsgateway-help | 3.23 | 32.68 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Woo SMS Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.63 ▼0.72 | 1.70 ▼0.04 | 44.05 ▼3.70 |
Dashboard /wp-admin | 2,229 ▲47 | 5.83 ▼0.06 | 101.15 ▼10.35 | 39.81 ▼0.97 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.03 ▲0.02 | 32.74 ▼6.85 | 36.61 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.10 ▲4.79 | 690.45 ▲16.99 | 55.43 ▼2.68 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.18 ▼0.06 | 96.32 ▼11.15 | 44.13 ▲0.78 |
Woo SMS Gateway /wp-admin/admin.php?page=woo-smsgateway-admin | 858 | 2.02 | 21.94 | 30.61 |
Help /wp-admin/admin.php?page=woo-smsgateway-help | 839 | 2.06 | 27.11 | 41.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/SearchOrderByTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/ErrorResponseTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/ErrorTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/MessageLogTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/SearchTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/DeviceAttributesTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/CallbackSearchResultTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/CreateCallbackRequestTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/MessageTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-smsgateway/smsGateway/lib/Swagger/Client/Tests/SendMessageRequestTest.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: sms, free, woocommerce, notifications, smsgateway
woo-smsgateway/wo-smsgateway.php 85% from 13 tests
The primary PHP file in "Woo SMS Gateway" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-smsgateway.php" instead of "wo-smsgateway.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.4")
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
Success! There were no dangerous files found in this plugin4,929 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,564 | 5,694 | 4,896 |
JSON | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
Analyzing 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.21 |
Average class complexity | 7.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 582 | |
▷ Static methods | 147 | 25.26% |
▷ Public methods | 581 | 99.83% |
▷ Protected methods | 1 | 0.17% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin