Benchmarks
Plugin footprint Passed 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: ▼139.36ms] Passed 4 tests
An overview of server-side resources used by All BD Mobile Payments Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.83 ▲5.68 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.67 ▲2.07 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.65 ▲7.76 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 87.57 ▼561.14 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.00 ▼4.05 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for All BD Mobile Payments Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲113 | 16.26 ▲0.78 | 7.84 ▼1.79 | 47.04 ▲0.90 |
Dashboard /wp-admin | 2,977 ▲41 | 5.87 ▼0.05 | 128.71 ▼43.80 | 109.63 ▼8.06 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.70 ▲0.00 | 65.87 ▲2.01 | 95.52 ▲6.54 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.49 ▼0.25 | 361.18 ▼11.52 | 113.41 ▲9.78 |
Media Library /wp-admin/upload.php | 1,811 ▲7 | 5.05 ▲0.00 | 147.53 ▼1.13 | 119.27 ▲1.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-bd-mobile-payments-gateway/index.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
5 plugin tags: bangladesh, payment, mobile, gateway, mobile banking
all-bd-mobile-payments-gateway/index.php 92% from 13 tests
"All BD Mobile Payments Gateway" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("all-bd-mobile-payments-gateway.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,254 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 522 | 502 | 2,254 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.75 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.11% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gateways/images/Rocket.png | 1.66KB | 1.28KB | ▼ 22.86% |
gateways/images/Nagad.png | 1.90KB | 1.45KB | ▼ 23.81% |
gateways/images/MYCash.png | 1.15KB | 1.11KB | ▼ 3.32% |
gateways/images/UCash.png | 1.19KB | 0.44KB | ▼ 63.47% |
gateways/images/SureCash.png | 2.05KB | 1.44KB | ▼ 29.52% |