Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.19MB] [CPU: ▼15.54ms] Passed 4 tests
A check of server-side resources used by WCFM Membership - WooCommerce Memberships for Multivendor Marketplace
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.62 | 17.83 ▼22.55 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.45 ▼13.23 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 31.26 ▼12.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.82 ▼14.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.26 ▼1.18 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 380 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_wcfm_membership_subscription |
New WordPress options |
---|
wcfmvm_installed |
widget_recent-posts |
wcfmvm_table_install |
wcfm_page_options |
widget_recent-comments |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
wcfm_vendor_registration_page_id |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WCFM Membership - WooCommerce Memberships for Multivendor Marketplace
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,445 ▼302 | 14.63 ▲0.37 | 0.57 ▼1.11 | 18.25 ▼24.98 |
Dashboard /wp-admin | 2,198 ▲17 | 5.63 ▼0.08 | 93.09 ▼9.05 | 43.22 ▲3.73 |
Posts /wp-admin/edit.php | 45 ▼2,055 | 0.41 ▼1.60 | 0.09 ▼38.54 | 9.77 ▼29.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▼0.48 | 576.28 ▼51.41 | 62.73 ▲1.31 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▲0.02 | 95.22 ▼0.56 | 43.63 ▲1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 1 table
- wp_wcfm_membership_subscription
- This plugin did not uninstall successfully, leaving 12 options in the database
- can_compress_scripts
- wcfm_vendor_membership_page_id
- widget_recent-comments
- wcfm_vendor_registration_page_id
- db_upgraded
- wcfmvm_page_install
- widget_theysaidso_widget
- wcfm_page_options
- recovery_mode_email_last_sent
- wcfmvm_table_install
- ...
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/build.php
- > /wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/update_certs.php
- 259× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Person.php:53
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Payout.php:40
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Treasury/InboundTransfer.php:36
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Customer.php:44
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Terminal/ConnectionToken.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Treasury/ReceivedDebit.php:29
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/FinancialConnections/AccountOwnership.php:15
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/EphemeralKeyService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-multivendor-membership/includes/libs/stripe-gateway/lib/Service/BalanceService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: multi vendor, subscription, woocommerce membership, members, multivendor marketplace
wc-multivendor-membership/wc-multivendor-membership.php 92% from 13 tests
The primary PHP file in "WCFM Membership - WooCommerce Memberships for Multivendor Marketplace" version 2.11.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
It is important to 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/wc-multivendor-membership/includes/libs/stripe-gateway/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 316 | 3,919 | 12,698 | 17,394 |
PO File | 4 | 1,928 | 2,968 | 4,019 |
Markdown | 3 | 783 | 0 | 1,498 |
JavaScript | 14 | 102 | 60 | 1,222 |
CSS | 20 | 190 | 8 | 1,040 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 10 | 0 | 29 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 164)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 448.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 164.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 280 | |
▷ Abstract classes | 10 | 3.57% |
▷ Concrete classes | 270 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 997 | |
▷ Static methods | 186 | 18.66% |
▷ Public methods | 913 | 91.57% |
▷ Protected methods | 41 | 4.11% |
▷ Private methods | 43 | 4.31% |
Functions | 44 | |
▷ Named functions | 31 | 70.45% |
▷ Anonymous functions | 13 | 29.55% |
Constants | 1,016 | |
▷ Global constants | 15 | 1.48% |
▷ Class constants | 1,001 | 98.52% |
▷ Public constants | 1,001 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/wcfm_ico.png | 0.48KB | 0.51KB | 0.00% |
assets/images/wcfm.png | 16.81KB | 8.57KB | ▼ 48.99% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |