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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼0.26ms] 75% from 4 tests
Server-side resources used by WP SMS - Messaging & SMS Notification for WordPress, WooCommerce, GravityForms, etc
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 3,833.64ms on /wp-admin/admin.php?page=wp-sms-add-ons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 35.14 ▼6.98 |
Dashboard /wp-admin | 3.56 ▲0.25 | 60.11 ▲11.03 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 49.65 ▲4.23 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 84.67 ▼2.72 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.63 ▲4.44 |
Add-Ons /wp-admin/admin.php?page=wp-sms-add-ons | 3.75 | 3,833.64 |
Server storage [IO: ▲3.63MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 462 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_sms_subscribes_group |
wp_sms_otp |
wp_sms_send |
wp_sms_subscribes |
wp_sms_otp_attempts |
New WordPress options |
---|
db_upgraded |
wpsms_settings |
widget_recent-posts |
wp_sms_db_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP SMS - Messaging & SMS Notification for WordPress, WooCommerce, GravityForms, etc
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,106 ▲344 | 15.37 ▲1.02 | 5.15 ▲3.46 | 37.41 ▼6.78 |
Dashboard /wp-admin | 2,420 ▲239 | 6.97 ▲1.25 | 153.38 ▲42.22 | 46.16 ▲1.63 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.94 ▼0.06 | 38.97 ▼0.72 | 35.79 ▼4.18 |
Add New Post /wp-admin/post-new.php | 6,420 ▲4,891 | 27.95 ▲4.64 | 926.77 ▲241.07 | 38.52 ▼23.93 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.15 ▼0.00 | 96.93 ▼1.89 | 44.62 ▲1.96 |
Add-Ons /wp-admin/admin.php?page=wp-sms-add-ons | 1,296 | 2.42 | 35.05 | 124.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 5 tables
- wp_sms_subscribes
- wp_sms_subscribes_group
- wp_sms_send
- wp_sms_otp
- wp_sms_otp_attempts
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- wp_sms_db_version
- widget_recent-comments
- wpsms_settings
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-sms/includes/templates/admin/label-button.php
- > /wp-content/plugins/wp-sms/includes/templates/admin/field-wc-status-repeater.php
- 286× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-adspanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-nesssolution.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-adpdigital.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-ariaideh.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-mediana.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-sendappWhatsApp.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-shreesms.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-verimor.php:5
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-sms/includes/templates/admin/field-wc-status-repeater.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_SMS\\Gateway' not found in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-aradsms.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #16 in wp-sms/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
wp-sms/wp-sms.php 92% from 13 tests
This is the main PHP file of "WP SMS - Messaging & SMS Notification for WordPress, WooCommerce, GravityForms, etc" version 6.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin43,996 lines of code in 421 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 354 | 8,069 | 12,784 | 34,392 |
Sass | 26 | 718 | 35 | 3,817 |
JavaScript | 23 | 437 | 288 | 2,575 |
CSS | 11 | 325 | 35 | 2,107 |
JSON | 3 | 0 | 0 | 1,040 |
SVG | 3 | 0 | 0 | 43 |
XML | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 389.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 332 | |
▷ Abstract classes | 4 | 1.20% |
▷ Concrete classes | 328 | 98.80% |
▷ Final classes | 3 | 0.91% |
Methods | 1,487 | |
▷ Static methods | 100 | 6.72% |
▷ Public methods | 1,383 | 93.01% |
▷ Protected methods | 18 | 1.21% |
▷ Private methods | 86 | 5.78% |
Functions | 53 | |
▷ Named functions | 20 | 37.74% |
▷ Anonymous functions | 33 | 62.26% |
Constants | 16 | |
▷ Global constants | 8 | 50.00% |
▷ Class constants | 8 | 50.00% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.61MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/success-sms.png | 1.16KB | 0.62KB | ▼ 46.30% |
assets/images/logo-250.png | 19.69KB | 8.08KB | ▼ 58.99% |
assets/images/icons/dark-lock.png | 0.30KB | 0.29KB | ▼ 2.28% |
assets/images/icons/send-icon.png | 0.70KB | 0.43KB | ▼ 37.64% |
assets/images/icons/next-step-outline.png | 1.05KB | 0.72KB | ▼ 31.54% |