84% woo-update-cart-qty-dynamic

Code Review | Dynamic Cart Quantity for WooCommerce

WordPress plugin Dynamic Cart Quantity for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-update-cart-q...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Oct 28, 2018
  • Latest release: Jul 11, 2022
  • Number of updates: 17
  • Update frequency: every 80.5 days
  • Top authors: mardroid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,233 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.87ms] Passed 4 tests

A check of server-side resources used by Dynamic Cart Quantity for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.69 ▼0.41
Dashboard /wp-admin3.31 ▲0.0150.73 ▼1.58
Posts /wp-admin/edit.php3.36 ▲0.0154.14 ▲3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.85 ▼18.31
Media Library /wp-admin/upload.php3.23 ▲0.0138.14 ▲0.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Cart Quantity for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,784 ▲2314.22 ▼0.131.14 ▼0.6948.12 ▼1.54
Dashboard /wp-admin2,192 ▲125.51 ▼0.0983.80 ▼10.7438.59 ▲1.35
Posts /wp-admin/edit.php2,103 ▲242.04 ▲0.0240.03 ▲0.4839.43 ▲1.64
Add New Post /wp-admin/post-new.php1,529 ▲123.33 ▲0.28650.62 ▼35.7759.68 ▼4.47
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.01103.33 ▼12.6346.21 ▼6.55

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-update-cart-qty-dynamic/woo_dynamic_cart.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: cart, woo, woocommerce, dynamic quantity, quantity...

woo-update-cart-qty-dynamic/woo_dynamic_cart.php 85% from 13 tests

The main file in "Dynamic Cart Quantity for WooCommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-update-cart-qty-dynamic.php" instead of "woo_dynamic_cart.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172931

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin