84% multiple-products-to-cart-for-woocommerce

Code Review | Multiple Products to Cart - WooCommerce Product Table

WordPress plugin Multiple Products to Cart - WooCommerce Product Table scored84%from 54 tests.

About plugin

  • Plugin page: multiple-products...
  • Plugin version: 7.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 103
  • Update frequency: every 14.8 days
  • Top authors: webfixlab (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

700+ active /33,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Multiple Products to Cart - WooCommerce Product Table
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.95 ▼4.42
Dashboard /wp-admin3.31 ▼0.0351.43 ▼13.13
Posts /wp-admin/edit.php3.36 ▲0.0143.30 ▼5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.68 ▼13.03
Media Library /wp-admin/upload.php3.24 ▲0.0131.30 ▼2.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 17 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
wmc_redirect
db_upgraded
widget_recent-posts
theysaidso_admin_options
wmc_show_all_select
wmca_show_reset_btn
wmc_show_pagination_text
mpc_show_add_to_cart_button
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Products to Cart - WooCommerce Product Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.31 ▼0.132.42 ▲0.5837.96 ▼5.45
Dashboard /wp-admin2,195 ▲155.53 ▼0.1289.08 ▼0.4938.09 ▼2.18
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1838.98 ▲0.2633.68 ▼0.48
Add New Post /wp-admin/post-new.php1,527 ▲123.22 ▲0.25593.75 ▼18.4158.67 ▲5.56
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.06100.51 ▼2.9242.33 ▼0.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 17 options in the database
    • mpc_show_total_price
    • db_upgraded
    • widget_recent-posts
    • wmca_show_header
    • theysaidso_admin_options
    • wmc_show_products_filter
    • wmc_show_pagination_text
    • widget_recent-comments
    • wmc_redirect
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/assets/php-css/dynamic-styles.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/includes/functions.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/includes/loader.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/templates/listing-list.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'MPCSettings' not found in wp-content/plugins/multiple-products-to-cart-for-woocommerce/templates/admin/template-parts/column-sorting.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'MPCSettings' not found in wp-content/plugins/multiple-products-to-cart-for-woocommerce/templates/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/includes/core-data.php:816
    • > PHP Fatal error
      Uncaught Error: Class 'MPCShortcode' not found in wp-content/plugins/multiple-products-to-cart-for-woocommerce/templates/admin/template-parts/all-tables.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/templates/admin/popup.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/multiple-products-to-cart-for-woocommerce/includes/hooks.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: product table, products table, wc product table, woocommerce table, multiple products...

multiple-products-to-cart-for-woocommerce/multiple-products-to-cart-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Multiple Products to Cart - WooCommerce Product Table" version 7.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
A truly lightweight EASY to use and super FAST WooCommerce product table solution to add multiple products to cart at once.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected12,839 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript48508786,655
PHP157916823,839
CSS35152,286
SVG20259

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity118.50
▷ Minimum class complexity106.00
▷ Maximum class complexity131.00
Average method complexity6.34
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions7097.22%
▷ Anonymous functions22.78%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/check-v.png1.58KB0.71KB▼ 55.16%
assets/images/pro-icon.png0.84KB0.75KB▼ 11.16%