94% woocommerce-e-mail-login

Code Review | WooCommerce E-mail Login

WordPress plugin WooCommerce E-mail Login scored 94% from 54 tests.

About plugin

  • Plugin page: woocommerce-e-mai...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 5.8.1
  • First release: Dec 2, 2014
  • Latest release: Dec 2, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: MikaelDui (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,470 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by WooCommerce E-mail Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.54 ▲1.63
Dashboard /wp-admin3.06 ▲0.0147.23 ▲1.48
Posts /wp-admin/edit.php3.11 ▼0.0046.00 ▼9.19
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.29 ▼555.41
Media Library /wp-admin/upload.php3.01 ▲0.0033.55 ▼0.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce E-mail Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4216.00 ▲0.3910.61 ▲1.3854.24 ▲6.87
Dashboard /wp-admin2,967 ▲366.08 ▲0.09139.63 ▼15.45107.97 ▼5.44
Posts /wp-admin/edit.php2,736 ▼32.72 ▲0.0169.80 ▲10.0186.59 ▼0.56
Add New Post /wp-admin/post-new.php1,615 ▼6821.49 ▲2.72308.64 ▼87.13101.25 ▼2.69
Media Library /wp-admin/upload.php1,810 ▲35.10 ▲0.06151.98 ▲2.73110.97 ▼4.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-e-mail-login/woocommerce-e-mail-login.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (You can enter your e-mail address as username when you login.)
Please take inspiration from this readme.txt

woocommerce-e-mail-login/woocommerce-e-mail-login.php Passed 13 tests

The main PHP script in "WooCommerce E-mail Login" version 1.0 is automatically included on every request by WordPress
90 characters long description:
Enables you and your customers to login with your e-mail address as well as your username.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12199

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.86KB5.30KB▼ 51.22%