67% multiple-carts-for-woo-free-by-wp-masters

Code Review | Multiple Carts, Persistent Carts, Abandoned Carts, MultiVendors for Woo - Free by WP Masters

WordPress plugin Multiple Carts, Persistent Carts, Abandoned Carts, MultiVendors for Woo - Free by WP Masters scored67%from 54 tests.

About plugin

  • Plugin page: multiple-carts-fo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Jul 24, 2023
  • Number of updates: 14
  • Update frequency: every 26.9 days
  • Top authors: wpmasterscom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,004 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.43ms] Passed 4 tests

Server-side resources used by Multiple Carts, Persistent Carts, Abandoned Carts, MultiVendors for Woo - Free by WP Masters
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2547.98 ▲7.97
Dashboard /wp-admin3.55 ▲0.2546.46 ▼1.55
Posts /wp-admin/edit.php3.67 ▲0.3146.90 ▲3.72
Add New Post /wp-admin/post-new.php6.16 ▲0.2786.49 ▼7.26
Media Library /wp-admin/upload.php3.48 ▲0.2537.87 ▲3.39
Add New /wp-admin/post-new.php?post_type=carts3.5747.47
Add New /wp-admin/post-new.php?post_type=suppliers3.5244.45
All Suppliers /wp-admin/edit.php?post_type=suppliers3.5247.03
All Carts /wp-admin/edit.php?post_type=carts3.5233.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: 1 new table, 6 new options
New tables
wp_vendors_carts
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Carts, Persistent Carts, Abandoned Carts, MultiVendors for Woo - Free by WP Masters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,035 ▲30016.10 ▲1.726.17 ▲4.3234.44 ▼13.76
Dashboard /wp-admin2,278 ▲907.43 ▲2.55124.83 ▲14.8041.79 ▼3.65
Posts /wp-admin/edit.php2,173 ▲844.20 ▲2.1947.36 ▲9.9044.44 ▲10.73
Add New Post /wp-admin/post-new.php1,606 ▲8623.00 ▼0.14700.71 ▲22.8346.24 ▼3.67
Media Library /wp-admin/upload.php1,469 ▲816.58 ▲2.38107.77 ▲9.7643.44 ▲1.35
Add New /wp-admin/post-new.php?post_type=carts1,5634.5167.4947.30
Add New /wp-admin/post-new.php?post_type=suppliers1,5124.5356.8836.10
All Suppliers /wp-admin/edit.php?post_type=suppliers1,1454.0543.8635.56
All Carts /wp-admin/edit.php?post_type=carts1,1504.0044.4039.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_vendors_carts
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/admin/supplier_product_metabox.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_type() on null in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/ajax/variations_options.php:2
    • > PHP Notice
      Undefined variable: product in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/ajax/variations_options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/admin/meta_data_carts.php:1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/mail/remind_carts.php on line 88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/mail/remind_carts.php:94
    • > PHP Notice
      Undefined variable: suppliers in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/admin/supplier_product_metabox.php on line 15
    • > PHP Notice
      Trying to get property 'cart_items' of non-object in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/mail/remind_carts.php on line 88
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/admin/supplier_product_metabox.php on line 15
    • > PHP Notice
      Undefined variable: cart in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/mail/remind_carts.php on line 88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/multiple-carts-for-woo-free-by-wp-masters/templates/admin/create_order_metabox.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt might help

multiple-carts-for-woo-free-by-wp-masters/wpm-multicart.php 69% from 13 tests

The entry point to "Multiple Carts, Persistent Carts, Abandoned Carts, MultiVendors for Woo - Free by WP Masters" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 92 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("multiple-carts-for-woo-free-by-wp-masters.php" instead of "wpm-multicart.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected11,668 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP81592091,147
CSS31625917
JavaScript37452

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity69.50
▷ Minimum class complexity4.00
▷ Maximum class complexity135.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods3296.97%
▷ Protected methods13.03%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected