Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.30ms] Passed 4 tests
This is a short check of server-side resources used by Payment for BANKNET Gateway in Viet Nam
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.55 ▼4.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.28 ▼1.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.78 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.56 ▼5.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.69 ▼1.39 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment for BANKNET Gateway in Viet Nam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.04 | 1.70 ▼0.27 | 38.99 ▼7.45 |
Dashboard /wp-admin | 2,206 ▲17 | 4.87 ▼0.23 | 100.53 ▼22.78 | 38.45 ▼3.86 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.02 | 34.51 ▲0.55 | 32.33 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.29 ▲5.81 | 622.33 ▼46.39 | 51.83 ▼11.03 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.28 ▲0.12 | 93.31 ▼17.58 | 44.46 ▼3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-payment-for-banknet-in-viet-nam/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (WooCommerce Checkout section's payment gateway setting page), #2 (BANKNET Payments setting page), #3 (BANKNET Payments option at Checkout page)
woo-payment-for-banknet-in-viet-nam/banknet.php 92% from 13 tests
The main PHP file in "Payment for BANKNET Gateway in Viet Nam" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-payment-for-banknet-in-viet-nam.php" instead of "banknet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected353 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 25 | 353 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 30.77% |
Functions | 2 | |
▷ Named functions | 2 | 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
4 PNG files occupy 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 87.99KB | 31.90KB | ▼ 63.75% |
images/banknet_logo.png | 29.72KB | 6.83KB | ▼ 77.03% |
screenshot-3.png | 174.18KB | 61.79KB | ▼ 64.52% |
screenshot-1.png | 75.87KB | 23.22KB | ▼ 69.39% |