72% checkoutx

Code Review | Checkout X for WooCommerce

WordPress plugin Checkout X for WooCommerce scored72%from 54 tests.

About plugin

  • Plugin page: checkoutx
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Jan 5, 2022
  • Number of updates: 18
  • Update frequency: every 23.3 days
  • Top authors: checkoutx (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /12,764 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼13.90ms] Passed 4 tests

Server-side resources used by Checkout X for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.08 ▼0.3819.02 ▼22.23
Dashboard /wp-admin3.55 ▲0.2045.89 ▼17.52
Posts /wp-admin/edit.php3.60 ▲0.2449.31 ▲0.28
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.75 ▼16.12
Media Library /wp-admin/upload.php3.41 ▲0.1840.59 ▲3.20
General /wp-admin/admin.php?page=checkout-x-settings3.3731.54
Help center /wp-admin/admin.php?page=checkout-x-help-center3.3531.78

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Checkout X for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,510 ▼26114.46 ▼0.300.53 ▼1.6716.72 ▼28.24
Dashboard /wp-admin2,260 ▲754.89 ▼0.15111.40 ▲8.8739.82 ▼4.95
Posts /wp-admin/edit.php2,147 ▲582.01 ▼0.0439.59 ▼1.6834.62 ▲0.06
Add New Post /wp-admin/post-new.php1,549 ▲723.40 ▲5.14656.18 ▲34.1768.71 ▲14.98
Media Library /wp-admin/upload.php1,442 ▲604.18 ▼0.0499.23 ▼1.3943.87 ▲2.89
General /wp-admin/admin.php?page=checkout-x-settings9112.2127.1332.33
Help center /wp-admin/admin.php?page=checkout-x-help-center6931.536.5825.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=checkout-x-help-center
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/checkoutx/public/partials/checkout-x-public-display.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/checkoutx/admin/partials/general-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/checkoutx/admin/partials/connect-checkout-x.php:19

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


Plugin configuration 86% from 29 tests

readme.txt 94% 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 to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

checkoutx/checkout-x.php 77% from 13 tests

The main PHP file in "Checkout X for WooCommerce" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("checkoutx.php" instead of "checkout-x.php")
  • Description: The description should be shorter than 140 characters (currently 280 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,100 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.42
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods34.00%
▷ Public methods5877.33%
▷ Protected methods00.00%
▷ Private methods1722.67%
▷ Named functions457.14%
▷ Anonymous functions342.86%
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/checkmark.png7.74KB3.29KB▼ 57.49%
assets/images/trending.png1.13KB0.78KB▼ 31.61%
assets/images/growth_icon.png20.54KB6.50KB▼ 68.38%
assets/images/white_checkout_logo.png1.48KB0.75KB▼ 49.24%