68% contact-form-cfdb7

Code Review | Contact Form 7 Database Addon - CFDB7

WordPress plugin Contact Form 7 Database Addon - CFDB7 scored68%from 54 tests.

About plugin

  • Plugin page: contact-form-cfdb7
  • Plugin version:
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Aug 22, 2023
  • Number of updates: 125
  • Update frequency: every 18.8 days
  • Top authors: arshidkv12 (100%)

Code review

54 tests

User reviews

1715 reviews

Install metrics

500,000+ active /4,434,878 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.43ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form 7 Database Addon - CFDB7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.41 ▼2.59
Dashboard /wp-admin3.47 ▲0.1345.59 ▼13.70
Posts /wp-admin/edit.php3.58 ▲0.2350.38 ▲5.00
Add New Post /wp-admin/post-new.php6.05 ▲0.1788.09 ▼9.70
Media Library /wp-admin/upload.php3.39 ▲0.1736.56 ▲4.29

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form 7 Database Addon - CFDB7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.381.89 ▲0.2344.87 ▼5.58
Dashboard /wp-admin2,224 ▲535.63 ▼0.0389.90 ▼11.0242.47 ▼3.41
Posts /wp-admin/edit.php2,129 ▲292.02 ▲0.0537.63 ▲0.4439.00 ▲7.64
Add New Post /wp-admin/post-new.php1,550 ▲2222.92 ▼0.01582.82 ▼80.1652.73 ▲4.64
Media Library /wp-admin/upload.php1,432 ▲324.18 ▼0.0293.56 ▼0.6443.66 ▲1.41
Contact Forms /wp-admin/cfdb7-list.php260.420.0613.56
Extensions /wp-admin/cfdb7-list.php?page=cfdb7-extensions260.420.085.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_db7_forms
  • Zombie WordPress options detected upon uninstall: 7 options
    • cfdb7_view_install_date
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_submenu_page() in wp-content/plugins/contact-form-cfdb7/inc/add-ons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-form-cfdb7/contact-form-cfdb-7.php:67

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/cfdb7-list.php
    • > Network (severe)
    wp-admin/cfdb7-list.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/cfdb7-list.php?page=cfdb7-extensions
    • > Network (severe)
    wp-admin/cfdb7-list.php?page=cfdb7-extensions - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: contact form 7, wpcf7, export contact form, contact form db, save contact form...

contact-form-cfdb7/contact-form-cfdb-7.php 85% from 13 tests

The main PHP file in "Contact Form 7 Database Addon - CFDB7" ver. adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-cfdb7.php" instead of "contact-form-cfdb-7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected852 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.33
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2485.71%
▷ Protected methods13.57%
▷ Private methods310.71%
▷ Named functions1292.31%
▷ Anonymous functions17.69%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin