58% wc-multivendor-marketplace

Code Review | WCFM Marketplace - Best Multivendor Marketplace for WooCommerce

WordPress plugin WCFM Marketplace - Best Multivendor Marketplace for WooCommerce scored58%from 54 tests.

About plugin

  • Plugin page: wc-multivendor-ma...
  • Plugin version: 3.6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Oct 4, 2023
  • Number of updates: 325
  • Update frequency: every 5.8 days
  • Top authors: wclovers (100%)

Code review

54 tests

User reviews

408 reviews

Install metrics

20,000+ active /1,057,403 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲2.85ms] Passed 4 tests

An overview of server-side resources used by WCFM Marketplace - Best Multivendor Marketplace for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1140.85 ▼0.41
Dashboard /wp-admin3.38 ▲0.0853.45 ▲2.34
Posts /wp-admin/edit.php3.44 ▲0.0852.45 ▲6.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0896.63 ▲2.48
Media Library /wp-admin/upload.php3.30 ▲0.0845.33 ▲9.51

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 803 new files
Database: 17 new tables, 10 new options
New tables
wp_wcfm_marketplace_shipping_zone_methods
wp_wcfm_marketplace_orders_meta
wp_wcfm_marketplace_refund_request
wp_wcfm_marketplace_product_multivendor
wp_wcfm_marketplace_reviews_response_meta
wp_wcfm_marketplace_reverse_withdrawal
wp_wcfm_marketplace_shipping_zone_locations
wp_wcfm_marketplace_withdraw_request
wp_wcfm_marketplace_reviews_response
wp_wcfm_marketplace_vendor_ledger
...
New WordPress options
wcfmmp_updated_3_3_10
theysaidso_admin_options
wcfmmp_table_install
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
wcfmmp_installed
db_upgraded
wcfmmp_page_install

Browser metrics Passed 4 tests

Checking browser requirements for WCFM Marketplace - Best Multivendor Marketplace for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.33 ▼0.941.57 ▼0.4028.76 ▼15.51
Dashboard /wp-admin2,209 ▲214.91 ▼0.13105.91 ▼7.7079.53 ▲35.83
Posts /wp-admin/edit.php2,107 ▲182.06 ▲0.0541.93 ▲4.7938.36 ▲2.35
Add New Post /wp-admin/post-new.php1,692 ▲16424.44 ▲6.26665.68 ▲21.8757.24 ▼0.95
Media Library /wp-admin/upload.php1,397 ▲64.14 ▼0.0996.83 ▼8.6472.78 ▲29.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 17 tables in the database
    • wp_wcfm_marketplace_product_multivendor
    • wp_wcfm_marketplace_vendor_ledger
    • wp_wcfm_marketplace_withdraw_request_meta
    • wp_wcfm_marketplace_shipping_zone_locations
    • wp_wcfm_marketplace_orders_meta
    • wp_wcfm_marketplace_reviews_response_meta
    • wp_wcfm_marketplace_store_taxonomies
    • wp_wcfm_marketplace_reviews
    • wp_wcfm_marketplace_reverse_withdrawal_meta
    • wp_wcfm_marketplace_refund_request
    • ...
  • The uninstall procedure has failed, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • wcfmmp_updated_3_3_10
    • wcfmmp_table_install
    • widget_theysaidso_widget
    • wcfmmp_page_install

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/cookie_jar.php
    • > /wp-content/plugins/wc-multivendor-marketplace/controllers/refund/wcfmmp-controller-refund-requests-actions.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/multiple.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/post.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/bin/create_pear_package.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/update_certs.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/get.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/basic-auth.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/build.php
    • > /wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/examples/cookie.php
  • 388× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RequestsTest_Transport_Base' not found in wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/tests/Transport/fsockopen.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/lib/Exception/BadMethodCallException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/lib/Issuing/CardDetails.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/lib/SourceTransaction.php:17
    • > PHP Fatal error
      Uncaught Requests_Exception: cURL error 28: Operation timed out after 2502 milliseconds with 0 bytes received in wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/library/Requests/Transport/cURL.php:422
    • > PHP Fatal error
      Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/wc-multivendor-marketplace/includes/wirecard/vendor/rmccue/requests/library/Requests/Exception/HTTP.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-multivendor-marketplace/includes/store-widgets/class-wcfmmp-widget-store-recent-articles.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/lib/Service/TestHelpers/TestClockService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-multivendor-marketplace/includes/store-widgets/class-wcfmmp-widget-store-top-products.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-multivendor-marketplace/views/shipping/wcfmmp-view-edit-method-popup.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: multivendor marketplace, multi seller, woocommerce marketplace, woocommerce product vendors, multi vendor

wc-multivendor-marketplace/wc-multivendor-marketplace.php 92% from 13 tests

The main file in "WCFM Marketplace - Best Multivendor Marketplace for WooCommerce" v. 3.6.2 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:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0.0")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wc-multivendor-marketplace/includes/Stripe/data/ca-certificates.crt
70,783 lines of code in 754 files:
LanguageFilesBlank linesComment linesLines of code
PHP57311,73024,45950,080
PO File53,8595,9709,034
JavaScript449251,1015,268
CSS53634443,441
Markdown141,13902,292
JSON4700307
SVG1009214
XML32086
make110029
YAML13016
Bourne Shell24012
Python1104

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 115)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.12
▷ Minimum class complexity1.00
▷ Maximum class complexity751.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity115.00
Code structure
Namespaces44
Interfaces14
Traits9
Classes471
▷ Abstract classes142.97%
▷ Concrete classes45797.03%
▷ Final classes00.00%
Methods2,686
▷ Static methods32011.91%
▷ Public methods2,49192.74%
▷ Protected methods1254.65%
▷ Private methods702.61%
Functions94
▷ Named functions7478.72%
▷ Anonymous functions2021.28%
Constants1,128
▷ Global constants80.71%
▷ Class constants1,12099.29%
▷ Public constants1,120100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.74MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/list_arow1.png0.26KB0.16KB▼ 40.23%
assets/images/wcfmmp_ico.png0.86KB0.63KB▼ 26.48%
assets/images/sold_by_advanced.png8.29KB3.74KB▼ 54.94%
assets/images/paypal.png4.40KB2.35KB▼ 46.60%
assets/images/stripe.png5.26KB2.64KB▼ 49.80%