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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.29ms] Passed 4 tests
An overview of server-side resources used by Conditional Fields for Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.53 ▲0.25 |
Dashboard /wp-admin | 3.52 ▲0.17 | 46.70 ▼18.97 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 50.13 ▲5.43 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 95.26 ▼1.78 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 34.63 ▲3.35 |
Conditional Fields /wp-admin/admin.php?page=wpcf7cf | 3.41 | 32.09 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional Fields for Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲170 | 13.39 ▼1.17 | 8.32 ▲6.41 | 37.65 ▼3.52 |
Dashboard /wp-admin | 2,211 ▲34 | 5.64 ▲0.13 | 95.57 ▼0.60 | 41.69 ▼2.71 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.03 ▲0.05 | 39.10 ▼0.68 | 37.79 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 23.01 ▼0.12 | 564.44 ▼106.17 | 52.46 ▼8.15 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.23 ▼0.04 | 101.37 ▲5.33 | 43.59 ▲2.26 |
Conditional Fields /wp-admin/admin.php?page=wpcf7cf | 1,057 | 2.19 | 27.45 | 45.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- 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
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cf7-conditional-fields/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cf7-conditional-fields/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cf7-conditional-fields/tg_pane_group.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-conditional-fields/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-conditional-fields/cf7cf.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-conditional-fields/wpcf7cf-options.php:74
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: conditional fields, forms, contact form 7, wordpress
cf7-conditional-fields/contact-form-7-conditional-fields.php 92% from 13 tests
The main PHP file in "Conditional Fields for Contact Form 7" ver. 2.4.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-conditional-fields.php" instead of "contact-form-7-conditional-fields.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected19,204 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 0 | 10,987 |
JavaScript | 10 | 987 | 409 | 3,278 |
HTML | 7 | 2,283 | 21 | 2,987 |
PHP | 7 | 276 | 141 | 913 |
CSS | 5 | 113 | 58 | 780 |
Sass | 1 | 56 | 1 | 259 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 9 | 39.13% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 37 | 90.24% |
▷ Anonymous functions | 4 | 9.76% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin