89% wc-min-max-quantities

Code Review | WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce

WordPress plugin WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-min-max-quanti...
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 7, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 38
  • Update frequency: every 49.1 days
  • Top authors: manikmist09 (68.42%)pluginever (23.68%)manzurahammed (10.53%)B-07 (5.26%)

Code review

54 tests

User reviews

36 reviews

Install metrics

5,000+ active /47,499 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.68ms] Passed 4 tests

An overview of server-side resources used by WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2438.60 ▼2.16
Dashboard /wp-admin3.57 ▲0.2245.06 ▼15.33
Posts /wp-admin/edit.php3.62 ▲0.2647.81 ▲1.03
Add New Post /wp-admin/post-new.php6.08 ▲0.1992.62 ▲2.72
Media Library /wp-admin/upload.php3.43 ▲0.1933.55 ▲1.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 15 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
wcmmq_min_cart_qty
wcmmq_min_qty
wc_min_max_quantities_install_date
wcmmq_step
wcmmq_max_cart_qty
wcmmq_min_cart_total
widget_theysaidso_widget
wcmmq_max_cart_total
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1114.04 ▼0.311.59 ▼0.4537.85 ▼9.57
Dashboard /wp-admin2,200 ▲235.61 ▲0.0593.44 ▼7.8641.79 ▼2.55
Posts /wp-admin/edit.php2,108 ▲51.96 ▼0.0441.36 ▼0.6639.43 ▲0.38
Add New Post /wp-admin/post-new.php1,534 ▲723.21 ▼0.03672.61 ▲63.5351.82 ▲1.23
Media Library /wp-admin/upload.php1,411 ▲84.30 ▲0.1098.16 ▼1.8147.57 ▲4.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 15 options in the database
    • widget_recent-comments
    • db_upgraded
    • wc_min_max_quantities_version
    • widget_recent-posts
    • theysaidso_admin_options
    • wcmmq_max_cart_qty
    • wcmmq_max_qty
    • wcmmq_min_cart_qty
    • widget_theysaidso_widget
    • wcmmq_min_qty
    • ...

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (34 tag instead of maximum 10)
Please take inspiration from this readme.txt

wc-min-max-quantities/wc-min-max-quantities.php 92% from 13 tests

The principal PHP file in "WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce" v. 1.1.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,993 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP174411,5081,992
CSS1001

PHP code Passed 2 tests

Analyzing 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.48
Average class complexity24.92
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods166
▷ Static methods2213.25%
▷ Public methods15291.57%
▷ Protected methods137.83%
▷ Private methods10.60%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin