Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.88MB] [CPU: ▼297.52ms] Passed 4 tests
Server-side resources used by MANGOPAY WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.29 | 28.07 ▼20.47 |
Dashboard /wp-admin | 5.48 ▲2.07 | 47.00 ▲14.56 |
Posts /wp-admin/edit.php | 5.77 ▲2.13 | 49.93 ▲13.35 |
Add New Post /wp-admin/post-new.php | 9.01 ▲2.04 | 106.61 ▼1,195.78 |
Media Library /wp-admin/upload.php | 5.43 ▲2.13 | 36.07 ▲12.83 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 225 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
MANGOPAY WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,315 ▼439 | 15.93 ▲0.25 | 0.36 ▼5.48 | 31.21 ▲28.60 |
Dashboard /wp-admin | 3,029 ▲171 | 6.66 ▲0.48 | 123.97 ▼11.96 | 179.42 ▲22.99 |
Posts /wp-admin/edit.php | 2,736 ▲45 | 3.37 ▲0.01 | 67.28 ▲2.02 | 136.43 ▼12.97 |
Add New Post /wp-admin/post-new.php | 1,671 ▲10 | 21.13 ▲5.65 | 414.30 ▲5.80 | 146.61 ▼2.31 |
Media Library /wp-admin/upload.php | 1,751 ▲53 | 5.94 ▲0.44 | 126.60 ▼20.17 | 203.49 ▲22.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 118× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\Dto' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/FilterCards.php:7
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\Document' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/KycDocument.php:7
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\Dto' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/FilterBankAccounts.php:7
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\EntityBase' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/Mandate.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mangopay-woocommerce/mangopay-woocommerce.php:174
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\ApiBase' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/ApiDisputes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mangopay-woocommerce/inc/upgrades/set_legacy_users_mp_status.php:18
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\Exception' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/Libraries/ResponseException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\FilterBase' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/FilterEvents.php:7
- > PHP Fatal error
Uncaught Error: Class 'MangoPay\\Libraries\\EntityBase' not found in wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/Client.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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: payment, marketplace, shop, multivendor, checkout...
mangopay-woocommerce/mangopay-woocommerce.php 85% from 13 tests
The entry point to "MANGOPAY WooCommerce" version 3.4.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("4.4.0" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,398 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 190 | 3,004 | 7,195 | 13,312 |
JavaScript | 9 | 301 | 449 | 1,230 |
CSS | 3 | 41 | 66 | 863 |
PO File | 1 | 367 | 369 | 747 |
Markdown | 1 | 73 | 0 | 222 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 521.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 182 | |
▷ Abstract classes | 7 | 3.85% |
▷ Concrete classes | 175 | 96.15% |
▷ Final classes | 7 | 4.00% |
Methods | 514 | |
▷ Static methods | 9 | 1.75% |
▷ Public methods | 430 | 83.66% |
▷ Protected methods | 11 | 2.14% |
▷ Private methods | 73 | 14.20% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 266 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 266 | 100.00% |
▷ Public constants | 266 | 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.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
img/mp-icon.png | 1.48KB | 0.86KB | ▼ 41.84% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |