Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.21ms] Passed 4 tests
An overview of server-side resources used by Country & Phone Field Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.76 ▲0.69 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.27 ▼13.42 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.13 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.85 ▲0.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 36.35 ▲0.29 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Country & Phone Field Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.17 ▼0.18 | 1.58 ▲0.02 | 42.73 ▲0.77 |
Dashboard /wp-admin | 2,204 ▲23 | 5.56 ▼0.17 | 80.82 ▼17.88 | 39.85 ▲0.96 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.96 ▲0.02 | 39.15 ▲3.09 | 36.15 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.05 ▼4.97 | 665.68 ▲42.07 | 64.31 ▲6.26 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.18 ▼0.01 | 107.75 ▲9.55 | 47.94 ▲6.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/country-phone-field-contact-form-7/country-phone-field-contact-form-7.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/country-phone-field-contact-form-7/includes/country-text.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/country-phone-field-contact-form-7/includes/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/country-phone-field-contact-form-7/includes/phone-text.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/country-phone-field-contact-form-7/includes/include-js-css.php:281
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7 in country-phone-field-contact-form-7/assets to your readme.txt
country-phone-field-contact-form-7/country-phone-field-contact-form-7.php 92% from 13 tests
"Country & Phone Field Contact Form 7" version 2.4.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin5,713 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 35 | 566 | 2,452 |
CSS | 4 | 5 | 15 | 2,182 |
PHP | 6 | 256 | 86 | 905 |
PO File | 1 | 42 | 46 | 123 |
SVG | 1 | 0 | 0 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags@2x.png | 169.54KB | 64.26KB | ▼ 62.10% |
assets/img/flags.png | 64.41KB | 23.38KB | ▼ 63.70% |