90% database-for-cf7

Code Review | Database for CF7

WordPress plugin Database for CF7 scored90%from 54 tests.

About plugin

  • Plugin page: database-for-cf7
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: Aug 7, 2023
  • Number of updates: 32
  • Update frequency: every 72.2 days
  • Top authors: code4life (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /18,597 total downloads


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.01MB] [CPU: ▼7.85ms] Passed 4 tests

Analyzing server-side resources used by Database for CF7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.36 ▼0.16
Dashboard /wp-admin3.31 ▼0.0452.95 ▼11.05
Posts /wp-admin/edit.php3.36 ▲0.0055.79 ▲2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.47 ▼18.61
Media Library /wp-admin/upload.php3.23 ▲0.0036.76 ▼1.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Database for CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.152.01 ▲0.0942.93 ▲0.70
Dashboard /wp-admin2,198 ▲215.60 ▼0.0084.52 ▼10.6542.36 ▼4.44
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0635.82 ▼7.9034.71 ▼2.66
Add New Post /wp-admin/post-new.php1,545 ▲1923.13 ▲5.62659.74 ▼37.9951.34 ▼10.75
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0398.83 ▼5.5542.97 ▼3.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 96% 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
5 plugin tags: contact form 7, database, save contact form, cf7, cf7 database

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

The main file in "Database for CF7" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected857 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PO File1173054

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions17.14%
▷ Anonymous functions1392.86%
▷ 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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings