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.01MB] [CPU: ▼6.69ms] Passed 4 tests
Analyzing server-side resources used by CoinbarPay Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.15 ▲6.35 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.08 ▼20.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.87 ▲2.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.03 ▼13.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.84 ▲3.50 |
Server storage [IO: ▲6.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 313 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CoinbarPay Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.18 ▼1.14 | 7.17 ▲5.33 | 53.53 ▲10.13 |
Dashboard /wp-admin | 2,206 ▲18 | 5.77 ▲0.88 | 100.10 ▼14.50 | 39.31 ▼9.44 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.02 | 39.75 ▲6.33 | 34.96 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.07 ▼0.22 | 665.44 ▼34.53 | 47.60 ▼2.21 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.02 | 104.11 ▼2.79 | 45.40 ▼0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/adamantic/crypto-payments-php/composer-setup.php
- > /wp-content/plugins/coinbarpay-payment-gateway/config/admin_info_box.php
- > /wp-content/plugins/coinbarpay-payment-gateway/vendor/adamantic/crypto-payments-php/composer-setup.php
- > /wp-content/plugins/coinbarpay-payment-gateway/vendor/coinbar/coinbar-pay-php-sdk/composer-setup.php
- > /wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/coinbar/coinbar-pay-php-sdk/composer-setup.php
- 108× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/graham-campbell/result-type/src/Error.php:24
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/graham-campbell/result-type/src/Success.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Loader\\LoaderInterface' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vlucas/phpdotenv/src/Loader/Loader.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php:10
- > PHP Fatal error
Uncaught Error: Class 'CoinbarPay\\Sdk\\CoinbarPaymentGatewayConfig' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/coinbar/coinbar-pay-php-sdk/src/CoinbarPay/Sdk/CoinbarPaymentGatewayEnvConfig.php:35
- > PHP Fatal error
Uncaught Error: Class 'Adamantic\\CryptoPayments\\Exceptions\\CryptoPaymentException' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/adamantic/crypto-payments-php/src/Adamantic/CryptoPayments/Exceptions/UnknownStatusException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vlucas/phpdotenv/src/Store/StringStore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Brick\\Math\\BigNumber' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/brick/math/src/BigRational.php:19
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/coinbarpay-payment-gateway/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Watch example screens in https://pay.coinbar.io)
coinbarpay-payment-gateway/woocommerce-coinbar-pay.php 92% from 13 tests
This is the main PHP file of "CoinbarPay Payment Gateway" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("coinbarpay-payment-gateway.php" instead of "woocommerce-coinbar-pay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin12,978 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 2,296 | 5,734 | 11,653 |
JSON | 10 | 0 | 0 | 1,003 |
Markdown | 6 | 187 | 0 | 299 |
YAML | 1 | 0 | 0 | 15 |
XML | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 24 | |
Traits | 0 | |
Classes | 197 | |
▷ Abstract classes | 18 | 9.14% |
▷ Concrete classes | 179 | 90.86% |
▷ Final classes | 92 | 51.40% |
Methods | 1,518 | |
▷ Static methods | 386 | 25.43% |
▷ Public methods | 1,273 | 83.86% |
▷ Protected methods | 97 | 6.39% |
▷ Private methods | 148 | 9.75% |
Functions | 411 | |
▷ Named functions | 283 | 68.86% |
▷ Anonymous functions | 128 | 31.14% |
Constants | 124 | |
▷ Global constants | 30 | 24.19% |
▷ Class constants | 94 | 75.81% |
▷ Public constants | 68 | 72.34% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 2.76KB | 2.18KB | ▼ 21.17% |