74% wc-multivendor-marketplace-migration

Code Review | Migrate to WooCommerce Multivendor Marketplace

WordPress plugin Migrate to WooCommerce Multivendor Marketplace scored74%from 54 tests.

About plugin

  • Plugin page: wc-multivendor-ma...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 28, 2018
  • Latest release: Feb 19, 2022
  • Number of updates: 27
  • Update frequency: every 45.9 days
  • Top authors: wclovers (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /8,159 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲3.78ms] Passed 4 tests

Analyzing server-side resources used by Migrate to WooCommerce Multivendor Marketplace
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.87 ▲5.55
Dashboard /wp-admin3.33 ▲0.0352.08 ▼2.74
Posts /wp-admin/edit.php3.38 ▲0.0253.17 ▲5.43
Add New Post /wp-admin/post-new.php5.91 ▲0.02105.80 ▲6.89
Media Library /wp-admin/upload.php3.25 ▲0.0241.20 ▲8.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: 17 new tables, 8 new options
New tables
wp_wcfm_marketplace_reviews
wp_wcfm_marketplace_refund_request_meta
wp_wcfm_marketplace_product_multivendor
wp_wcfm_marketplace_vendor_ledger
wp_wcfm_marketplace_review_rating_meta
wp_wcfm_marketplace_reviews_response_meta
wp_wcfm_marketplace_reverse_withdrawal_meta
wp_wcfm_marketplace_reviews_response
wp_wcfm_marketplace_withdraw_request
wp_wcfm_marketplace_withdraw_request_meta
...
New WordPress options
db_upgraded
can_compress_scripts
wcfmmg_installed
widget_recent-comments
wcfmmg_table_install
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Migrate to WooCommerce Multivendor Marketplace: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.29 ▼1.111.69 ▲0.0738.20 ▼5.89
Dashboard /wp-admin2,216 ▲255.83 ▼0.03100.02 ▼2.2242.65 ▼6.52
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0040.52 ▲2.3036.46 ▲2.95
Add New Post /wp-admin/post-new.php1,546 ▲2623.50 ▲0.37576.35 ▼33.2665.03 ▲15.39
Media Library /wp-admin/upload.php1,404 ▲164.27 ▲0.0494.67 ▼7.0942.84 ▲0.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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: 17 tables
    • wp_wcfm_marketplace_refund_request_meta
    • wp_wcfm_marketplace_reviews_response
    • wp_wcfm_marketplace_withdraw_request
    • wp_wcfm_marketplace_reviews
    • wp_wcfm_marketplace_orders
    • wp_wcfm_marketplace_shipping_zone_methods
    • wp_wcfm_marketplace_withdraw_request_meta
    • wp_wcfm_marketplace_product_multivendor
    • wp_wcfm_marketplace_reverse_withdrawal_meta
    • wp_wcfm_marketplace_store_taxonomies
    • ...
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • wcfmmg_table_install
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-multivendor-marketplace-migration/helpers/wcfmmg-core-functions.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes: You can look at the official readme.txt

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

"Migrate to WooCommerce Multivendor Marketplace" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,662 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP126164823,662

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity46.00
▷ Minimum class complexity6.00
▷ Maximum class complexity95.00
Average method complexity7.43
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods63
▷ Static methods711.11%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/wcfmmp-75x75.png4.73KB2.38KB▼ 49.71%