Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▲2.95ms] Passed 4 tests
An overview of server-side resources used by Tích Hợp Thanh Toán Quét Mã QR Code Tự Động – MoMo, ViettelPay, MB, Vietcombank, Vietinbank, Techcombank, Agribank, ACB, BIDV
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.77 ▼0.84 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.09 ▲4.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 60.89 ▲14.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.04 ▲7.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.06 ▲1.17 |
Server storage [IO: ▲2.27MB] [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: 229 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Tích Hợp Thanh Toán Quét Mã QR Code Tự Động – MoMo, ViettelPay, MB, Vietcombank, Vietinbank, Techcombank, Agribank, ACB, BIDV
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.41 | 1.66 ▼0.28 | 38.42 ▼3.15 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.08 | 102.16 ▲8.21 | 48.28 ▲7.83 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.02 | 41.54 ▲3.82 | 37.48 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.00 ▲4.90 | 712.72 ▲87.14 | 68.18 ▲3.03 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.16 ▼0.11 | 103.08 ▼2.90 | 48.24 ▲1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thanh-toan-qrcode/inc/functions.php:150
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Screenshots: Add images for these screenshots: #8 (Hiển thị các thông báo số dư theo nội dung chuyển khoản), #9 (Xem chi tiết lịch sử thông báo), #10 (Menu điều hướng), #11 (Cài đặt thông báo & kết nối website), #12 (Quét mã QR để kết nối website)
thanh-toan-qrcode/ttqr.php 69% from 13 tests
Analyzing the main PHP file in "Tích Hợp Thanh Toán Quét Mã QR Code Tự Động – MoMo, ViettelPay, MB, Vietcombank, Vietinbank, Techcombank, Agribank, ACB, BIDV" version 1.2.1
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 98 characters long)
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("thanh-toan-qrcode.php" instead of "ttqr.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/thanh-toan-qrcode/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 1,833 | 2,796 | 8,892 |
JavaScript | 2 | 237 | 172 | 1,841 |
PO File | 1 | 81 | 101 | 180 |
CSS | 1 | 5 | 3 | 84 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 0 | 0.00% |
Methods | 514 | |
▷ Static methods | 134 | 26.07% |
▷ Public methods | 414 | 80.54% |
▷ Protected methods | 96 | 18.68% |
▷ Private methods | 4 | 0.78% |
Functions | 26 | |
▷ Named functions | 14 | 53.85% |
▷ Anonymous functions | 12 | 46.15% |
Constants | 100 | |
▷ Global constants | 100 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
59 PNG files occupy 1.59MB with 1.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/seabank.png | 13.19KB | 0.00KB | ▼ 100.00% |
assets/shopeepay.png | 14.35KB | 6.96KB | ▼ 51.53% |
assets/moca.png | 15.48KB | 8.80KB | ▼ 43.12% |
(invalid) assets/momo.png | 1.18KB | 0.00KB | ▼ 100.00% |
assets/lvp.png | 26.04KB | 10.29KB | ▼ 60.47% |