58% wc-multivendor-membership

Code Review | WCFM Membership - WooCommerce Memberships for Multivendor Marketplace

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

About plugin

  • Plugin page: wc-multivendor-me...
  • Plugin version: 2.11.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Nov 29, 2023
  • Number of updates: 168
  • Update frequency: every 13.0 days
  • Top authors: wclovers (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

20,000+ active /745,648 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼15.54ms] Passed 4 tests

A check of server-side resources used by WCFM Membership - WooCommerce Memberships for Multivendor Marketplace
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6217.83 ▼22.55
Dashboard /wp-admin3.33 ▼0.0246.45 ▼13.23
Posts /wp-admin/edit.php3.20 ▼0.1631.26 ▼12.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.82 ▼14.17
Media Library /wp-admin/upload.php3.25 ▲0.0232.26 ▼1.18

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 380 new files
Database: 1 new table, 13 new options
New tables
wp_wcfm_membership_subscription
New WordPress options
wcfmvm_installed
widget_recent-posts
wcfmvm_table_install
wcfm_page_options
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent
wcfm_vendor_registration_page_id
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WCFM Membership - WooCommerce Memberships for Multivendor Marketplace
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,445 ▼30214.63 ▲0.370.57 ▼1.1118.25 ▼24.98
Dashboard /wp-admin2,198 ▲175.63 ▼0.0893.09 ▼9.0543.22 ▲3.73
Posts /wp-admin/edit.php45 ▼2,0550.41 ▼1.600.09 ▼38.549.77 ▼29.31
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.48576.28 ▼51.4162.73 ▲1.31
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.0295.22 ▼0.5643.63 ▲1.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_wcfm_membership_subscription
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • can_compress_scripts
    • wcfm_vendor_membership_page_id
    • widget_recent-comments
    • wcfm_vendor_registration_page_id
    • db_upgraded
    • wcfmvm_page_install
    • widget_theysaidso_widget
    • wcfm_page_options
    • recovery_mode_email_last_sent
    • wcfmvm_table_install
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/build.php
    • > /wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/update_certs.php
  • 259× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Person.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Payout.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Treasury/InboundTransfer.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Customer.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Terminal/ConnectionToken.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Treasury/ReceivedDebit.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/FinancialConnections/AccountOwnership.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/EphemeralKeyService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/BalanceService.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: multi vendor, subscription, woocommerce membership, members, multivendor marketplace

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

The primary PHP file in "WCFM Membership - WooCommerce Memberships for Multivendor Marketplace" version 2.11.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and 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 | An overview of files in this plugin; executable files are not allowed
It is important to fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/data/ca-certificates.crt
25,281 lines of code in 360 files:
LanguageFilesBlank linesComment linesLines of code
PHP3163,91912,69817,394
PO File41,9282,9684,019
Markdown378301,498
JavaScript14102601,222
CSS2019081,040
JSON10048
XML10031
make110029

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 164)
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.71
▷ Minimum class complexity1.00
▷ Maximum class complexity448.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity164.00
Code structure
Namespaces34
Interfaces9
Traits9
Classes280
▷ Abstract classes103.57%
▷ Concrete classes27096.43%
▷ Final classes00.00%
Methods997
▷ Static methods18618.66%
▷ Public methods91391.57%
▷ Protected methods414.11%
▷ Private methods434.31%
Functions44
▷ Named functions3170.45%
▷ Anonymous functions1329.55%
Constants1,016
▷ Global constants151.48%
▷ Class constants1,00198.52%
▷ Public constants1,001100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/wcfm_ico.png0.48KB0.51KB0.00%
assets/images/wcfm.png16.81KB8.57KB▼ 48.99%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%