89% wc-checkout-custom-billing-phone-field

Code Review | WC-Checkout-Custom-Billing-Phone-Field

WordPress plugin WC-Checkout-Custom-Billing-Phone-Field scored89%from 54 tests.

About plugin

  • Plugin page: wc-checkout-custo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Jun 16, 2018
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: funkee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,111 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
Install script ran successfully

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

This is a short check of server-side resources used by WC-Checkout-Custom-Billing-Phone-Field
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.00 ▼1.05
Dashboard /wp-admin3.31 ▲0.0151.44 ▼2.85
Posts /wp-admin/edit.php3.36 ▲0.0051.32 ▲2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.74 ▼11.16
Media Library /wp-admin/upload.php3.23 ▲0.0038.97 ▲3.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WC-Checkout-Custom-Billing-Phone-Field
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.51 ▼0.659.28 ▲7.5345.00 ▲1.23
Dashboard /wp-admin2,198 ▲185.61 ▼0.0595.44 ▼1.9342.60 ▼0.84
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0334.61 ▼0.7636.43 ▼1.74
Add New Post /wp-admin/post-new.php1,526 ▼223.29 ▲0.15694.13 ▼2.2051.64 ▼4.48
Media Library /wp-admin/upload.php1,397 ▼34.09 ▼0.03112.93 ▲8.2446.24 ▲1.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Please fix the following attributes: Please take inspiration from this readme.txt

wc-checkout-custom-billing-phone-field/WC-Checkout-Custom-Billing-Phone-Field.php 92% from 13 tests

"WC-Checkout-Custom-Billing-Phone-Field" version 1.0.2'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: It is recommended to name the main PHP file as the plugin slug ("wc-checkout-custom-billing-phone-field.php" instead of "WC-Checkout-Custom-Billing-Phone-Field.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin29 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP161325
JavaScript2174

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin