83% wp-multi-vendor-marketplace-the-courier-guy-shipping-for-woocommerce

Code Review | WCFM and WC Marketplace - The Courier Guy Shipping for WooCommerce

WordPress plugin WCFM and WC Marketplace - The Courier Guy Shipping for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: wp-multi-vendor-m...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Oct 12, 2020
  • Number of updates: 17
  • Update frequency: every 5.5 days
  • Top authors: talenttcg (94.12%)lynchclint (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.15ms] Passed 4 tests

Server-side resources used by WCFM and WC Marketplace - The Courier Guy Shipping for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.20 ▼0.08
Dashboard /wp-admin3.31 ▼0.0453.74 ▼9.41
Posts /wp-admin/edit.php3.36 ▲0.0050.32 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.05 ▼14.25
Media Library /wp-admin/upload.php3.23 ▲0.0036.75 ▲1.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WCFM and WC Marketplace - The Courier Guy Shipping for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.35 ▲0.111.87 ▼0.0341.94 ▲1.25
Dashboard /wp-admin2,192 ▲125.52 ▼0.1483.01 ▼10.2838.45 ▼6.29
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0238.47 ▲2.8937.65 ▼0.59
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▼0.14697.50 ▲22.0953.85 ▲1.41
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0298.61 ▼13.8344.05 ▼1.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WCFM_Fields' not found in wp-content/plugins/wp-multi-vendor-marketplace-the-courier-guy-shipping-for-woocommerce/class-the-courier-guy-wcfm-fields.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt might help

wp-multi-vendor-marketplace-the-courier-guy-shipping-for-woocommerce/wc-multivendor-marketplace-thecourierguy-extension.php 77% from 13 tests

"WCFM and WC Marketplace - The Courier Guy Shipping for WooCommerce" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-multi-vendor-marketplace-the-courier-guy-shipping-for-woocommerce.php" instead of "wc-multivendor-marketplace-thecourierguy-extension.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected204 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21940204

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity10.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin