10% wc-checkout-email-validation

Code Review | Checkout email validation for WooCommerce

WordPress plugin Checkout email validation for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wc-checkout-email...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2022
  • Latest release: Nov 7, 2022
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: b4ecommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /258 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/wc-checkout-email-validation/wc-checkout-email-validation.php+25
    Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/wc-checkout-email-validation/wc-checkout-email-validation.php:25
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.35ms] Passed 4 tests

Server-side resources used by Checkout email validation for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.47 ▼3.50
Dashboard /wp-admin3.31 ▲0.0048.29 ▲4.58
Posts /wp-admin/edit.php3.36 ▲0.0048.04 ▲2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.29 ▼1.66
Media Library /wp-admin/upload.php3.23 ▲0.0034.19 ▲1.53

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Checkout email validation for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.561.90 ▼0.0543.28 ▼6.31
Dashboard /wp-admin2,206 ▲185.85 ▼0.04107.24 ▼4.7438.52 ▼3.92
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0340.44 ▲1.5834.78 ▲2.59
Add New Post /wp-admin/post-new.php1,535 ▲1223.34 ▲0.09684.67 ▲44.0756.90 ▼1.70
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0496.48 ▼0.5042.54 ▲0.78

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: email validation, checkout, woocommerce

wc-checkout-email-validation/wc-checkout-email-validation.php 92% from 13 tests

The entry point to "Checkout email validation for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected197 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File31818131
JavaScript118030
PHP1221626
CSS10010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin