94% move-email-to-top-of-woocommerce-checkout

Code Review | Move Email to Top of WooCommerce Checkout

WordPress plugin Move Email to Top of WooCommerce Checkout scored 94% from 54 tests.

About plugin

  • Plugin page: move-email-to-top...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.6
  • WordPress version: 5.8.1
  • First release: Jul 6, 2018
  • Latest release: Jul 11, 2018
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: caitlinchou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 346 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Move Email to Top of WooCommerce Checkout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.37 ▲11.24
Dashboard /wp-admin3.06 ▲0.0137.14 ▼6.37
Posts /wp-admin/edit.php3.11 ▲0.0145.17 ▼7.96
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.25 ▼562.53
Media Library /wp-admin/upload.php3.01 ▲0.0031.57 ▲2.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Move Email to Top of WooCommerce Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.77 ▼0.078.07 ▼0.3446.32 ▼8.58
Dashboard /wp-admin2,967 ▲365.88 ▼0.04133.85 ▼23.12107.46 ▼14.94
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0168.18 ▲3.0887.44 ▼11.76
Add New Post /wp-admin/post-new.php1,672 ▼1118.76 ▲1.96359.57 ▼4.97105.96 ▲3.35
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.06139.94 ▲3.25120.87 ▼1.82

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 completely, with no 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
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/move-email-to-top-of-woocommerce-checkout/move-email-to-top.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: email checkout field, checkout field, move email to front, move email, move email to top...

move-email-to-top-of-woocommerce-checkout/move-email-to-top.php 92% from 13 tests

The entry point to "Move Email to Top of WooCommerce Checkout" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("move-email-to-top-of-woocommerce-checkout.php" instead of "move-email-to-top.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
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12106

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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
No PNG images were found in this plugin