Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.18ms] Passed 4 tests
This is a short check of server-side resources used by Bangladeshi Payment Gateways - Make Payment Using QR Code
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.72 ▼3.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.58 ▼15.23 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.28 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.89 ▼5.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.73 ▲1.62 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 9 new options
New WordPress options |
---|
bdpg_installed_datetime |
bdpg_version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
bdpg_do_activation_redirect |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Bangladeshi Payment Gateways - Make Payment Using QR Code: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.21 ▼0.35 | 2.34 ▲0.65 | 44.74 ▼0.80 |
Dashboard /wp-admin | 2,218 ▲41 | 5.61 ▼0.04 | 91.03 ▼0.70 | 43.60 ▼0.84 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.99 ▲0.00 | 34.71 ▼1.98 | 37.38 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 18.26 ▼4.91 | 602.70 ▼34.04 | 81.07 ▲31.78 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▼0.05 | 97.52 ▼4.34 | 41.49 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- bdpg_installed_datetime
- bdpg_do_activation_redirect
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- bdpg_version
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bangladeshi-payment-gateways/uninstall.php
- > /wp-content/plugins/bangladeshi-payment-gateways/bd-payment-gateways.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bangladeshi-payment-gateways/includes/Gateways/Upay.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bangladeshi-payment-gateways/includes/Gateways/Nagad.php:17
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/bangladeshi-payment-gateways/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/bangladeshi-payment-gateways/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
require_once(wp-content/plugins/bangladeshi-payment-gateways/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/bangladeshi-payment-gateways/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bangladeshi-payment-gateways/includes/Gateways/Bkash.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bangladeshi-payment-gateways/includes/Gateways/Rocket.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: bangladeshi mobile banking, nagad, mobile payment gateways, upay qr code, rocket...
bangladeshi-payment-gateways/bd-payment-gateways.php 92% from 13 tests
The primary PHP file in "Bangladeshi Payment Gateways - Make Payment Using QR Code" version 2.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("bangladeshi-payment-gateways.php" instead of "bd-payment-gateways.php")
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
Everything looks great! No dangerous files found in this plugin4,683 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 930 | 1,622 | 4,098 |
Markdown | 1 | 82 | 0 | 255 |
JSON | 2 | 0 | 0 | 109 |
XML | 1 | 6 | 11 | 95 |
CSS | 2 | 11 | 1 | 61 |
JavaScript | 2 | 5 | 14 | 33 |
YAML | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 214 | |
▷ Static methods | 25 | 11.68% |
▷ Public methods | 178 | 83.18% |
▷ Protected methods | 6 | 2.80% |
▷ Private methods | 30 | 14.02% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Surecash.png | 24.78KB | 7.82KB | ▼ 68.43% |
assets/images/bKash.png | 9.35KB | 4.22KB | ▼ 54.92% |
assets/images/Rocket.png | 17.58KB | 7.21KB | ▼ 58.99% |
assets/images/Nagad.png | 10.80KB | 5.07KB | ▼ 53.12% |