Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.77ms] Passed 4 tests
An overview of server-side resources used by WC Vendors - WooCommerce Multi-Vendor, WooCommerce Marketplace, Product Vendors
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.36 ▼2.75 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.71 ▼3.35 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.11 ▲2.26 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 81.13 ▼2.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.90 ▲2.02 |
Server storage [IO: ▲4.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 289 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WC Vendors - WooCommerce Multi-Vendor, WooCommerce Marketplace, Product Vendors
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲50 | 14.67 ▲0.35 | 2.04 ▲0.32 | 43.08 ▼5.26 |
Dashboard /wp-admin | 2,196 ▲19 | 5.49 ▼0.10 | 96.02 ▼1.23 | 43.58 ▲3.23 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.10 ▲0.09 | 38.59 ▲2.60 | 36.73 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.00 ▼0.17 | 650.17 ▼33.67 | 61.60 ▲14.19 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.03 | 96.82 ▲2.63 | 40.95 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-vendors/templates/emails/new-product.php
- > /wp-content/plugins/wc-vendors/templates/emails/application-status.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'PPUtils.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-vendors/classes/gateways/PayPal_Masspay/api/lib/services/PayPalAPIInterfaceService/PayPalAPIInterfaceService.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-vendors/classes/admin/class-vendor-admin-dashboard.php on line 274
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wc-vendors/classes/admin/views/html-vendor-settings-page.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-vendors/classes/admin/class-wcv-commissions-page.php on line 12
- > PHP Notice
Undefined variable: display_mode in wp-content/plugins/wc-vendors/templates/front/vendor-list-filter.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-vendors/classes/class-install.php:52
- > PHP Fatal error
Uncaught Error: Class 'WCV_Vendor_Signup' not found in wp-content/plugins/wc-vendors/classes/front/account/class-wc-account-links.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-vendors/class-wc-vendors.php:45
- > PHP Warning
require_once(PPUtils.php): failed to open stream: No such file or directory in wp-content/plugins/wc-vendors/classes/gateways/PayPal_Masspay/api/lib/services/PayPalAPIInterfaceService/PayPalAPIInterfaceService.php on line 7
- > PHP Warning
require_once(PPUtils.php): failed to open stream: No such file or directory in wp-content/plugins/wc-vendors/classes/gateways/PayPal_AdvPayments/PayPal_AP/classes/adaptivepayments-sdk/lib/services/AdaptivePayments/AdaptivePayments.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI found ("")
wc-vendors/class-wc-vendors.php 85% from 13 tests
Analyzing the main PHP file in "WC Vendors - WooCommerce Multi-Vendor, WooCommerce Marketplace, Product Vendors" version 2.4.7.3
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.5.0" instead of "5.3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-vendors.php" instead of "class-wc-vendors.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected60,654 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 9,549 | 17,814 | 32,473 |
PO File | 14 | 10,312 | 20,750 | 25,076 |
Sass | 6 | 100 | 2 | 2,533 |
JavaScript | 12 | 60 | 9 | 345 |
Markdown | 3 | 45 | 0 | 77 |
XML | 1 | 0 | 0 | 74 |
INI | 2 | 7 | 16 | 42 |
Ant | 1 | 7 | 0 | 17 |
CSS | 12 | 0 | 17 | 17 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 536 | |
▷ Abstract classes | 7 | 1.31% |
▷ Concrete classes | 529 | 98.69% |
▷ Final classes | 0 | 0.00% |
Methods | 1,501 | |
▷ Static methods | 201 | 13.39% |
▷ Public methods | 1,435 | 95.60% |
▷ Protected methods | 13 | 0.87% |
▷ Private methods | 53 | 3.53% |
Functions | 52 | |
▷ Named functions | 45 | 86.54% |
▷ Anonymous functions | 7 | 13.46% |
Constants | 27 | |
▷ Global constants | 9 | 33.33% |
▷ Class constants | 18 | 66.67% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/extensions/bcgearexchange.png | 0.26KB | 0.13KB | ▼ 51.50% |
assets/images/extensions/cody.png | 0.26KB | 0.13KB | ▼ 48.11% |
assets/images/extensions/payment.png | 15.71KB | 5.69KB | ▼ 63.76% |
assets/images/extensions/shipping.png | 16.26KB | 6.13KB | ▼ 62.26% |
assets/images/extensions/wcvendors_dashboard.png | 22.46KB | 6.21KB | ▼ 72.34% |