Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼144.17ms] Passed 4 tests
This is a short check of server-side resources used by SMS CLUB Messages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 39.59 ▲15.65 |
Dashboard /wp-admin | 3.14 ▲0.08 | 50.02 ▲1.08 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 47.05 ▼0.48 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 88.11 ▼574.02 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 31.55 ▼3.26 |
Настройки /wp-admin/admin.php?page=message_settings | 3.07 | 31.95 |
Отправка Viber /wp-admin/admin.php?page=viber_message_slug | 3.07 | 34.42 |
Статистика /wp-admin/admin.php?page=statistic | 3.06 | 29.54 |
Отправка СМС /wp-admin/admin.php?page=message_plugin | 3.07 | 29.37 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: 2 new tables, no new options
New tables |
---|
wp_smsclub_settings |
wp_smsclub_statistic |
Browser metrics Passed 4 tests
An overview of browser requirements for SMS CLUB Messages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,729 ▲157 | 15.94 ▲0.05 | 11.57 ▲2.10 | 52.85 ▲4.61 |
Dashboard /wp-admin | 3,023 ▲92 | 6.14 ▲0.19 | 151.87 ▲1.00 | 125.25 ▲6.86 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.72 ▲0.02 | 66.97 ▼3.79 | 94.16 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2,043 | 18.89 ▲4.21 | 403.79 ▼50.49 | 120.78 ▲3.79 |
Media Library /wp-admin/upload.php | 1,857 ▲109 | 5.07 ▲0.07 | 161.69 ▲7.09 | 125.03 ▼6.74 |
Настройки /wp-admin/admin.php?page=message_settings | 1,126 | 2.11 | 64.16 | 75.49 |
Отправка Viber /wp-admin/admin.php?page=viber_message_slug | 1,055 | 2.10 | 58.55 | 62.39 |
Статистика /wp-admin/admin.php?page=statistic | 1,055 | 2.11 | 60.59 | 54.93 |
Отправка СМС /wp-admin/admin.php?page=message_plugin | 1,052 | 2.09 | 62.49 | 60.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sms-club-messages/templates/header_template.php
- > /wp-content/plugins/sms-club-messages/templates/spinner.php
- > /wp-content/plugins/sms-club-messages/templates/popup_message_inform_template.php
- > /wp-content/plugins/sms-club-messages/templates/statistic_page_template.php
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'SmsclubApi\\Interfaces\\SendResponseInterface' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Classes/SendResponse.php:11
- > PHP Notice
Undefined variable: balance in wp-content/plugins/sms-club-messages/templates/header_template.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'SmsclubApi\\Interfaces\\SmsStatusInterface' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Classes/SmsStatus.php:11
- > PHP Fatal error
Uncaught Error: Class 'SmsclubApi\\Http\\Client' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Http/SmsClient.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SmsclubApi\\Interfaces\\OriginatorInterface' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Classes/Originator.php:11
- > PHP Fatal error
Uncaught Error: Interface 'SmsclubApi\\Interfaces\\ViberStatusInterface' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Classes/ViberStatus.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sms-club-messages/templates/form_sms_viber_template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_account_data() in wp-content/plugins/sms-club-messages/templates/settings_page_template.php:2
- > PHP Notice
Undefined variable: errors in wp-content/plugins/sms-club-messages/templates/header_template.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'SmsclubApi\\Interfaces\\MessangerInterface' not found in wp-content/plugins/sms-club-messages/php-new-master/src/Interfaces/ViberMessageInterface.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: sms, viber, sms club, message, smsclub...
sms-club-messages/plugin-sms.php 92% from 13 tests
This is the main PHP file of "SMS CLUB Messages" version 4.8, 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("sms-club-messages.php" instead of "plugin-sms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,026 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 344 | 717 | 1,333 |
CSS | 1 | 29 | 15 | 325 |
Markdown | 1 | 55 | 0 | 214 |
JavaScript | 2 | 29 | 8 | 154 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 8 | 6.02% |
▷ Public methods | 114 | 85.71% |
▷ Protected methods | 12 | 9.02% |
▷ Private methods | 7 | 5.26% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
Constants | 29 | |
▷ Global constants | 4 | 13.79% |
▷ Class constants | 25 | 86.21% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 100.35KB | 34.75KB | ▼ 65.37% |
assets/icon-128x128.png | 4.16KB | 1.72KB | ▼ 58.56% |