84% extensions-for-cf7

Code Review | Extensions For CF7 (Contact form 7 Database, Conditional Fields and Redirection)

WordPress plugin Extensions For CF7 (Contact form 7 Database, Conditional Fields and Redirection) scored84%from 54 tests.

About plugin

  • Plugin page: extensions-for-cf7
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 19, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 46
  • Update frequency: every 19.9 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /47,961 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.62ms] Passed 4 tests

This is a short check of server-side resources used by Extensions For CF7 (Contact form 7 Database, Conditional Fields and Redirection)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.61 ▼0.70
Dashboard /wp-admin3.32 ▼0.0344.80 ▼14.64
Posts /wp-admin/edit.php3.37 ▲0.0148.62 ▲5.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.21 ▼0.09
Media Library /wp-admin/upload.php3.24 ▲0.0131.06 ▼3.03

Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: 1 new table, 6 new options
New tables
wp_extcf7_db
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Extensions For CF7 (Contact form 7 Database, Conditional Fields and Redirection)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15313.58 ▼0.7610.10 ▲8.4147.72 ▲0.61
Dashboard /wp-admin2,203 ▲235.56 ▼0.0989.60 ▼10.7540.77 ▼2.18
Posts /wp-admin/edit.php2,111 ▲112.13 ▲0.1338.25 ▲2.9236.98 ▼0.02
Add New Post /wp-admin/post-new.php1,537 ▲623.14 ▼0.01588.30 ▼108.3351.02 ▼5.12
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.0297.31 ▼8.6543.46 ▼3.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/extensions-for-cf7/admin/template/general-options-layout.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Extensions_Cf7_Installer' not found in wp-content/plugins/extensions-for-cf7/includes/class.cf7-extensions.php:211
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/extensions-for-cf7/admin/template/conditional-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/extensions-for-cf7/admin/template/redierect-options-layout.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/extensions-for-cf7/admin/template/conditional-field-layout.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/extensions-for-cf7/admin/template/fields-group-layout.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/extensions-for-cf7/admin/template/pro-feature-list.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/extensions-for-cf7/admin/template/mailchimp-pannel-layout.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: redirection, contact form db, cf7, contact form 7

extensions-for-cf7/extensions-for-cf7.php 92% from 13 tests

The primary PHP file in "Extensions For CF7 (Contact form 7 Database, Conditional Fields and Redirection)" version 3.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected4,782 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP265953042,943
CSS291661,033
JavaScript817438806

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.11
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods105
▷ Static methods1312.38%
▷ Public methods9489.52%
▷ Protected methods10.95%
▷ Private methods109.52%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/extensions/ht-slider-addons-pro.png6.41KB4.35KB▼ 32.23%
admin/assets/images/acceptence-3.png54.88KB18.22KB▼ 66.80%
admin/assets/images/extensions/multicurrencypro.png19.01KB9.36KB▼ 50.77%
(invalid) admin/assets/images/extensions/was-this-helpful.png1.21KB0.00KB▼ 100.00%
admin/assets/images/extensions/woolentor-addons-pro.png3.20KB1.69KB▼ 47.09%