79% dm-contact-form-7-db

Code Review | DM Contact Form 7 DB

WordPress plugin DM Contact Form 7 DB scored79%from 54 tests.

About plugin

  • Plugin page: dm-contact-form-7-db
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Feb 13, 2022
  • Number of updates: 5
  • Update frequency: every 47.4 days
  • Top authors: davanwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /846 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.27ms] Passed 4 tests

A check of server-side resources used by DM Contact Form 7 DB
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.20 ▼2.68
Dashboard /wp-admin3.48 ▲0.1855.06 ▲3.43
Posts /wp-admin/edit.php3.59 ▲0.2450.96 ▲2.27
Add New Post /wp-admin/post-new.php6.08 ▲0.1998.09 ▼1.94
Media Library /wp-admin/upload.php3.40 ▲0.1741.88 ▲5.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables
wp_cf7db_forms
New WordPress options
wp_cf7db_version
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
wp_cf7db_install_date
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for DM Contact Form 7 DB
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.131.74 ▲0.0341.87 ▼2.85
Dashboard /wp-admin2,218 ▲445.61 ▲0.1187.49 ▼7.7540.11 ▼2.00
Posts /wp-admin/edit.php2,126 ▲262.01 ▼0.0236.49 ▼3.6733.89 ▼5.28
Add New Post /wp-admin/post-new.php1,546 ▲1823.06 ▼0.07585.44 ▼47.4751.99 ▲3.56
Media Library /wp-admin/upload.php1,423 ▲234.17 ▼0.01100.82 ▼6.3641.35 ▼5.45

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
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_cf7db_forms
  • Zombie WordPress options detected upon uninstall: 8 options
    • wp_cf7db_version
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wp_cf7db_install_date
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
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 errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

dm-contact-form-7-db/wp-cf7db.php 77% from 13 tests

"DM Contact Form 7 DB" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dm-contact-form-7-db.php" instead of "wp-cf7db.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin825 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6286349822
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.38
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods48
▷ Static methods510.42%
▷ Public methods4185.42%
▷ Protected methods36.25%
▷ Private methods48.33%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin