89% product-bundles-minmax-items-for-woocommerce

Code Review | Product Bundles - Min/Max Items

WordPress plugin Product Bundles - Min/Max Items scored89%from 54 tests.

About plugin

  • Plugin page: product-bundles-m...
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 6.3.1
  • First release: Jan 31, 2020
  • Latest release: Oct 13, 2020
  • Number of updates: 12
  • Update frequency: every 21.3 days
  • Top authors: franticpsyx (66.67%)SomewhereWarm (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /6,632 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.07ms] Passed 4 tests

Server-side resources used by Product Bundles - Min/Max Items
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.67 ▼5.43
Dashboard /wp-admin3.40 ▲0.1046.23 ▼8.80
Posts /wp-admin/edit.php3.52 ▲0.1648.90 ▼0.82
Add New Post /wp-admin/post-new.php5.98 ▲0.1083.53 ▼5.24
Media Library /wp-admin/upload.php3.32 ▲0.1036.38 ▼0.04

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Product Bundles - Min/Max Items
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.47 ▲0.191.81 ▲0.0242.72 ▼3.55
Dashboard /wp-admin2,215 ▲275.79 ▲0.9498.00 ▼16.6940.88 ▼8.50
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0436.74 ▼0.8034.63 ▼2.15
Add New Post /wp-admin/post-new.php1,558 ▲3818.44 ▼4.64628.54 ▼46.7672.71 ▲18.00
Media Library /wp-admin/upload.php1,400 ▲94.23 ▼0.0495.77 ▼2.3141.35 ▲0.33

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

product-bundles-minmax-items-for-woocommerce/product-bundles-min-max-items-for-woocommerce.php 77% from 13 tests

Analyzing the main PHP file in "Product Bundles - Min/Max Items" version 1.4.3
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-bundles-minmax-items-for-woocommerce.php" instead of "product-bundles-min-max-items-for-woocommerce.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 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
There were no executable files found in this plugin505 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1169165385
JavaScript2424102
CSS22218

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity97.00
▷ Minimum class complexity97.00
▷ Maximum class complexity97.00
Average method complexity6.05
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin