Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼262.54ms] Passed 4 tests
This is a short check of server-side resources used by B2BinPay Payments for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.39 ▲13.04 |
Dashboard /wp-admin | 3.06 ▲0.01 | 35.23 ▼9.74 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 41.10 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 93.28 ▼1,033.56 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 30.74 ▼10.06 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 181 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for B2BinPay Payments for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,650 ▲44 | 15.84 ▲0.31 | 6.83 ▼2.27 | 54.70 ▲5.09 |
Dashboard /wp-admin | 2,934 ▲81 | 5.89 ▲0.05 | 132.45 ▲1.28 | 112.73 ▲7.78 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.00 | 65.13 ▼0.93 | 93.00 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,653 ▼0 | 18.70 ▼0.09 | 345.15 ▼37.07 | 106.63 ▼1.26 |
Media Library /wp-admin/upload.php | 1,775 ▼0 | 5.03 ▼0.00 | 140.44 ▼2.13 | 114.17 ▲0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/b2binpay-payments-for-woocommerce/includes/b2binpay/api-php/public/index.php
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/b2binpay/api-php/tests/v1/ApiTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/b2binpay/api-php/tests/IntegrationTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/b2binpay-payments-for-woocommerce/includes/b2binpay/api-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/b2binpay/api-php/public/index.php on line 7
- > PHP Fatal error
Uncaught Error: Interface 'Litipk\\BigNumbers\\Errors\\BigNumbersError' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/litipk/php-bignumbers/src/Errors/NaNInputError.php:6
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/b2binpay-payments-for-woocommerce/includes/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
b2binpay-payments-for-woocommerce/b2binpay-payments-for-woocommerce.php 92% from 13 tests
The primary PHP file in "B2BinPay Payments for WooCommerce" version 1.0.2 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 did not match the one declared in readme.txt ("4.6" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16,134 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 2,522 | 6,347 | 11,845 |
Markdown | 12 | 1,069 | 0 | 3,366 |
JSON | 10 | 0 | 0 | 809 |
CSS | 2 | 3 | 0 | 38 |
XML | 1 | 0 | 0 | 29 |
HTML | 2 | 0 | 0 | 16 |
YAML | 1 | 3 | 0 | 12 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 18 | |
Traits | 2 | |
Classes | 99 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 99 | 100.00% |
▷ Final classes | 11 | 11.11% |
Methods | 917 | |
▷ Static methods | 110 | 12.00% |
▷ Public methods | 754 | 82.22% |
▷ Protected methods | 17 | 1.85% |
▷ Private methods | 146 | 15.92% |
Functions | 173 | |
▷ Named functions | 71 | 41.04% |
▷ Anonymous functions | 102 | 58.96% |
Constants | 76 | |
▷ Global constants | 3 | 3.95% |
▷ Class constants | 73 | 96.05% |
▷ Public constants | 73 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/b2binpay.png | 2.34KB | 2.12KB | ▼ 9.30% |