78% woocommerce-checkout-manager

Code Review | Checkout Field Manager (Checkout Manager) for WooCommerce

WordPress plugin Checkout Field Manager (Checkout Manager) for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-check...
  • Plugin version: 7.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Nov 14, 2023
  • Number of updates: 799
  • Update frequency: every 4.8 days
  • Top authors: quadlayers (54.94%)Emark (37.17%)visser (7.63%)

Code review

54 tests

User reviews

690 reviews

Install metrics

100,000+ active /4,485,127 total downloads

Benchmarks

Plugin footprint 82% from 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.45MB] [CPU: ▲2.70ms] 75% from 4 tests

Server-side resources used by Checkout Field Manager (Checkout Manager) for WooCommerce
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 741.21ms on /wp-admin/admin.php?page=wc-settings_suggestions)
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4544.22 ▲4.97
Dashboard /wp-admin3.84 ▲0.4950.61 ▼9.89
Posts /wp-admin/edit.php3.85 ▲0.4953.08 ▲9.42
Add New Post /wp-admin/post-new.php6.31 ▲0.4399.50 ▲10.61
Media Library /wp-admin/upload.php3.65 ▲0.4339.22 ▲6.31
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions4.19741.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Field Manager (Checkout Manager) for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲14114.24 ▼0.201.76 ▼0.0644.38 ▼0.14
Dashboard /wp-admin2,315 ▲1375.61 ▼0.1291.19 ▼21.3541.42 ▼4.26
Posts /wp-admin/edit.php2,126 ▲261.97 ▼0.0641.19 ▲5.7636.26 ▼0.94
Add New Post /wp-admin/post-new.php1,550 ▲2423.30 ▲0.21591.22 ▼103.1947.97 ▼6.15
Media Library /wp-admin/upload.php1,425 ▲224.31 ▲0.14102.20 ▲4.6742.42 ▼1.09
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions1,9602.4735.3956.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woocommerce-checkout-manager/woocommerce-checkout-manager.php
  • 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WOOCCM\\Controller\\Field' not found in wp-content/plugins/woocommerce-checkout-manager/lib/controller/class-field-additional.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woocommerce-checkout-manager/lib/view/backend/pages/parts/loop.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WOOCCM\\Model\\Field' not found in wp-content/plugins/woocommerce-checkout-manager/lib/model/class-field-shipping.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function QuadLayers\\WOOCCM\\load_plugin_textdomain() in wp-content/plugins/woocommerce-checkout-manager/lib/class-plugin.php:21
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-checkout-manager/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woocommerce-checkout-manager/lib/view/backend/pages/parts/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WOOCCM\\Model\\Field' not found in wp-content/plugins/woocommerce-checkout-manager/lib/model/class-field-additional.php:12
    • > PHP Fatal error
      Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/woocommerce-checkout-manager/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlugV2.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WOOCCM\\Controller\\Controller' not found in wp-content/plugins/woocommerce-checkout-manager/lib/controller/class-field.php:22
    • > PHP Fatal error
      Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/woocommerce-checkout-manager/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlug.php on line 20

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

woocommerce-checkout-manager/woocommerce-checkout-manager.php 92% from 13 tests

The primary PHP file in "Checkout Field Manager (Checkout Manager) for WooCommerce" version 7.3.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected9,352 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
PHP1031,5682,2207,406
JavaScript652103756
Markdown122700730
JSON100458
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.76
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces15
Interfaces0
Traits3
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes12.08%
Methods356
▷ Static methods8122.75%
▷ Public methods30986.80%
▷ Protected methods215.90%
▷ Private methods267.30%
Functions29
▷ Named functions26.90%
▷ Anonymous functions2793.10%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.15MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/img/admin.png28.04KB29.00KB0.00%
assets/backend/img/fees.png124.68KB128.51KB0.00%