Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▲395.56ms] 75% from 4 tests
This is a short check of server-side resources used by Send SMS with 46elks for Contact Form 7
Please fix the following
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 395.56ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 437.76 ▲400.41 |
Dashboard /wp-admin | 3.59 ▲0.28 | 455.08 ▲409.01 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 457.57 ▲416.63 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 482.20 ▲390.98 |
Media Library /wp-admin/upload.php | 3.48 ▲0.24 | 418.46 ▲381.82 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Send SMS with 46elks for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.34 ▼1.44 | 1.98 ▼0.03 | 45.07 ▼1.30 |
Dashboard /wp-admin | 2,270 ▲85 | 4.88 ▼0.02 | 134.04 ▲29.74 | 60.82 ▲15.36 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.08 ▲0.08 | 38.79 ▼1.00 | 38.81 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 20.91 ▼0.37 | 829.02 ▲39.92 | 71.50 ▼4.65 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.14 ▼0.10 | 172.07 ▲38.03 | 76.68 ▲17.49 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/send-sms-with-46elks-for-contact-form-7/wp-sms-46elks.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== send-sms-with-46elks-for-contact-form-7 ===
)
send-sms-with-46elks-for-contact-form-7/wp-sms-46elks.php 85% from 13 tests
The entry point to "Send SMS with 46elks for Contact Form 7" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("send-sms-with-46elks-for-contact-form-7.php" instead of "wp-sms-46elks.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
Everything looks great! No dangerous files found in this plugin1,491 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 169 | 79 | 1,242 |
PO File | 1 | 58 | 65 | 162 |
JavaScript | 1 | 16 | 29 | 72 |
Markdown | 1 | 7 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 112.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin