90% core-checkout-fields-for-woocommerce

Code Review | Checkout Field Editor and Customizer for WooCommerce

WordPress plugin Checkout Field Editor and Customizer for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: core-checkout-fie...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: May 29, 2018
  • Latest release: Nov 19, 2023
  • Number of updates: 11
  • Update frequency: every 182.1 days
  • Top authors: algoritmika (63.64%)wpcodefactory (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests

An overview of server-side resources used by Checkout Field Editor and Customizer for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.39 ▼3.60
Dashboard /wp-admin3.32 ▲0.0245.79 ▼5.25
Posts /wp-admin/edit.php3.37 ▲0.0150.55 ▲3.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.67 ▼1.25
Media Library /wp-admin/upload.php3.24 ▲0.0132.26 ▲0.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checkout Field Editor and Customizer for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2813.97 ▼0.221.52 ▼0.0538.35 ▼0.86
Dashboard /wp-admin2,192 ▲185.54 ▼0.0489.71 ▼6.0840.44 ▼6.48
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0638.58 ▼1.5135.53 ▼2.71
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.01596.26 ▼116.0953.18 ▲4.38
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.03101.36 ▲3.2544.05 ▲0.58

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: checkout, field, core, woocommerce, woo commerce

core-checkout-fields-for-woocommerce/core-checkout-fields-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Checkout Field Editor and Customizer for WooCommerce" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Customize the core (i.e. standard) WooCommerce checkout fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected645 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP793347645

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods39
▷ Static methods12.56%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin