Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.19ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway bKash for WC
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.38 ▲5.36 |
Dashboard /wp-admin | 3.36 ▲0.06 | 56.43 ▲5.65 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.47 ▲2.77 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.47 ▼5.03 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 43.39 ▲9.17 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_bkash_transactions |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
dc_bkash_version |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
dc_bkash_installed |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway bKash for WC
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲74 | 14.40 ▼0.17 | 1.72 ▼0.03 | 46.79 ▲8.68 |
Dashboard /wp-admin | 2,254 ▲80 | 5.75 ▲0.07 | 96.14 ▼4.45 | 79.99 ▲35.90 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 2.38 ▲0.42 | 33.22 ▼3.40 | 34.22 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 23.11 ▼0.34 | 744.57 ▲70.36 | 56.39 ▲1.90 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.29 ▲0.06 | 97.25 ▲0.73 | 81.89 ▲36.26 |
Refund /wp-admin/admin.php?page=dc-bkash#/refund | 1,054 | 4.61 | 83.30 | 30.46 |
Transactions /wp-admin/admin.php?page=dc-bkash#/ | 1,101 | 4.94 | 86.31 | 31.34 |
Search Transaction /wp-admin/admin.php?page=dc-bkash#/search-transaction | 1,051 | 4.56 | 74.75 | 26.69 |
Settings /wp-admin/admin.php?page=dc-bkash#/settings | 1,058 | 4.75 | 84.90 | 29.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_bkash_transactions
- This plugin does not fully uninstall, leaving 8 options in the database
- dc_bkash_version
- can_compress_scripts
- db_upgraded
- dc_bkash_installed
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-payment-bkash/templates/admin/upgrade-notice.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-payment-bkash/templates/admin/transaction-charge.php:11
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\API\\BkashBaseRestController' not found in wp-content/plugins/woo-payment-bkash/includes/API/Transaction.php:19
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\Abstracts\\BkashProcessor' not found in wp-content/plugins/woo-payment-bkash/includes/Gateway/IntegrationTypes/CheckoutUrl.php:23
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\Abstracts\\DcBkashUpgrader' not found in wp-content/plugins/woo-payment-bkash/includes/Upgrade/Upgrades/V_2_0_0.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-payment-bkash/templates/frontend/transaction-charge.php:11
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\API\\BkashBaseRestController' not found in wp-content/plugins/woo-payment-bkash/includes/API/Payment.php:22
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\Abstracts\\BkashProcessor' not found in wp-content/plugins/woo-payment-bkash/includes/Gateway/IntegrationTypes/Checkout.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/woo-payment-bkash/includes/API/BkashBaseRestController.php:20
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\API\\BkashBaseRestController' not found in wp-content/plugins/woo-payment-bkash/includes/API/Settings.php:20
- > PHP Fatal error
Uncaught Error: Class 'DCoders\\Bkash\\Abstracts\\DcBkashUpgrader' not found in wp-content/plugins/woo-payment-bkash/includes/Upgrade/Upgrades/V_2_1_0.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=dc-bkash#/
- > Console-api (warning) in wp-content/plugins/woo-payment-bkash/assets/js/vendors.js?ver=1681053646+1:399095
(react-paginate): The pageCount prop value provided is not an integer (0). Did you forget a Math.ceil()?
- > GET request to /wp-admin/admin.php?page=dc-bkash#/settings
- > Network (severe)
index.php/wp-json/dc-bkash/v1/settings?_locale=user - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
5 plugin tags: mobilebanking, bangladesh, bdt, woocommerce pgw, bkash
woo-payment-bkash/woo-payment-bkash.php 92% from 13 tests
"Payment Gateway bKash for WC" version 3.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected5,303 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,225 | 3,025 | 4,538 |
Markdown | 2 | 117 | 0 | 408 |
JavaScript | 5 | 33 | 7 | 244 |
JSON | 3 | 0 | 0 | 96 |
CSS | 3 | 4 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 1 | 2.94% |
Methods | 283 | |
▷ Static methods | 34 | 12.01% |
▷ Public methods | 239 | 84.45% |
▷ Protected methods | 7 | 2.47% |
▷ Private methods | 37 | 13.07% |
Functions | 26 | |
▷ Named functions | 22 | 84.62% |
▷ Anonymous functions | 4 | 15.38% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bkash.png | 1.98KB | 0.74KB | ▼ 62.83% |
assets/images/checked.png | 0.71KB | 0.53KB | ▼ 25.10% |
assets/images/bkash_logo.png | 9.59KB | 3.67KB | ▼ 61.70% |