78% cart-for-woocommerce

Code Review | Sliding WooCommerce Cart by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster

WordPress plugin Sliding WooCommerce Cart by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster scored78%from 54 tests.

About plugin

  • Plugin page: cart-for-woocommerce
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Nov 23, 2023
  • Number of updates: 38
  • Update frequency: every 7.6 days
  • Top authors: amans2k (92.11%)teamwoofunnels (10.53%)

Code review

54 tests

User reviews

30 reviews

Install metrics

7,000+ active /31,981 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼4.67ms] Passed 4 tests

An overview of server-side resources used by Sliding WooCommerce Cart by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.96 ▲0.88
Dashboard /wp-admin3.37 ▲0.0645.50 ▼5.88
Posts /wp-admin/edit.php3.48 ▲0.1248.87 ▼1.01
Add New Post /wp-admin/post-new.php5.95 ▲0.0582.80 ▼11.74
Media Library /wp-admin/upload.php3.29 ▲0.0536.12 ▼0.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Sliding WooCommerce Cart by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1814.67 ▲0.501.68 ▼0.1640.70 ▼4.04
Dashboard /wp-admin2,204 ▲275.52 ▼0.0391.41 ▼9.7341.74 ▼5.53
Posts /wp-admin/edit.php2,116 ▲161.96 ▼0.0441.11 ▼2.9938.43 ▲4.45
Add New Post /wp-admin/post-new.php1,541 ▲523.55 ▲0.17674.48 ▼1.9857.51 ▲4.00
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.06121.33 ▲7.8042.50 ▼4.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cart-for-woocommerce/templates/cart/placeholder.php
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/wooProductBundle.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/freeshipping.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/tablerate.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/paymentpluginstripe.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/wpml-multicurrency.php:57
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/shoptimizer.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/wcstripe.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/allproductsubscriptions.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/wcrewardpoints.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'FKCart\\Compatibilities\\Compatibility' not found in wp-content/plugins/cart-for-woocommerce/compatibilities/chained.php:23

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt might help

cart-for-woocommerce/plugin.php 92% from 13 tests

The primary PHP file in "Sliding WooCommerce Cart by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster" version 1.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cart-for-woocommerce.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin4,442 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP698441,2244,398
CSS20030
SVG20110
JavaScript4004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces6
Interfaces0
Traits1
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes13.12%
Methods227
▷ Static methods4921.59%
▷ Public methods20992.07%
▷ Protected methods125.29%
▷ Private methods62.64%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/dummy/5.png4.14KB2.11KB▼ 48.89%
admin/assets/img/dummy/2.png4.15KB1.99KB▼ 52.21%
admin/assets/img/dummy/4.png3.53KB1.76KB▼ 50.03%
admin/assets/img/dummy/1.png6.44KB2.92KB▼ 54.63%
admin/assets/img/dummy/3.png6.26KB2.93KB▼ 53.21%