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 gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.79ms] Passed 4 tests
An overview of server-side resources used by QRCode Payment for Vietnam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.50 ▼2.73 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.83 ▼8.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.63 ▲9.20 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.05 ▼20.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.01 ▲4.95 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QRCode Payment for Vietnam
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.27 ▼0.29 | 1.68 ▼0.18 | 44.18 ▲2.27 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.08 | 93.21 ▲3.97 | 41.12 ▲2.65 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.00 | 39.63 ▼1.32 | 36.57 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,528 ▼21 | 23.02 ▲4.87 | 686.15 ▲56.74 | 55.06 ▼8.97 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▲0.04 | 106.86 ▲0.39 | 45.05 ▼0.37 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
qrcode-payment-for-vietnam/qrcode-payment-for-vietnam.php Passed 13 tests
The main PHP file in "QRCode Payment for Vietnam" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
Integrate QR Code from VietQR, Momo, ZaloPay, AirPay, ViettelPay, Moca Payment Gateway for Woocommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected779 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 128 | 118 | 456 |
CSS | 1 | 29 | 0 | 146 |
PO File | 1 | 33 | 33 | 97 |
JavaScript | 4 | 15 | 0 | 80 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 3.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.97MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/momo.png | 28.72KB | 10.42KB | ▼ 63.73% |
assets/images/moca.png | 95.69KB | 29.72KB | ▼ 68.94% |
assets/images/guide-viettelpay.png | 150.14KB | 38.26KB | ▼ 74.52% |
assets/images/download.png | 0.60KB | 0.41KB | ▼ 32.25% |
assets/images/guide-vietqr.png | 209.49KB | 55.97KB | ▼ 73.28% |