83% email-domain-validator-for-woocommerce

Code Review | Email Validator for WooCommerce

WordPress plugin Email Validator for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: email-domain-vali...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Nov 18, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: homescript (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.49ms] Passed 4 tests

A check of server-side resources used by Email Validator for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.08 ▼2.59
Dashboard /wp-admin3.37 ▲0.0347.14 ▼16.38
Posts /wp-admin/edit.php3.42 ▲0.0743.03 ▼6.56
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.28 ▼8.42
Media Library /wp-admin/upload.php3.30 ▲0.0739.19 ▲4.29
Email Domain Validator for WooCommerce /wp-admin/admin.php?page=hs_ev3.2427.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Email Validator for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲9213.31 ▼1.061.91 ▲0.0044.40 ▲0.33
Dashboard /wp-admin2,247 ▲625.85 ▼0.02109.54 ▼9.0074.49 ▲31.64
Posts /wp-admin/edit.php2,130 ▲382.04 ▼0.0236.81 ▼1.8733.42 ▲0.01
Add New Post /wp-admin/post-new.php1,706 ▲18722.78 ▼0.46732.19 ▲64.9429.09 ▼27.14
Media Library /wp-admin/upload.php1,423 ▲354.25 ▼0.0398.39 ▼0.6545.73 ▲0.04
Email Domain Validator for WooCommerce /wp-admin/admin.php?page=hs_ev6891.147.3915.67

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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=hs_ev
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("#")
  • Screenshots: Please add an image for screenshot #3 (test message page)
You can take inspiration from this readme.txt

email-domain-validator-for-woocommerce/hs-ev.php 85% from 13 tests

"Email Validator for WooCommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("email-domain-validator-for-woocommerce.php" instead of "hs-ev.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin419 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27073321
PO File1121343
JavaScript132733
Markdown18019
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.14KB0.57KB▼ 73.25%