Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.79MB] [CPU: ▼50.10ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 add confirm
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 6.04 ▼35.64 |
Dashboard /wp-admin | 2.23 ▼1.07 | 8.81 ▼42.18 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 7.73 ▼41.04 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 11.04 ▼81.55 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 7.10 ▼27.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Contact Form 7 add confirm: 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,814 ▲53 | 14.33 ▼0.05 | 2.01 ▲0.29 | 44.35 ▲0.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.05 | 95.43 ▼9.92 | 43.83 ▼4.01 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.02 | 34.17 ▼7.90 | 33.54 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.12 ▲4.79 | 637.45 ▲4.49 | 55.50 ▼21.69 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.04 | 103.11 ▼8.19 | 44.35 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/contact-form-7-add-confirm/modules/confirm.php+51
Use of undefined constant WPCF7_VERSION - assumed 'WPCF7_VERSION' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'WPCF7C_PLUGIN_DIR/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-add-confirm/settings.php on line 13
- > PHP Warning
Use of undefined constant WPCF7C_PLUGIN_DIR - assumed 'WPCF7C_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7-add-confirm/settings.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-add-confirm/modules/back.php:8
- > PHP Warning
require_once(WPCF7C_PLUGIN_DIR/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-7-add-confirm/settings.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/contact-form-7-add-confirm/contact-form-7-confirm.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-add-confirm/modules/confirm.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-add-confirm/includes/controller.php:11
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
contact-form-7-add-confirm/contact-form-7-confirm.php 92% from 13 tests
The main PHP file in "Contact Form 7 add confirm" ver. 5.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-add-confirm.php" instead of "contact-form-7-confirm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected744 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 188 | 95 | 559 |
JavaScript | 1 | 58 | 26 | 146 |
PO File | 1 | 8 | 14 | 33 |
CSS | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin