Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.52ms] Passed 4 tests
A check of server-side resources used by Ultimate Addons for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.65 ▼2.36 |
Dashboard /wp-admin | 3.49 ▲0.19 | 52.58 ▲2.60 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 55.48 ▲4.17 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 97.28 ▼1.36 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.48 ▲3.18 |
Server storage [IO: ▲10.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 716 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Ultimate Addons for Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲67 | 14.14 ▼0.21 | 1.57 ▼0.27 | 36.13 ▼9.59 |
Dashboard /wp-admin | 2,234 ▲60 | 5.49 ▼0.07 | 95.50 ▼6.03 | 43.89 ▼1.90 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.13 ▲0.16 | 39.97 ▼4.03 | 39.14 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.20 ▼0.19 | 646.51 ▲6.81 | 60.39 ▲10.90 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.17 ▼0.00 | 98.46 ▲0.87 | 45.21 ▲2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ultimate-addons-for-contact-form-7/addons/submission-id/ultimate-submission-id.php
- > /wp-content/plugins/ultimate-addons-for-contact-form-7/addons/signature/ultimate-signature.php
- 231× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Tag/FieldSet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Tag/TBody.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Tag/Hr.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Tag/Ol.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/AssetFetcher.php:12
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tcpdf\\Fpdi' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/setasign/fpdi/src/TcpdfFpdi.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Mpdf\\Language\\ScriptToLanguageInterface' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Language/ScriptToLanguage.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Image/ImageProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Td' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/mpdf/mpdf/src/Tag/Th.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/ultimate-addons-for-contact-form-7/third-party/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyMatcher.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 39 tag instead of maximum 10
ultimate-addons-for-contact-form-7/ultimate-addons-for-contact-form-7.php 85% from 13 tests
The main file in "Ultimate Addons for Contact Form 7" v. 3.2.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 231 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected109,978 lines of code in 542 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 445 | 13,750 | 13,892 | 85,636 |
SVG | 4 | 0 | 0 | 9,792 |
CSS | 24 | 1,816 | 62 | 5,322 |
PO File | 6 | 1,674 | 2,226 | 3,744 |
JavaScript | 25 | 482 | 321 | 2,611 |
Markdown | 15 | 543 | 0 | 1,535 |
JSON | 11 | 0 | 0 | 811 |
HTML | 1 | 24 | 22 | 253 |
YAML | 7 | 58 | 4 | 196 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 7,024)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 53.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 11.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 322 | |
▷ Abstract classes | 9 | 2.80% |
▷ Concrete classes | 313 | 97.20% |
▷ Final classes | 14 | 4.47% |
Methods | 1,850 | |
▷ Static methods | 157 | 8.49% |
▷ Public methods | 1,616 | 87.35% |
▷ Protected methods | 62 | 3.35% |
▷ Private methods | 172 | 9.30% |
Functions | 54 | |
▷ Named functions | 27 | 50.00% |
▷ Anonymous functions | 27 | 50.00% |
Constants | 433 | |
▷ Global constants | 9 | 2.08% |
▷ Class constants | 424 | 97.92% |
▷ Public constants | 424 | 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
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 |
addons/country-dropdown/assets/img/flags.png | 64.41KB | 23.38KB | ▼ 63.70% |
addons/country-dropdown/assets/img/flags@2x.png | 169.54KB | 64.26KB | ▼ 62.10% |