Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.40ms] 75% from 4 tests
An overview of server-side resources used by bKash WordPress Payment
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 936.31ms on /wp-admin/admin.php?page=wpbkash_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.20 ▼6.40 |
Dashboard /wp-admin | 3.40 ▲0.06 | 51.59 ▼17.96 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.25 ▲4.37 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 94.37 ▼6.89 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.07 ▲1.66 |
Settings /wp-admin/admin.php?page=wpbkash_settings | 3.45 | 936.31 |
API Reuqest Docs /wp-admin/admin.php?page=api-docs | 3.29 | 37.23 |
All Entries /wp-admin/admin.php?page=wpbkash | 3.33 | 38.74 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 65 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_wpbkash |
wp_wpbkash_refund |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
wpbkash_invoice |
wpbkash_installed |
wpbkash_general |
wpbkash_extra |
wpbkash_debug |
... |
Browser metrics Passed 4 tests
Checking browser requirements for bKash WordPress Payment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 13.20 ▼1.08 | 1.66 ▼0.27 | 38.31 ▼5.68 |
Dashboard /wp-admin | 2,246 ▲43 | 5.83 ▼0.08 | 101.34 ▲1.04 | 71.39 ▲27.38 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 2.04 ▲0.04 | 39.44 ▼1.84 | 31.52 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.28 ▲5.66 | 750.34 ▲68.41 | 64.17 ▲0.70 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.30 ▲0.07 | 103.10 ▼2.84 | 68.81 ▲22.88 |
Settings /wp-admin/admin.php?page=wpbkash_settings | 888 | 2.06 | 25.23 | 26.57 |
API Reuqest Docs /wp-admin/admin.php?page=api-docs | 887 | 2.05 | 25.38 | 25.29 |
All Entries /wp-admin/admin.php?page=wpbkash | 1,068 | 2.11 | 27.81 | 26.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wpbkash
- wp_wpbkash_refund
- This plugin did not uninstall successfully, leaving 12 options in the database
- wpbkash_version
- wpbkash_invoice
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- wpbkash_installed
- wpbkash_debug
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wpbkash/class-wpbkash.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wpbkash/templates/template-wpbkash-api.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbkash/includes/functions.php:327
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbkash/includes/functions.php:327
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: woocommerce, bangladesh, bkash, bdt, gateway...
wpbkash/class-wpbkash.php 92% from 13 tests
"bKash WordPress Payment" version 0.1.9.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wpbkash.php" instead of "class-wpbkash.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin6,278 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,188 | 1,754 | 4,842 |
CSS | 7 | 117 | 23 | 775 |
JavaScript | 5 | 89 | 103 | 639 |
JSON | 2 | 0 | 0 | 21 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 5 | 15.62% |
Methods | 272 | |
▷ Static methods | 25 | 9.19% |
▷ Public methods | 266 | 97.79% |
▷ Protected methods | 3 | 1.10% |
▷ Private methods | 3 | 1.10% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bkash-logo.png | 3.99KB | 1.38KB | ▼ 65.54% |
assets/images/bkash-white.png | 10.37KB | 4.30KB | ▼ 58.54% |
assets/images/error.png | 4.61KB | 2.43KB | ▼ 47.22% |
assets/images/success.png | 5.41KB | 2.93KB | ▼ 45.79% |