78% linear-checkout-for-woo-by-cartimize

Code Review | Linear Checkout for WooCommerce by Cartimize

WordPress plugin Linear Checkout for WooCommerce by Cartimize scored78%from 54 tests.

About plugin

  • Plugin page: linear-checkout-f...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2020
  • Latest release: Apr 20, 2023
  • Number of updates: 47
  • Update frequency: every 18.6 days
  • Top authors: cartimize (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

400+ active /11,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.24ms] Passed 4 tests

An overview of server-side resources used by Linear Checkout for WooCommerce by Cartimize
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.54 ▼3.77
Dashboard /wp-admin3.31 ▲0.0051.53 ▲3.33
Posts /wp-admin/edit.php3.36 ▲0.0046.80 ▲0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.63 ▼13.45
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▲0.17
Cartimize /wp-admin/admin.php?page=cartimize-pro-onboarding3.0024.17
Cartimize /wp-admin/admin.php?page=cartimize-login3.0020.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Linear Checkout for WooCommerce by Cartimize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲24917.39 ▲3.001.55 ▼0.2839.53 ▼7.05
Dashboard /wp-admin2,206 ▲185.90 ▼0.00107.15 ▼10.2338.90 ▼2.93
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0446.51 ▲8.3538.10 ▲2.45
Add New Post /wp-admin/post-new.php1,519 ▼1423.27 ▲0.23712.90 ▲9.5155.88 ▲0.82
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0087.82 ▼10.1742.12 ▼1.51
Cartimize /wp-admin/admin.php?page=cartimize-pro-onboarding280.440.073.83
Cartimize /wp-admin/admin.php?page=cartimize-login280.440.064.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 86× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Core\\ActionCore' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Actions/LogInAction.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Compatibility\\Core' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Compatibility/Plugins/YITHWooCommerceCheckoutManager.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Compatibility\\Core' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Compatibility/Plugins/GiftMessageWooCommerce.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Compatibility\\Core' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Compatibility/Themes/BeaverBuilder.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Compatibility\\Core' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Compatibility/Themes/Divi.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/linear-checkout-for-woo-by-cartimize/templates/Admin/cartimize-deactivation.php:80
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Compatibility\\Core' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Compatibility/Themes/Kidz.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Core\\ActionCore' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Stats/Actions/SendDeactivationReport.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Cartimize\\Core\\ActionCore' not found in wp-content/plugins/linear-checkout-for-woo-by-cartimize/includes/Actions/UpdatePaymentMethodAction.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linear-checkout-for-woo-by-cartimize/resources/php/template-hooks.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=cartimize-pro-onboarding
    • > Network (severe)
    wp-admin/admin.php?page=cartimize-pro-onboarding - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=cartimize-login
    • > Network (severe)
    wp-admin/admin.php?page=cartimize-login - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: conversion, checkout, optimization, woocommerce

linear-checkout-for-woo-by-cartimize/linear-checkout-woo-cartimize.php 77% from 13 tests

The main PHP file in "Linear Checkout for WooCommerce by Cartimize" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.5")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("linear-checkout-for-woo-by-cartimize.php" instead of "linear-checkout-woo-cartimize.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected17,510 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP1272,2381,2959,259
CSS51,4793827,762
JavaScript68037488
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces16
Interfaces0
Traits0
Classes107
▷ Abstract classes54.67%
▷ Concrete classes10295.33%
▷ Final classes00.00%
Methods594
▷ Static methods488.08%
▷ Public methods56895.62%
▷ Protected methods10.17%
▷ Private methods254.21%
Functions138
▷ Named functions11986.23%
▷ Anonymous functions1913.77%
Constants29
▷ Global constants29100.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