89% checkout-field-customizer

Code Review | Checkout Field Customizer

WordPress plugin Checkout Field Customizer scored89%from 54 tests.

About plugin

  • Plugin page: checkout-field-cu...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jun 13, 2022
  • Number of updates: 5
  • Update frequency: every 68.2 days
  • Top authors: ok9xnirab (60%)istiaqnirab (40%)springdevs (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.43ms] Passed 4 tests

Analyzing server-side resources used by Checkout Field Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1937.68 ▼5.27
Dashboard /wp-admin3.47 ▲0.1747.43 ▼0.94
Posts /wp-admin/edit.php3.59 ▲0.2350.80 ▲5.90
Add New Post /wp-admin/post-new.php6.07 ▲0.1898.78 ▲6.12
Media Library /wp-admin/upload.php3.40 ▲0.1639.39 ▲6.01
Checkout Fields /wp-admin/admin.php?page=cfc-admin3.3631.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 13 new options
New WordPress options
cfc_order_fields
cfc_shipping_fields
can_compress_scripts
cfc_default_shipping_fields
cfc_default_order_fields
db_upgraded
widget_recent-comments
widget_recent-posts
cfc_billing_fields
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Checkout Field Customizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.61 ▼0.461.86 ▲0.0446.59 ▲1.93
Dashboard /wp-admin2,209 ▲244.85 ▼1.06103.51 ▼5.2240.57 ▼6.40
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0140.81 ▲4.0735.00 ▲0.88
Add New Post /wp-admin/post-new.php1,542 ▲2318.20 ▼5.32610.24 ▼69.1459.67 ▲7.08
Media Library /wp-admin/upload.php1,385 ▼04.26 ▲0.0299.09 ▼0.4642.74 ▼3.93
Checkout Fields /wp-admin/admin.php?page=cfc-admin9913.7199.8431.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 13 options in the database
    • db_upgraded
    • cfc_default_shipping_fields
    • can_compress_scripts
    • cfc_shipping_fields
    • widget_recent-posts
    • cfc_default_billing_fields
    • cfc_default_order_fields
    • widget_recent-comments
    • cfc_billing_fields
    • theysaidso_admin_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Checkout Field Lists), #2 (Create custom field), #3 (Create custom field)
You can look at the official readme.txt

checkout-field-customizer/checkout-field-customizer.php 85% from 13 tests

"Checkout Field Customizer" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,461 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP253065981,454
JSON1005
CSS1001
JavaScript1011

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity15.41
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods91
▷ Static methods1920.88%
▷ Public methods8694.51%
▷ Protected methods00.00%
▷ Private methods55.49%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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 images were found in this plugin