84% cf7-datalist

Code Review | Contact Form 7 - Datalist

WordPress plugin Contact Form 7 - Datalist scored84%from 54 tests.

About plugin

  • Plugin page: cf7-datalist
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2018
  • Latest release: Feb 16, 2019
  • Number of updates: 17
  • Update frequency: every 24.9 days
  • Top authors: sgc2000 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.91ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 - Datalist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.76 ▼1.38
Dashboard /wp-admin3.31 ▼0.0444.67 ▼20.60
Posts /wp-admin/edit.php3.36 ▲0.0044.68 ▲1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.04 ▼24.98
Media Library /wp-admin/upload.php3.23 ▲0.0032.48 ▼0.69

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 - Datalist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.43 ▲0.151.74 ▼0.1149.22 ▲6.15
Dashboard /wp-admin2,195 ▲185.57 ▼0.1884.20 ▼2.6138.13 ▲4.33
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0033.49 ▼5.6536.76 ▼2.07
Add New Post /wp-admin/post-new.php1,528 ▼023.21 ▼0.04664.14 ▲26.1254.03 ▲6.69
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0294.66 ▼0.0744.36 ▲2.17

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cf7-datalist/contact-form-7-datalist.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: form, contact, html5, contact form, datalist

cf7-datalist/contact-form-7-datalist.php 92% from 13 tests

The main file in "Contact Form 7 - Datalist" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-datalist.php" instead of "contact-form-7-datalist.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
No dangerous file extensions were detected135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15136135

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected