Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼5.72ms] Passed 4 tests
Analyzing server-side resources used by SMS-Fly для Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.85 ▲1.02 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.09 ▼1.21 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 47.80 ▼8.76 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 88.62 ▼13.92 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 40.83 ▲2.52 |
SMS-fly & Woocommerce /wp-admin/admin.php?page=SMSFly_woo | 3.45 | 36.58 |
SMS-fly & Contact Form 7 /wp-admin/admin.php?page=SMSFly_cf7 | 3.45 | 33.81 |
Send sms /wp-admin/admin.php?page=smsfly_sms | 3.45 | 251.62 |
Gateway setup /wp-admin/admin.php?page=SMSFly_settings | 3.45 | 224.88 |
Notifications settings /wp-admin/admin.php?page=SMSFly_notify | 3.45 | 223.25 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SMS-Fly для Wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.37 ▼0.00 | 1.83 ▲0.22 | 44.33 ▲5.83 |
Dashboard /wp-admin | 2,234 ▲57 | 5.58 ▼0.04 | 87.26 ▲1.41 | 42.89 ▼1.37 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.97 ▼0.04 | 36.50 ▼2.02 | 37.06 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,576 ▲36 | 22.90 ▼0.34 | 642.61 ▲13.03 | 50.80 ▼8.19 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.23 ▲0.04 | 99.02 ▼1.97 | 44.09 ▼1.34 |
SMS-fly & Woocommerce /wp-admin/admin.php?page=SMSFly_woo | 802 | 2.18 | 26.02 | 28.85 |
SMS-fly & Contact Form 7 /wp-admin/admin.php?page=SMSFly_cf7 | 802 | 2.02 | 26.19 | 28.28 |
Send sms /wp-admin/admin.php?page=smsfly_sms | 897 | 2.07 | 25.07 | 28.65 |
Gateway setup /wp-admin/admin.php?page=SMSFly_settings | 827 | 2.05 | 22.39 | 23.75 |
Notifications settings /wp-admin/admin.php?page=SMSFly_notify | 1,018 | 2.21 | 26.45 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smsfly/includes/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smsfly/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/smsfly/smsfly.php:16
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: viber, ukraine, smsfly, sms-fly, sms
smsfly/smsfly.php Passed 13 tests
This is the main PHP file of "SMS-Fly для Wordpress" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
SMS and Viber messages using the SMS-fly service
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,466 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 118 | 60 | 1,020 |
PO File | 2 | 210 | 14 | 446 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 4 | 40.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin