Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.11ms] Passed 4 tests
Server-side resources used by WCFM - Direct PayPal Pay for WooCommerce Multivendor Marketplace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.61 ▲4.81 |
Dashboard /wp-admin | 3.36 ▲0.02 | 45.45 ▼15.52 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.74 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.86 ▼6.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.78 ▲4.46 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 706 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WCFM - Direct PayPal Pay for WooCommerce Multivendor Marketplace
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.26 ▼0.38 | 1.89 ▲0.10 | 37.05 ▼3.50 |
Dashboard /wp-admin | 2,192 ▲14 | 5.55 ▼0.19 | 80.20 ▼14.98 | 39.39 ▼4.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.07 | 40.13 ▼2.46 | 36.00 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.45 | 642.47 ▼29.12 | 58.28 ▲1.45 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.06 | 94.73 ▼2.81 | 40.77 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 77× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/payments/OrderAuthorize.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/notifications/DeleteWebhook.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/lipp/ObtainUserConsent.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/invoice-templates/UpdateInvoiceTemplate.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/payment-experience/GetWebProfile.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/payments/OrderDoVoid.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/lipp/GetUserInfo.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/invoice-templates/CreateInvoiceTemplate.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/invoice/RemindInvoice.php
- > /wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/sample/notifications/ValidateWebhookEvent.php
- 378× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingInfoTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\FundingInstrument' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingSource.php:24
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CurrencyConversion.php:24
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Order.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/tests/PayPal/Test/Api/PotentialPayerInfoTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php:19
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/wc-frontend-manager-direct-paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php:15
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: vendor, multi vendor, woocommerce marketplace, paypal, wcfm
wc-frontend-manager-direct-paypal/wc-frontend-manager-direct-paypal.php 92% from 13 tests
The principal PHP file in "WCFM - Direct PayPal Pay for WooCommerce Multivendor Marketplace" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin42,614 lines of code in 685 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 509 | 6,019 | 21,577 | 29,144 |
JSON | 65 | 23 | 0 | 5,108 |
JavaScript | 5 | 47 | 37 | 4,931 |
HTML | 84 | 241 | 15 | 2,564 |
Markdown | 9 | 164 | 0 | 614 |
CSS | 4 | 23 | 8 | 104 |
XML | 4 | 11 | 0 | 80 |
INI | 2 | 18 | 67 | 31 |
SVG | 1 | 0 | 1 | 30 |
YAML | 1 | 0 | 0 | 6 |
Ruby | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 405 | |
▷ Abstract classes | 4 | 0.99% |
▷ Concrete classes | 401 | 99.01% |
▷ Final classes | 0 | 0.00% |
Methods | 3,166 | |
▷ Static methods | 399 | 12.60% |
▷ Public methods | 3,089 | 97.57% |
▷ Protected methods | 40 | 1.26% |
▷ Private methods | 37 | 1.17% |
Functions | 19 | |
▷ Named functions | 10 | 52.63% |
▷ Anonymous functions | 9 | 47.37% |
Constants | 29 | |
▷ Global constants | 5 | 17.24% |
▷ Class constants | 24 | 82.76% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/paypal/rest-api-sdk-php/sample/images/sample_web.png | 134.77KB | 42.55KB | ▼ 68.43% |
vendor/paypal/rest-api-sdk-php/sample/images/sample_console.png | 186.27KB | 44.73KB | ▼ 75.98% |
vendor/paypal/rest-api-sdk-php/sample/invoice/images/sample.png | 1.64KB | 0.59KB | ▼ 63.79% |
vendor/paypal/rest-api-sdk-php/sample/images/pp_v_rgb.png | 7.53KB | 4.59KB | ▼ 39.12% |