Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼309.97ms] Passed 4 tests
This is a short check of server-side resources used by BDT & Payment Gateways in WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 53.39 ▲1.17 |
Dashboard /wp-admin | 3.42 ▲0.02 | 31.84 ▼10.86 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 59.14 ▲19.77 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 105.56 ▼1,234.10 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 28.63 ▲3.90 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for BDT & Payment Gateways in WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲32 | 15.92 ▲0.28 | 6.35 ▼0.36 | 2.12 ▼0.44 |
Dashboard /wp-admin | 2,892 ▲31 | 6.08 ▼0.11 | 121.68 ▼29.71 | 160.83 ▼8.59 |
Posts /wp-admin/edit.php | 2,697 ▲27 | 3.26 ▲0.01 | 63.67 ▼2.23 | 150.98 ▲4.96 |
Add New Post /wp-admin/post-new.php | 1,706 ▼45 | 20.55 ▼0.26 | 476.79 ▲5.16 | 171.96 ▲10.19 |
Media Library /wp-admin/upload.php | 1,709 ▲11 | 5.53 ▲0.04 | 140.52 ▼2.09 | 190.90 ▲4.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bdt-2547-in-woocommerce/class-wc-bKash-gateway.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bdt-2547-in-woocommerce/bdt_in_woocommerce.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bdt-2547-in-woocommerce/class-wc-dbblMB-gateway.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== bdt-2547-in-woocommerce ===
) - Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: Invalid plugin version format
bdt-2547-in-woocommerce/bdt_in_woocommerce.php 92% from 13 tests
This is the main PHP file of "BDT & Payment Gateways in WooCommerce" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bdt-2547-in-woocommerce.php" instead of "bdt_in_woocommerce.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
There were no executable files found in this plugin226 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 57 | 226 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.30KB | 8.87KB | ▼ 54.03% |
images/dbblMB.png | 2.75KB | 1.59KB | ▼ 41.98% |
screenshot-3.png | 67.16KB | 21.32KB | ▼ 68.25% |
screenshot-5.png | 23.22KB | 8.52KB | ▼ 63.29% |
images/bKash.png | 3.69KB | 1.75KB | ▼ 52.55% |