Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-admin/options.php+235
Undefined variable: action
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.07ms] Passed 4 tests
An overview of server-side resources used by SMS Alert for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.57 ▲2.00 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.61 ▼3.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.17 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.76 ▼21.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.29 ▼0.92 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SMS Alert for Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.67 ▲0.48 | 1.64 ▼0.13 | 39.03 ▼9.50 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.09 | 94.52 ▲1.12 | 41.87 ▼1.81 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▼0.02 | 38.61 ▼0.39 | 34.03 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.09 ▼0.08 | 686.48 ▲66.87 | 59.10 ▲7.29 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.03 | 111.51 ▲2.53 | 48.02 ▲2.80 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-alert-for-contact-form-7/sms_alert.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sms-alert-for-contact-form-7/options/txtlcl_options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-alert-for-contact-form-7/send_sms/twilio.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-alert-for-contact-form-7/send_sms/txtlcl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sms-alert-for-contact-form-7/options/nexmo_options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sms-alert-for-contact-form-7/options/msg91_options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sms-alert-for-contact-form-7/options/twilio_options.php:17
- > PHP Notice
Undefined variable: smsapi in wp-content/plugins/sms-alert-for-contact-form-7/options/nexmo_options.php on line 3
- > PHP Notice
Undefined variable: smsapi in wp-content/plugins/sms-alert-for-contact-form-7/options/msg91_options.php on line 3
- > PHP Notice
Undefined variable: smsapi in wp-content/plugins/sms-alert-for-contact-form-7/options/twilio_options.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
sms-alert-for-contact-form-7/sms_alert.php 92% from 13 tests
The principal PHP file in "SMS Alert for Contact Form 7" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sms-alert-for-contact-form-7.php" instead of "sms_alert.php")
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 plugin697 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 202 | 97 | 459 |
CSS | 2 | 43 | 60 | 205 |
JavaScript | 1 | 15 | 11 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 13 | 61.90% |
▷ Anonymous functions | 8 | 38.10% |
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/twilio.png | 8.60KB | 5.79KB | ▼ 32.65% |