93% woo-update-cart-on-quantity-change

Code Review | WooCommerce Update Cart On Quantity Change

WordPress plugin WooCommerce Update Cart On Quantity Change scored 93% from 54 tests.

About plugin

  • Plugin page: woo-update-cart-o...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Aug 26, 2016
  • Latest release: Sep 2, 2016
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: webnware (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 4,685 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.03MB] [CPU: ▼291.22ms] Passed 4 tests

Server-side resources used by WooCommerce Update Cart On Quantity Change
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0548.04 ▼6.62
Dashboard /wp-admin3.41 ▲0.0031.78 ▼0.50
Posts /wp-admin/edit.php3.64 ▲0.0040.02 ▲1.98
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.18 ▼1,158.31
Media Library /wp-admin/upload.php3.30 ▲0.0025.86 ▲0.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Update Cart On Quantity Change
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,181 ▼57315.69 ▼0.270.39 ▼6.4330.50 ▲27.73
Dashboard /wp-admin2,885 ▲246.03 ▼0.14120.08 ▼15.32155.41 ▼8.99
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0064.98 ▼1.03135.69 ▼10.02
Add New Post /wp-admin/post-new.php1,752 ▲8621.40 ▲0.59416.96 ▼20.04157.85 ▼4.70
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.02141.49 ▲4.69184.22 ▼5.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-update-cart-on-quantity-change/woo-update-cart-on-quantity-change.php

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (wcc-screenshot-1) image required
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

woo-update-cart-on-quantity-change/woo-update-cart-on-quantity-change.php 92% from 13 tests

The principal PHP file in "WooCommerce Update Cart On Quantity Change" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected28 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251215
JavaScript13013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin