90% woocommerce-email-validation

Code Review | WooCommerce Email Validation

WordPress plugin WooCommerce Email Validation scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-email...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 18, 2013
  • Latest release: Dec 10, 2018
  • Number of updates: 32
  • Update frequency: every 66.3 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /62,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce Email Validation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.44 ▼2.84
Dashboard /wp-admin3.33 ▼0.0249.26 ▼13.00
Posts /wp-admin/edit.php3.38 ▲0.0248.78 ▼12.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.29 ▼20.70
Media Library /wp-admin/upload.php3.25 ▲0.0235.19 ▲1.29

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Email Validation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.09 ▼0.052.11 ▲0.3741.72 ▲1.02
Dashboard /wp-admin2,195 ▲185.53 ▼0.0889.49 ▼4.0937.53 ▼15.42
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0138.10 ▼0.6332.41 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.39675.99 ▼15.4251.08 ▼10.51
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0799.98 ▼5.7741.92 ▼5.46

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: address, woocommerce, checkout, fields, validation...

woocommerce-email-validation/woocommerce-email-validation.php Passed 13 tests

The main PHP file in "WooCommerce Email Validation" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Adds a 'confirm email address' field to the WooCommerce checkout page.

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
Everything looks great! No dangerous files found in this plugin350 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File94670276
PHP3342474

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin