74% advanced-contact-form-7-compact-db

Code Review | Advanced Contact Form 7 - Compact DB

WordPress plugin Advanced Contact Form 7 - Compact DB scored 74% from 54 tests.

About plugin

  • Plugin page: advanced-contact-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4
  • WordPress version: 5.8.1
  • First release: Apr 15, 2020
  • Latest release: Apr 15, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: iamranit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 255 total downloads


Plugin footprint 65% 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.03MB] [CPU: ▼142.79ms] Passed 4 tests

Analyzing server-side resources used by Advanced Contact Form 7 - Compact DB
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0335.40 ▲6.31
Dashboard /wp-admin3.09 ▲0.0446.04 ▲3.32
Posts /wp-admin/edit.php3.18 ▲0.0643.03 ▼3.07
Add New Post /wp-admin/post-new.php5.45 ▲0.0289.70 ▼568.37
Media Library /wp-admin/upload.php3.04 ▲0.0334.25 ▼3.04

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Contact Form 7 - Compact DB
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲5715.93 ▼0.0210.17 ▼3.1346.14 ▲0.26
Dashboard /wp-admin2,982 ▲515.99 ▲0.03144.38 ▼8.75115.89 ▼5.59
Posts /wp-admin/edit.php2,751 ▲122.72 ▲0.0365.37 ▲1.2897.38 ▲12.21
Add New Post /wp-admin/post-new.php1,627 ▼4521.28 ▲2.41272.66 ▼109.18108.68 ▼7.53
Media Library /wp-admin/upload.php1,825 ▲185.04 ▼0.07146.00 ▼20.45123.62 ▲0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_cf7cdb_data
  • The uninstall procedure has failed, leaving 1 option in the database
    • my_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-contact-form-7-compact-db/cf7cdb.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

advanced-contact-form-7-compact-db/cf7cdb.php 92% from 13 tests

The main PHP file in "Advanced Contact Form 7 - Compact DB" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-contact-form-7-compact-db.php" instead of "cf7cdb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin289 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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 functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin