90% auto-cart-update-on-quantity-change

Code Review | Auto Cart Update On Quantity Change

WordPress plugin Auto Cart Update On Quantity Change scored90%from 54 tests.

About plugin

  • Plugin page: auto-cart-update-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Jul 15, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rajdipsinharoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Auto Cart Update On Quantity Change
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.21 ▼6.62
Dashboard /wp-admin3.31 ▲0.0048.19 ▼7.96
Posts /wp-admin/edit.php3.36 ▲0.0051.38 ▲1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.40 ▼1.98
Media Library /wp-admin/upload.php3.24 ▲0.0035.10 ▼1.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Auto Cart Update On Quantity Change
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.11 ▼0.292.29 ▼0.0039.07 ▼0.96
Dashboard /wp-admin2,195 ▲155.55 ▼0.0489.96 ▼7.9140.51 ▼2.61
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0139.30 ▼1.2435.49 ▼0.55
Add New Post /wp-admin/post-new.php1,535 ▼218.52 ▲0.27665.62 ▲57.1871.37 ▲9.29
Media Library /wp-admin/upload.php1,397 ▼04.23 ▲0.01101.60 ▼2.3842.13 ▼5.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: automatically, update, woocommerce, quantity, cart page

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

The main file in "Auto Cart Update On Quantity Change" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0.0")

Code Analysis Passed 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 plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171824

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected