Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.64ms] Passed 4 tests
An overview of server-side resources used by Conotoxia Pay Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.78 ▼6.32 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.60 ▼14.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.65 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.80 ▼9.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.59 ▲2.93 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 334 new files
Database: no new tables, 11 new options
New WordPress options |
---|
conotoxia-pay-public_key_id |
widget_theysaidso_widget |
db_upgraded |
conotoxia-pay-public_key_checksum |
conotoxia-pay-payment_service_public_keys |
conotoxia-pay-version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Conotoxia Pay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.67 ▲0.34 | 1.66 ▼0.03 | 37.11 ▼5.92 |
Dashboard /wp-admin | 2,198 ▲17 | 5.58 ▼0.15 | 91.61 ▼6.41 | 42.27 ▼1.20 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.06 | 39.15 ▲2.63 | 35.29 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▲0.10 | 600.95 ▼12.91 | 60.27 ▲10.96 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.05 | 96.81 ▲1.53 | 41.70 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
- 194× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'CKPL\\Pay\\Cryptography\\BigInteger\\Value\\ValueInterface' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Cryptography/BigInteger/Value/StringValue.php:17
- > PHP Fatal error
Uncaught Error: Interface 'CKPL\\Pay\\Model\\ResponseModelInterface' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Model/Response/PaymentServiceKeyResponseModel.php:15
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\Http\\HttpBadRequestException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/Api/InvalidPemException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'CKPL\\Pay\\Model\\ResponseModelInterface' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Model/Response/RefundResponseModel.php:15
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\Http\\HttpException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/Http/HttpInternalServerErrorException.php:12
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\Definition\\PaymentException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/DecodedReturnException.php:14
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\ConfigurationException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/ConfigurationResolverException.php:12
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\Http\\HttpBadRequestException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/Api/ValidationErrorException.php:16
- > PHP Fatal error
Uncaught Error: Class 'CKPL\\Pay\\Exception\\ClientException' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Exception/EndpointException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'CKPL\\Pay\\Endpoint\\EndpointInterface' not found in wp-content/plugins/conotoxia-payment-gateway/library/sdk/src/Endpoint/GetPublicKeysEndpoint.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
conotoxia-payment-gateway/woocommerce-gateway-conotoxia-pay.php 77% from 13 tests
The primary PHP file in "Conotoxia Pay Payment Gateway" version 1.31.18 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "4.2")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("conotoxia-payment-gateway.php" instead of "woocommerce-gateway-conotoxia-pay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin12,560 lines of code in 327 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 290 | 3,294 | 8,858 | 11,144 |
SVG | 27 | 0 | 0 | 524 |
PO File | 2 | 194 | 114 | 414 |
Markdown | 2 | 44 | 0 | 194 |
CSS | 3 | 26 | 0 | 160 |
JavaScript | 3 | 13 | 0 | 124 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 75 | |
Traits | 8 | |
Classes | 203 | |
▷ Abstract classes | 5 | 2.46% |
▷ Concrete classes | 198 | 97.54% |
▷ Final classes | 6 | 3.03% |
Methods | 1,203 | |
▷ Static methods | 51 | 4.24% |
▷ Public methods | 1,058 | 87.95% |
▷ Protected methods | 94 | 7.81% |
▷ Private methods | 51 | 4.24% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 230 | |
▷ Global constants | 2 | 0.87% |
▷ Class constants | 228 | 99.13% |
▷ Public constants | 196 | 85.96% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin