Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.13ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 CiviCRM integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.91 ▼6.93 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.45 ▼1.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.92 ▼3.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.53 ▼8.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.64 ▼1.58 |
CiviCRM Contact Form 7 Settings /wp-admin/options-general.php?page=cf7_civi_admin | 3.25 | 30.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Contact Form 7 CiviCRM integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.44 ▼0.94 | 1.57 ▼0.20 | 38.30 ▼8.44 |
Dashboard /wp-admin | 2,213 ▲25 | 4.82 ▼0.99 | 102.29 ▲2.21 | 40.31 ▼1.51 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.00 | 34.58 ▼0.27 | 32.35 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,517 ▼19 | 17.59 ▼5.60 | 670.27 ▲0.54 | 58.12 ▲0.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.10 | 94.80 ▲0.68 | 39.97 ▼1.45 |
CiviCRM Contact Form 7 Settings /wp-admin/options-general.php?page=cf7_civi_admin | 853 | 2.03 | 31.17 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/contact-form-7-civicrm-integration/views/civicrm_panel.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contact-form-7-civicrm-integration/contact-form-7-civi.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/contact-form-7-civicrm-integration/views/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== contact-form-7-civicrm-integration ===
)
contact-form-7-civicrm-integration/contact-form-7-civi.php 92% from 13 tests
"Contact Form 7 CiviCRM integration" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-civicrm-integration.php" instead of "contact-form-7-civi.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 plugin546 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 87 | 209 | 485 |
Markdown | 1 | 14 | 0 | 44 |
JavaScript | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 19 | 57.58% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin