84% contact-form-db-for-enfold

Code Review | Contact Form DB for Enfold

WordPress plugin Contact Form DB for Enfold scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-db-f...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.1.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2018
  • Latest release: Nov 21, 2019
  • Number of updates: 15
  • Update frequency: every 23.3 days
  • Top authors: doctorwp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /2,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.88ms] Passed 4 tests

Server-side resources used by Contact Form DB for Enfold
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.96 ▲3.07
Dashboard /wp-admin3.33 ▲0.0353.36 ▲4.38
Posts /wp-admin/edit.php3.39 ▲0.0351.40 ▼1.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.35 ▼9.39
Media Library /wp-admin/upload.php3.26 ▲0.0340.62 ▲4.53
Enfold Contact Form /wp-admin/options-general.php?page=ecf-db-page3.2235.26

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_ecf
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form DB for Enfold
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.51 ▲0.131.78 ▲0.1143.83 ▲0.99
Dashboard /wp-admin2,210 ▲194.88 ▼1.08115.26 ▲12.8741.98 ▼0.99
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0733.50 ▼6.9434.93 ▼3.23
Add New Post /wp-admin/post-new.php1,517 ▲317.49 ▼0.01687.44 ▲21.7659.77 ▲4.55
Media Library /wp-admin/upload.php1,389 ▲44.16 ▼0.02110.19 ▲8.5048.17 ▲2.72
Enfold Contact Form /wp-admin/options-general.php?page=ecf-db-page7852.0324.6230.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-db-for-enfold/enfold-contact-form.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

contact-form-db-for-enfold/enfold-contact-form.php 92% from 13 tests

"Contact Form DB for Enfold" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-db-for-enfold.php" instead of "enfold-contact-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin132 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32210116
PO File26816

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin