Benchmarks
Plugin footprint 83% 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.76MB] [CPU: ▼293.91ms] Passed 4 tests
This is a short check of server-side resources used by MultiPay
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.89 | 27.91 ▼28.34 |
Dashboard /wp-admin | 4.17 ▲0.76 | 44.30 ▲6.84 |
Posts /wp-admin/edit.php | 4.39 ▲0.75 | 47.04 ▲8.30 |
Add New Post /wp-admin/post-new.php | 7.69 ▲0.72 | 111.33 ▼1,156.00 |
Media Library /wp-admin/upload.php | 4.11 ▲0.81 | 30.66 ▲1.86 |
Transactions /wp-admin/admin.php?page=multipay-messages | 3.99 | 26.98 |
Settings /wp-admin/admin.php?page=multipay-settings | 4.09 | 35.35 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 107 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_qp_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MultiPay
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲87 | 16.01 ▲0.41 | 6.39 ▲0.22 | 3.78 ▲0.92 |
Dashboard /wp-admin | 2,922 ▲64 | 6.13 ▼0.03 | 123.24 ▼18.93 | 163.52 ▼0.83 |
Posts /wp-admin/edit.php | 2,725 ▲37 | 3.24 ▲0.00 | 63.78 ▼1.03 | 135.50 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,712 ▼40 | 20.61 ▼0.27 | 429.80 ▼35.99 | 155.61 ▼5.19 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.49 ▼0.02 | 137.98 ▼1.03 | 193.20 ▲5.61 |
Transactions /wp-admin/admin.php?page=multipay-messages | 1,035 | 2.38 | 55.46 | 102.02 |
Settings /wp-admin/admin.php?page=multipay-settings | 1,631 | 4.90 | 73.67 | 178.34 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_qp_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=multipay-messages
- > Deprecated in wp-content/plugins/multipay/multipay.php+97
Non-static method MultiPay_Messages::output() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Notice in wp-content/plugins/multipay/settings.php+210
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Deprecated in wp-content/plugins/multipay/multipay.php+91
Non-static method MultiPay_Settings::output() should not be called statically
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Deprecated in wp-content/plugins/multipay/settings.php+26
Non-static method MultiPay_Settings::admin_tabs() should not be called statically
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Deprecated in wp-content/plugins/multipay/settings.php+29
Non-static method MultiPay_Settings::setup() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 62× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multipay/PaymentsAPI/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Coupon.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Customer.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Subscription.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Source.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/SubscriptionItem.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Error/Card.php:5
- > PHP Fatal error
Uncaught Error: Class 'PaymentBase' not found in wp-content/plugins/multipay/PaymentsAPI/paypal/PaypalPayments.class.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\SingletonApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/Balance.php:15
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/multipay/PaymentsAPI/stripe/lib/BalanceTransaction.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Network (severe)
https://assets-cdn.github.com/images/modules/logos_page/GitHub-Logo.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=multipay-settings
- > Network (severe)
http://www.etalented.co.uk/bl/bl.js - Failed to load resource: net::ERR_CONNECTION_RESET
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: ecommerce, paypal, sell, stripe, store...
multipay/multipay.php Passed 13 tests
Analyzing the main PHP file in "MultiPay" version 1.4.4
76 characters long description:
MultiPay is a free eCommerce plugin that allows you to sell anything, simply
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/multipay/PaymentsAPI/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 1,204 | 2,243 | 7,799 |
JavaScript | 6 | 209 | 174 | 720 |
CSS | 3 | 29 | 0 | 303 |
Markdown | 1 | 23 | 0 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 7 | 8.64% |
▷ Concrete classes | 74 | 91.36% |
▷ Final classes | 0 | 0.00% |
Methods | 431 | |
▷ Static methods | 157 | 36.43% |
▷ Public methods | 393 | 91.18% |
▷ Protected methods | 11 | 2.55% |
▷ Private methods | 27 | 6.26% |
Functions | 57 | |
▷ Named functions | 56 | 98.25% |
▷ Anonymous functions | 1 | 1.75% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
done.png | 4.30KB | 2.81KB | ▼ 34.61% |
PaymentsAPI/stripe/data/test.png | 0.09KB | 0.09KB | 0.00% |