Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.14ms] Passed 4 tests
Analyzing server-side resources used by Conditional fields in Contact Form 7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.39 ▲0.93 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.83 ▼0.43 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 43.60 ▼2.94 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 93.74 ▲4.69 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.17 ▼2.12 |
Conditional fields /wp-admin/admin.php?page=cfcf7 | 3.35 | 31.17 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
cfcf7_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Conditional fields in Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.65 ▼1.02 | 8.30 ▲5.65 | 41.65 ▼4.55 |
Dashboard /wp-admin | 2,205 ▲14 | 5.80 ▲0.71 | 102.82 ▼13.00 | 39.19 ▼5.87 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.03 ▲0.03 | 33.34 ▼3.23 | 33.89 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,516 ▼3 | 23.12 ▲0.04 | 573.69 ▼103.38 | 55.34 ▼25.58 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.19 ▼0.06 | 98.73 ▼9.40 | 43.12 ▼2.45 |
Conditional fields /wp-admin/admin.php?page=cfcf7 | 848 | 2.06 | 27.43 | 25.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- cfcf7_options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/conditional-fields-in-contact-form-7/cfcf7-options.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-fields-in-contact-form-7/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/conditional-fields-in-contact-form-7/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-fields-in-contact-form-7/cfcf7.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/conditional-fields-in-contact-form-7/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/conditional-fields-in-contact-form-7/tg_pane_group.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #10, #11, #12, #3, #4, #5, #6, #7, #8, #9 in conditional-fields-in-contact-form-7/assets to your readme.txt
conditional-fields-in-contact-form-7/index.php 85% from 13 tests
The primary PHP file in "Conditional fields in Contact Form 7" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("conditional-fields-in-contact-form-7.php" instead of "index.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,537 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 220 | 93 | 721 |
JavaScript | 2 | 172 | 31 | 523 |
CSS | 2 | 7 | 7 | 161 |
PO File | 1 | 49 | 55 | 132 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 4 | 25.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin