Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▲0.22ms] Passed 4 tests
A check of server-side resources used by TargetSMS.ru: СМС-рассылки и уведомления из Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.46 ▲2.75 |
Dashboard /wp-admin | 3.53 ▲0.23 | 50.01 ▲1.34 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 44.22 ▼1.63 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 88.17 ▼1.57 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 38.79 ▲2.92 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_aomailer_cf_settings |
wp_aomailer_cf_form_settings |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for TargetSMS.ru: СМС-рассылки и уведомления из Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 14.74 ▲0.36 | 1.84 ▼0.01 | 43.97 ▼3.32 |
Dashboard /wp-admin | 2,222 ▲30 | 5.79 ▲0.86 | 106.76 ▼1.11 | 37.80 ▲0.34 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▲0.02 | 36.56 ▲1.96 | 35.20 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.33 ▲0.11 | 680.19 ▲19.80 | 55.19 ▼2.54 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.14 ▲0.01 | 95.74 ▼17.31 | 41.82 ▼4.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/targetsms-ru-contact-form-7/views/sms_page/__sms_settings.php:2
- > PHP Notice
Undefined variable: form in wp-content/plugins/targetsms-ru-contact-form-7/views/sms_page/__sms_templates.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/targetsms-ru-contact-form-7/views/settings_page_sms.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/targetsms-ru-contact-form-7/views/sms_page/__sms_history.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/targetsms-ru-contact-form-7/views/sms_page/__sms_help.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/targetsms-ru-contact-form-7/aomailercf_plugin.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function collect_mail_tags() on null in wp-content/plugins/targetsms-ru-contact-form-7/views/sms_page/__sms_templates.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: targetsms
targetsms-ru-contact-form-7/aomailercf_plugin.php 77% from 13 tests
The main file in "TargetSMS.ru: СМС-рассылки и уведомления из Contact Form 7" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 322 characters long)
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 83 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("targetsms-ru-contact-form-7.php" instead of "aomailercf_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6,710 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
PHP | 14 | 274 | 284 | 2,504 |
PO File | 4 | 496 | 500 | 1,044 |
CSS | 6 | 11 | 20 | 197 |
JavaScript | 4 | 0 | 9 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 60.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 17 | 18.68% |
▷ Public methods | 76 | 83.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 16.48% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ui/ui-bg_glass_95_fef1ec_1x400.png | 0.18KB | 0.15KB | ▼ 19.35% |
assets/img/logo.png | 7.88KB | 4.29KB | ▼ 45.49% |
assets/img/ui/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/img/ui/ui-bg_glass_75_e6e6e6_1x400.png | 0.12KB | 0.15KB | 0.00% |
assets/img/ui/ui-icons_cd0a0a_256x240.png | 3.67KB | 4.17KB | 0.00% |