84% contact-form-7-confirm-email-feild

Code Review | Contact Form 7 Confirm Email Field

WordPress plugin Contact Form 7 Confirm Email Field scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-co...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Dec 2, 2015
  • Number of updates: 32
  • Update frequency: every 6.5 days
  • Top authors: vallabh85 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /15,284 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.04MB] [CPU: ▼0.49ms] Passed 4 tests

Analyzing server-side resources used by Contact Form 7 Confirm Email Field
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.15 ▲7.43
Dashboard /wp-admin3.35 ▲0.0563.59 ▲13.82
Posts /wp-admin/edit.php3.40 ▲0.0445.49 ▼2.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.32 ▼8.28
Media Library /wp-admin/upload.php3.28 ▲0.0437.85 ▲1.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 Confirm Email Field
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼0.702.06 ▲0.4043.76 ▲0.97
Dashboard /wp-admin2,206 ▲155.85 ▲0.04112.83 ▲2.5843.60 ▼1.24
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0534.66 ▼6.2434.81 ▼2.26
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▲0.03671.88 ▼0.1364.59 ▲12.08
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0199.06 ▼35.6542.95 ▼9.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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
Even though no errors were found, 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
Almost there! Just fix the following items
  • 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/contact-form-7-confirm-email-feild/contact-form-7-confirm-email.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Confirm Email does not match validation.)
You can take inspiration from this readme.txt

contact-form-7-confirm-email-feild/contact-form-7-confirm-email.php 92% from 13 tests

The principal PHP file in "Contact Form 7 Confirm Email Field" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-7-confirm-email-feild.php" instead of "contact-form-7-confirm-email.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
Everything looks great! No dangerous files found in this plugin191 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15910191

PHP code Passed 2 tests

Analyzing 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.35
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Contact-Form-7-confirm-email-field.png26.43KB9.14KB▼ 65.42%
screenshot-1.png26.43KB9.14KB▼ 65.42%