Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.03ms] Passed 4 tests
An overview of server-side resources used by ThueAPI – Tạo QRcode Banking thanh toán tự động
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.61 ▼0.92 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.13 ▼4.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.44 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.37 ▼18.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.97 ▼7.84 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by ThueAPI – Tạo QRcode Banking thanh toán tự động
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.16 | 1.82 ▲0.06 | 39.86 ▲0.32 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼0.03 | 98.50 ▼6.32 | 39.11 ▼2.54 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.00 | 39.33 ▲1.28 | 34.73 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.25 ▼5.08 | 633.27 ▼40.39 | 52.31 ▲0.87 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.27 ▲0.07 | 97.49 ▼13.77 | 41.09 ▼6.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/thueapi-thanh-toan-don-gian-voi-he-thong-tu-dong/thueapi-for-woocommerce.php
- > /wp-content/plugins/thueapi-thanh-toan-don-gian-voi-he-thong-tu-dong/classes/wc-thueapi.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Please describe screenshot #8 in thueapi-thanh-toan-don-gian-voi-he-thong-tu-dong/assets to your readme.txt
thueapi-thanh-toan-don-gian-voi-he-thong-tu-dong/thueapi-for-woocommerce.php 77% from 13 tests
The main PHP script in "ThueAPI – Tạo QRcode Banking thanh toán tự động" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thueapi-thanh-toan-don-gian-voi-he-thong-tu-dong.php" instead of "thueapi-for-woocommerce.php")
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 83 characters long)
- Description: Please keep the plugin description shorter than 140 characters (currently 250 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin536 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 84 | 13 | 527 |
JSON | 1 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 1 | 8.33% |
▷ Private methods | 2 | 16.67% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.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
9 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banks/timoplus.png | 11.49KB | 6.16KB | ▼ 46.40% |
assets/images/banks/tpbank.png | 30.94KB | 5.37KB | ▼ 82.64% |
assets/images/banks/mbbank.png | 17.47KB | 9.16KB | ▼ 47.60% |
assets/images/banks/bidv.png | 25.35KB | 4.18KB | ▼ 83.51% |
assets/images/banks/acb.png | 5.71KB | 4.50KB | ▼ 21.09% |