90% cf7-confirm-field

Code Review | cf7 Confirm Field

WordPress plugin cf7 Confirm Field scored90%from 54 tests.

About plugin

  • Plugin page: cf7-confirm-field
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: Jun 17, 2015
  • Number of updates: 3
  • Update frequency: every 15.0 days
  • Top authors: mdoff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,098 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by cf7 Confirm Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.38 ▲3.10
Dashboard /wp-admin3.31 ▲0.0146.22 ▼2.92
Posts /wp-admin/edit.php3.36 ▲0.0046.37 ▼0.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.47 ▼12.26
Media Library /wp-admin/upload.php3.24 ▲0.0033.99 ▲1.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for cf7 Confirm Field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.13 ▼1.241.75 ▼0.5343.30 ▼1.81
Dashboard /wp-admin2,200 ▲455.81 ▲0.13107.06 ▼3.4938.78 ▼5.23
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0133.25 ▼4.3434.92 ▼0.79
Add New Post /wp-admin/post-new.php1,542 ▲2818.30 ▲0.69625.16 ▼48.4652.79 ▲1.15
Media Library /wp-admin/upload.php1,388 ▲94.26 ▲0.0597.19 ▼3.4343.95 ▼0.21

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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

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
2 plugin tags: contact-form, cf7

cf7-confirm-field/cf-confirm-field.php 92% from 13 tests

"cf7 Confirm Field" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-confirm-field.php" instead of "cf-confirm-field.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12827

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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