Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.11MB] [CPU: ▼277.17ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.51 ▲2.00 | 74.48 ▲19.07 |
Dashboard /wp-admin | 5.59 ▲2.18 | 53.45 ▲15.78 |
Posts /wp-admin/edit.php | 5.81 ▲2.18 | 54.81 ▲13.09 |
Add New Post /wp-admin/post-new.php | 9.06 ▲2.09 | 112.24 ▼1,152.61 |
Media Library /wp-admin/upload.php | 5.48 ▲2.19 | 40.19 ▲15.05 |
Contact Forms /wp-admin/admin.php?page=wpcf7 | 5.50 | 41.43 |
Add New /wp-admin/admin.php?page=wpcf7-new | 5.57 | 48.51 |
Integration /wp-admin/admin.php?page=wpcf7-integration | 5.46 | 40.57 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpcf7 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲80 | 15.90 ▲0.27 | 6.83 ▲0.97 | 2.29 ▼0.05 |
Dashboard /wp-admin | 2,927 ▲69 | 6.15 ▲0.07 | 116.36 ▼29.78 | 155.16 ▼12.99 |
Posts /wp-admin/edit.php | 2,726 ▲38 | 3.25 ▲0.01 | 63.47 ▲0.41 | 138.35 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,724 ▲63 | 21.63 ▲5.53 | 441.80 ▲25.73 | 161.74 ▲10.19 |
Media Library /wp-admin/upload.php | 1,729 ▲28 | 5.50 ▼0.04 | 144.08 ▲8.87 | 190.65 ▲5.37 |
Contact Forms /wp-admin/admin.php?page=wpcf7 | 1,639 | 2.90 | 56.14 | 158.61 |
Add New /wp-admin/admin.php?page=wpcf7-new | 5,077 | 3.83 | 87.63 | 249.14 |
Integration /wp-admin/admin.php?page=wpcf7-integration | 1,239 | 2.86 | 55.39 | 117.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- wpcf7
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/contact-form-7/admin/edit-contact-form.php
- 48× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'WPCF7_PLUGIN_DIR/includes/l10n.php' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7/load.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcf7_include_module_file() in wp-content/plugins/contact-form-7/modules/sendinblue/sendinblue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7/modules/listo.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7/includes/rest-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7/modules/textarea.php:8
- > PHP Warning
Use of undefined constant WPCF7_PLUGIN_DIR - assumed 'WPCF7_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7/load.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7/modules/doi-helper.php:9
- > PHP Warning
Use of undefined constant WPCF7_PLUGIN_DIR - assumed 'WPCF7_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7/admin/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7/modules/really-simple-captcha.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7/modules/disallowed-list.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: form, contact form, captcha, ajax, email...
contact-form-7/wp-contact-form-7.php 92% from 13 tests
The main file in "Contact Form 7" v. 5.5.6 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-7.php" instead of "wp-contact-form-7.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,085 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 3,873 | 1,229 | 13,378 |
CSS | 8 | 176 | 121 | 2,241 |
JavaScript | 7 | 123 | 4 | 465 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 2 | 5.88% |
▷ Concrete classes | 32 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 397 | |
▷ Static methods | 32 | 8.06% |
▷ Public methods | 295 | 74.31% |
▷ Protected methods | 47 | 11.84% |
▷ Private methods | 55 | 13.85% |
Functions | 304 | |
▷ Named functions | 278 | 91.45% |
▷ Anonymous functions | 26 | 8.55% |
Constants | 42 | |
▷ Global constants | 18 | 42.86% |
▷ Class constants | 24 | 57.14% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
includes/js/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
assets/icon.png | 29.11KB | 8.95KB | ▼ 69.24% |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
includes/js/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |