90% woo-confirm-customer-email

Code Review | WooCommerce Confirm Customer Email

WordPress plugin WooCommerce Confirm Customer Email scored90%from 54 tests.

About plugin

  • Plugin page: woo-confirm-custo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: excellentwebworld123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by WooCommerce Confirm Customer Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.82 ▼3.70
Dashboard /wp-admin3.33 ▲0.0262.32 ▲6.26
Posts /wp-admin/edit.php3.38 ▲0.0251.38 ▲0.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.73 ▼10.27
Media Library /wp-admin/upload.php3.25 ▲0.0238.63 ▲1.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Confirm Customer Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.071.82 ▼0.2243.51 ▲2.91
Dashboard /wp-admin2,186 ▲125.63 ▲0.0585.94 ▼18.8348.01 ▲3.43
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0238.74 ▲1.5432.54 ▼5.78
Add New Post /wp-admin/post-new.php1,528 ▲222.99 ▼0.15619.82 ▼77.6672.51 ▲21.12
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.00103.86 ▼6.1142.52 ▼3.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: verification email, woocommerce email verification, email verify, email confirmation, email account verification

woo-confirm-customer-email/woocommerce-confirm-customer-email.php 92% from 13 tests

"WooCommerce Confirm Customer Email" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-confirm-customer-email.php" instead of "woocommerce-confirm-customer-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
Good job! No executable or dangerous file extensions detected70 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3321470

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected