87% checkout-manager-for-woocommerce

Code Review | Checkout Manager For Woocommerce

WordPress plugin Checkout Manager For Woocommerce scored 87% from 54 tests.

About plugin

  • Plugin page: checkout-manager-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 5.8.1
  • First release: May 25, 2016
  • Latest release: Feb 3, 2020
  • Number of updates: 92
  • Update frequency: every 14.7 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 20,697 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼145.97ms] Passed 4 tests

An overview of server-side resources used by Checkout Manager For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1131.05 ▲6.71
Dashboard /wp-admin3.18 ▲0.1136.21 ▼5.51
Posts /wp-admin/edit.php3.23 ▲0.1232.79 ▼3.89
Add New Post /wp-admin/post-new.php5.54 ▲0.1070.63 ▼573.77
Media Library /wp-admin/upload.php3.12 ▲0.1125.69 ▼0.69

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Checkout Manager For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲2215.57 ▼0.415.75 ▲0.2878.06 ▲1.32
Dashboard /wp-admin2,934 ▲386.11 ▼0.07115.68 ▼14.28166.07 ▼7.90
Posts /wp-admin/edit.php2,747 ▲73.36 ▼0.0163.55 ▲3.44142.19 ▲3.55
Add New Post /wp-admin/post-new.php3,740 ▼117.99 ▼1.05404.03 ▼18.81157.11 ▼16.60
Media Library /wp-admin/upload.php1,759 ▲45.53 ▲0.01143.87 ▲1.72185.22 ▼1.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_shipping.php
    • > /wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_additional.php
    • > /wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php
  • 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_shipping.php on line 19
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 4
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 44
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_additional.php on line 49
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 40
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_shipping.php on line 63
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_shipping.php on line 60
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 13
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 63
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/checkout-manager-for-woocommerce/templates/admin/add_field_form_billing.php on line 66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
The official readme.txt is a good inspiration

checkout-manager-for-woocommerce/plugin.php 62% from 13 tests

The entry point to "Checkout Manager For Woocommerce" version 1.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("checkout-manager-for-woocommerce.php" instead of "plugin.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,593 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP121,068661,593

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 108)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity113.00
▷ Minimum class complexity113.00
▷ Maximum class complexity113.00
Average method complexity23.40
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-wp.png1.20KB0.57KB▼ 52.72%
assets/img/image-frame-odd.png0.90KB0.81KB▼ 10.31%
assets/img/head-arrow.png1.68KB1.43KB▼ 14.83%
assets/img/checkout-mamnger-thrd-img.png21.83KB5.92KB▼ 72.88%
assets/img/premium-btn.png5.72KB5.28KB▼ 7.69%