84% emails-verification-for-woocommerce

Code Review | Email Verification for WooCommerce

WordPress plugin Email Verification for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: emails-verificati...
  • Plugin version: 2.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Oct 22, 2023
  • Number of updates: 116
  • Update frequency: every 17.0 days
  • Top authors: wpcodefactory (58.62%)algoritmika (42.24%)

Code review

54 tests

User reviews

41 reviews

Install metrics

7,000+ active /179,285 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.26ms] Passed 4 tests

Server-side resources used by Email Verification for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.08 ▼1.25
Dashboard /wp-admin3.33 ▲0.0346.21 ▼4.26
Posts /wp-admin/edit.php3.44 ▲0.0944.50 ▼1.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.70 ▼13.92
Media Library /wp-admin/upload.php3.25 ▲0.0234.05 ▲0.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Email Verification for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.021.94 ▲0.4441.56 ▲0.12
Dashboard /wp-admin2,195 ▲155.61 ▲0.0383.93 ▼3.8138.19 ▼3.74
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0733.90 ▼3.2435.64 ▲1.91
Add New Post /wp-admin/post-new.php1,526 ▼923.11 ▲5.02684.93 ▲38.4261.26 ▼13.73
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0493.25 ▼1.5841.10 ▼0.95

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/emails-verification-for-woocommerce/includes/class-alg-wc-ev-verification-info-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Hashids\\Math\\MathInterface' not found in wp-content/plugins/emails-verification-for-woocommerce/vendor/hashids/hashids/src/Math/Bc.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Hashids\\Math\\MathInterface' not found in wp-content/plugins/emails-verification-for-woocommerce/vendor/hashids/hashids/src/Math/Gmp.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Hashids\\HashidsInterface' not found in wp-content/plugins/emails-verification-for-woocommerce/vendor/hashids/hashids/src/Hashids.php:19

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: woo commerce, verification, email verification, woocommerce, email

emails-verification-for-woocommerce/email-verification-for-woocommerce.php 92% from 13 tests

The main PHP script in "Email Verification for WooCommerce" version 2.6.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("emails-verification-for-woocommerce.php" instead of "email-verification-for-woocommerce.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
Everything looks great! No dangerous files found in this plugin7,293 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP428123,0655,843
PO File24745741,233
JSON400195
XML10022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.06
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces2
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes13.23%
Methods310
▷ Static methods196.13%
▷ Public methods28892.90%
▷ Protected methods206.45%
▷ Private methods20.65%
Functions34
▷ Named functions2161.76%
▷ Anonymous functions1338.24%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There are no PNG files in this plugin