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: ▼8.36ms] Passed 4 tests
Server-side resources used by Checkout.com Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 25.28 ▼15.81 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.15 ▼20.68 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 51.20 ▲3.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.94 ▲1.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.61 ▲1.56 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 795 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout.com Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,459 ▼288 | 14.30 ▼0.05 | 0.61 ▼1.18 | 17.60 ▼24.83 |
Dashboard /wp-admin | 2,200 ▲20 | 5.68 ▲0.08 | 95.79 ▲4.53 | 40.20 ▼5.33 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.01 ▲0.04 | 40.06 ▼3.74 | 33.31 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.24 ▲0.07 | 624.53 ▲23.02 | 60.82 ▲7.15 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.21 ▼0.04 | 97.35 ▼10.39 | 43.25 ▼4.81 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 295× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'Checkout\\Payments\\Destination\\PaymentRequestDestination' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/Payments/Destination/PaymentRequestTokenDestination.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Checkout\\HttpClientBuilderInterface' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/DefaultHttpClientBuilder.php:7
- > PHP Fatal error
Uncaught Error: Class 'Checkout\\Tokens\\WalletTokenRequest' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/Tokens/GooglePayTokenRequest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Checkout\\Workflows\\Conditions\\WorkflowConditionRequest' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/Workflows/Conditions/EntityWorkflowConditionRequest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Checkout\\AbstractStaticKeysCheckoutSdkBuilder' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/Four/FourStaticKeysCheckoutSdkBuilder.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Checkout_Com_Alternative_Payments' not found in wp-content/plugins/checkout-com-unified-payments-api/includes/apms/class-wc-gateway-checkout-com-alternative-payments-sepa.php:14
- > PHP Fatal error
Uncaught Error: Class 'Checkout\\Sessions\\Completion\\CompletionInfo' not found in wp-content/plugins/checkout-com-unified-payments-api/vendor/checkout/checkout-sdk-php/lib/Checkout/Sessions/Completion/HostedCompletionInfo.php:5
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: google pay, credit card, payment gateway, payment request, checkout...
checkout-com-unified-payments-api/woocommerce-gateway-checkout-com.php 92% from 13 tests
The main PHP file in "Checkout.com Payment Gateway" ver. 4.4.16 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-com-unified-payments-api.php" instead of "woocommerce-gateway-checkout-com.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected56,684 lines of code in 745 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 624 | 8,060 | 18,010 | 47,881 |
Markdown | 26 | 1,568 | 0 | 4,505 |
JSON | 16 | 0 | 0 | 1,561 |
CSS | 4 | 197 | 36 | 965 |
JavaScript | 7 | 170 | 84 | 964 |
SVG | 59 | 28 | 8 | 679 |
YAML | 6 | 22 | 3 | 98 |
XML | 1 | 4 | 1 | 12 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 78 | |
Interfaces | 38 | |
Traits | 8 | |
Classes | 544 | |
▷ Abstract classes | 27 | 4.96% |
▷ Concrete classes | 517 | 95.04% |
▷ Final classes | 62 | 11.99% |
Methods | 2,031 | |
▷ Static methods | 291 | 14.33% |
▷ Public methods | 1,626 | 80.06% |
▷ Protected methods | 184 | 9.06% |
▷ Private methods | 221 | 10.88% |
Functions | 204 | |
▷ Named functions | 91 | 44.61% |
▷ Anonymous functions | 113 | 55.39% |
Constants | 346 | |
▷ Global constants | 79 | 22.83% |
▷ Class constants | 267 | 77.17% |
▷ Public constants | 229 | 85.77% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin