Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▼1.19ms] Passed 4 tests
This is a short check of server-side resources used by MultiVendorX - MultiVendor Marketplace Solution For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.45 | 43.25 ▲1.10 |
Dashboard /wp-admin | 4.94 ▲1.59 | 56.23 ▼1.74 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 56.55 ▲7.36 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 88.44 ▼9.65 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 44.01 ▲5.53 |
Server storage [IO: ▲21.53MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 990 new files
Database: 8 new tables, 14 new options
New tables |
---|
wp_mvx_vendor_orders |
wp_mvx_cust_answers |
wp_mvx_visitors_stats |
wp_mvx_products_map |
wp_mvx_shipping_zone_locations |
wp_mvx_shipping_zone_methods |
wp_mvx_cust_questions |
wp_mvx_vendor_ledger |
New WordPress options |
---|
mvx_commissions_tab_settings |
widget_recent-comments |
mvx_product_vendor_vendor_page_id |
dc_product_vendor_plugin_page_install |
widget_theysaidso_widget |
mvx_product_vendor_registration_page_id |
mvx_table_created |
dc_product_vendor_plugin_installed |
mvx_settings_general_tab_settings |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for MultiVendorX - MultiVendor Marketplace Solution For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.27 ▲0.38 | 1.52 ▼0.30 | 39.05 ▼2.25 |
Dashboard /wp-admin | 2,201 ▲21 | 5.61 ▼0.06 | 94.47 ▼3.04 | 44.65 ▲0.47 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.95 ▼0.08 | 35.51 ▼4.02 | 34.45 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 21.06 ▼2.26 | 724.91 ▲22.73 | 60.60 ▲5.02 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.17 ▲0.01 | 97.28 ▲0.01 | 42.47 ▼1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 8 tables
- wp_mvx_shipping_zone_methods
- wp_mvx_vendor_ledger
- wp_mvx_shipping_zone_locations
- wp_mvx_products_map
- wp_mvx_cust_answers
- wp_mvx_visitors_stats
- wp_mvx_vendor_orders
- wp_mvx_cust_questions
- Zombie WordPress options detected upon uninstall: 13 options
- mvx_commissions_tab_settings
- db_upgraded
- mvx_disbursement_tab_settings
- mvx_product_vendor_vendor_page_id
- theysaidso_admin_options
- mvx_table_created
- widget_recent-posts
- widget_theysaidso_widget
- mvx_settings_general_tab_settings
- can_compress_scripts
- ...
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dc-woocommerce-multi-vendor/templates/vendor-registration-form.php
- > /wp-content/plugins/dc-woocommerce-multi-vendor/packages/mvx-elementor/views/template-preview-9000001.php
- > /wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/build.php
- > /wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/update_certs.php
- > /wp-content/plugins/dc-woocommerce-multi-vendor/templates/archive-vendor-banner.php
- 329× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\HttpClient\\ClientInterface' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/HttpClient/CurlClient.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/TestHelpers/TestClock.php:24
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Button' not found in wp-content/plugins/dc-woocommerce-multi-vendor/packages/mvx-elementor/widgets/class-mvx-widget-storechat.php:6
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/Subscription.php:53
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/CreditNoteLineItem.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/PaymentMethod.php:56
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/SetupIntent.php:67
- > PHP Fatal error
Uncaught Error: Class 'MVX_Elementor_TagBase' not found in wp-content/plugins/dc-woocommerce-multi-vendor/packages/mvx-elementor/includes/Tags/StoreDummyProducts.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/InvoiceLineItem.php:31
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/dc-woocommerce-multi-vendor/lib/Stripe/lib/Service/BillingPortal/BillingPortalServiceFactory.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
dc-woocommerce-multi-vendor/dc_product_vendor.php 85% from 13 tests
The primary PHP file in "MultiVendorX - MultiVendor Marketplace Solution For WooCommerce" version 4.0.31 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dc-woocommerce-multi-vendor.php" instead of "dc_product_vendor.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please 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/dc-woocommerce-multi-vendor/lib/Stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 640 | 9,894 | 23,490 | 74,212 |
CSS | 65 | 4,622 | 425 | 66,241 |
JavaScript | 132 | 5,415 | 3,856 | 38,066 |
JSON | 6 | 0 | 0 | 21,156 |
Sass | 24 | 169 | 83 | 18,331 |
Markdown | 4 | 1,017 | 0 | 2,500 |
SVG | 6 | 0 | 2 | 466 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 10 | 0 | 29 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,303)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,303.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 421 | |
▷ Abstract classes | 15 | 3.56% |
▷ Concrete classes | 406 | 96.44% |
▷ Final classes | 2 | 0.49% |
Methods | 2,626 | |
▷ Static methods | 285 | 10.85% |
▷ Public methods | 2,390 | 91.01% |
▷ Protected methods | 167 | 6.36% |
▷ Private methods | 69 | 2.63% |
Functions | 587 | |
▷ Named functions | 558 | 95.06% |
▷ Anonymous functions | 29 | 4.94% |
Constants | 975 | |
▷ Global constants | 12 | 1.23% |
▷ Class constants | 963 | 98.77% |
▷ Public constants | 963 | 100.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
37 PNG files occupy 2.81MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/delete-icon.png | 0.65KB | 0.51KB | ▼ 21.34% |
assets/images/pro-bg.png | 105.35KB | 61.40KB | ▼ 41.71% |
assets/images/edit.png | 6.02KB | 3.62KB | ▼ 39.81% |
assets/images/trash.png | 2.22KB | 2.52KB | 0.00% |
packages/mvx-elementor/assets/images/store-preview-9000001.png | 1,392.67KB | 515.68KB | ▼ 62.97% |