84% checkout-manager

Code Review | Checkout Manager for Woocommerce

WordPress plugin Checkout Manager for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: checkout-manager
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2022
  • Latest release: Mar 22, 2023
  • Number of updates: 21
  • Update frequency: every 17.1 days
  • Top authors: AL Imran Akash (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /378 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▲1.53ms] Passed 4 tests

An overview of server-side resources used by Checkout Manager for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.40 ▲5.56
Dashboard /wp-admin3.57 ▲0.2752.15 ▲1.15
Posts /wp-admin/edit.php3.62 ▲0.2648.47 ▼3.41
Add New Post /wp-admin/post-new.php6.11 ▲0.2298.99 ▲2.81
Media Library /wp-admin/upload.php3.43 ▲0.2039.25 ▲7.11

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

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

Browser metrics Passed 4 tests

Checkout Manager for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.56 ▼0.811.66 ▼0.1344.05 ▼3.77
Dashboard /wp-admin2,202 ▲145.83 ▲0.71114.04 ▼3.5488.49 ▲46.87
Posts /wp-admin/edit.php2,103 ▲142.01 ▼0.0136.44 ▼0.6231.40 ▼0.73
Add New Post /wp-admin/post-new.php1,533 ▼423.10 ▼0.14763.26 ▲111.9658.62 ▲2.29
Media Library /wp-admin/upload.php1,402 ▲204.25 ▲0.02115.31 ▲17.6045.98 ▲3.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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 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
The following issues need your attention
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/checkout-manager/views/admin/checkout/shipping-fields.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/checkout-manager/views/admin/settings.php:2
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/checkout-manager/views/front/checkout/custom-fields.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/checkout-manager/views/email/email-fields.php:8
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/checkout-manager/views/email/email-fields.php on line 4
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/checkout-manager/views/front/checkout/custom-fields.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/checkout-manager/views/admin/checkout/billing-fields.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/checkout-manager/views/front/checkout/custom-fields.php:8
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/checkout-manager/views/admin/checkout/billing-fields.php on line 2
    • > PHP Warning
      extract() expects parameter 1 to be array, null given in wp-content/plugins/checkout-manager/views/email/email-fields.php on line 2

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce custom checkout fields, checkout field customizer, checkout field editor, woocommerce checkout manager, woocommerce checkout field editor...

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

The main PHP file in "Checkout Manager for Woocommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,269 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS692782,130
PHP304135662,098
JavaScript61881711,020
JSON21021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.12
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods102
▷ Static methods1211.76%
▷ Public methods8280.39%
▷ Protected methods00.00%
▷ Private methods2019.61%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants12
▷ Global constants12100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png1.45KB1.24KB▼ 14.81%