Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.26ms] Passed 4 tests
This is a short check of server-side resources used by = VietQR
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.70 ▼1.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.13 ▼1.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.44 ▲3.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.10 ▼19.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.09 ▲1.53 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by = VietQR
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.09 | 1.83 ▼0.17 | 46.87 ▲2.96 |
Dashboard /wp-admin | 2,203 ▲18 | 5.95 ▲0.06 | 121.68 ▲12.98 | 52.34 ▲9.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 33.73 ▼2.64 | 36.49 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,513 ▼7 | 17.59 ▼5.50 | 677.70 ▼9.57 | 64.47 ▲8.65 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.08 | 111.09 ▼5.31 | 47.71 ▲0.95 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #5 in vietqr/assets to your readme.txt
vietqr/wc-gateway-vietqr.php 85% from 13 tests
The main PHP script in "= VietQR" version 3.4.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 189 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("vietqr.php" instead of "wc-gateway-vietqr.php")
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
No dangerous file extensions were detected720 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 101 | 149 | 614 |
PO File | 1 | 21 | 29 | 82 |
CSS | 2 | 2 | 0 | 21 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/vietqr.png | 1.71KB | 1.66KB | ▼ 2.92% |