83% marketking-multivendor-marketplace-for-woocommerce

Code Review | MarketKing — Ultimate WooCommerce Multivendor Marketplace Solution

WordPress plugin MarketKing — Ultimate WooCommerce Multivendor Marketplace Solution scored83%from 54 tests.

About plugin

  • Plugin page: marketking-multiv...
  • Plugin version: 1.8.20
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Dec 1, 2023
  • Number of updates: 189
  • Update frequency: every 3.2 days
  • Top authors: webwizardsdev (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

800+ active /21,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.10MB] [CPU: ▲15.64ms] Passed 4 tests

Server-side resources used by MarketKing — Ultimate WooCommerce Multivendor Marketplace Solution
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.40 ▲1.9358.16 ▲17.44
Dashboard /wp-admin5.49 ▲2.1865.54 ▲17.06
Posts /wp-admin/edit.php5.52 ▲2.1767.39 ▲17.92
Add New Post /wp-admin/post-new.php8.08 ▲2.19112.64 ▲10.14
Media Library /wp-admin/upload.php5.33 ▲2.1051.76 ▲21.37

Server storage [IO: ▲16.21MB] [DB: ▲0.08MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 346 new files
Database: no new tables, 24 new options
New WordPress options
marketking_store_name_initial_field_id_setting
marketking_first_time_setup
marketking_stores_page_setting_initial
marketking_composite_status_ran
marketking_company_name_initial_field_id_setting
marketking_store_url_initial_field_id_setting
widget_recent-posts
marketking_clear_hidden_products_time
marketking_last_name_initial_field_id_setting
marketking_rebuild_visibility_cache
...

Browser metrics Passed 4 tests

An overview of browser requirements for MarketKing — Ultimate WooCommerce Multivendor Marketplace Solution
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4714.18 ▼0.171.76 ▲0.0338.28 ▼6.10
Dashboard /wp-admin2,211 ▲405.62 ▼0.0194.91 ▼5.3842.66 ▼3.49
Posts /wp-admin/edit.php2,123 ▲232.00 ▲0.0241.97 ▲3.5836.84 ▼0.44
Add New Post /wp-admin/post-new.php1,540 ▲1123.41 ▲0.29622.84 ▲22.2368.52 ▲17.42
Media Library /wp-admin/upload.php1,419 ▲224.22 ▲0.0496.87 ▼0.8940.96 ▲0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 24 options in the database
    • marketking_store_url_initial_field_id_setting
    • db_upgraded
    • marketking_first_time_setup
    • marketking_vendordash_page_setting
    • widget_recent-posts
    • marketking_vendor_registration_page_setting_initial
    • marketking_stores_page_setting_initial
    • woocommerce_excluded_report_order_statuses
    • marketking_rebuild_visibility_cache
    • marketking_composite_status_ran
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function marketking() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/dashboard-content.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/templates/profile-sidebar.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/marketking-dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/templates/stores-list.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function marketking() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/edit-product.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/orders.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Comments_List_Table' not found in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/admin/class-marketking-reviews-page.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/includes/elementor/classes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function marketking() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/products.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function marketking() in wp-content/plugins/marketking-multivendor-marketplace-for-woocommerce/public/dashboard/profile.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
These attributes need your attention: The official readme.txt might help

marketking-multivendor-marketplace-for-woocommerce/marketking-core.php 85% from 13 tests

The primary PHP file in "MarketKing — Ultimate WooCommerce Multivendor Marketplace Solution" version 1.8.20 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "5.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("marketking-multivendor-marketplace-for-woocommerce.php" instead of "marketking-core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin122,958 lines of code in 195 files:
LanguageFilesBlank linesComment linesLines of code
CSS1716,34689079,721
PHP655,8542,20825,391
JavaScript281,6331,5548,548
SVG2521174,261
PO File11,4692,0343,785
JSON5811401,248
Markdown1304

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity82.79
▷ Minimum class complexity1.00
▷ Maximum class complexity600.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods537
▷ Static methods14226.44%
▷ Public methods52096.83%
▷ Protected methods173.17%
▷ Private methods00.00%
Functions112
▷ Named functions1311.61%
▷ Anonymous functions9988.39%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
73 PNG files occupy 1.93MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/images/marketkinglogo9.png14.63KB7.71KB▼ 47.33%
includes/assets/images/store_style_1.png104.91KB48.01KB▼ 54.24%
includes/assets/images/module-stripe.png13.75KB14.72KB0.00%
includes/assets/images/module-categories.png22.48KB23.95KB0.00%
includes/assets/images/module-help1.png11.71KB6.29KB▼ 46.30%