Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.69ms] Passed 4 tests
A check of server-side resources used by QR Payments Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.26 ▼0.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.89 ▼12.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.71 ▼4.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.76 ▲1.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.79 ▼0.85 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for QR Payments Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.23 ▼0.11 | 1.64 ▼0.21 | 37.49 ▼0.38 |
Dashboard /wp-admin | 2,189 ▲14 | 5.56 ▼0.00 | 96.03 ▼23.63 | 42.36 ▼4.97 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▲0.01 | 40.36 ▼1.41 | 35.95 ▼6.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.17 ▲0.12 | 636.71 ▲36.61 | 52.11 ▼1.95 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▼0.01 | 99.19 ▲1.92 | 40.24 ▼2.88 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Please fix the following attributes:
- Contributors: Plugin contributors not specified
qr-pay-gateway/qr-pay-gateway.php Passed 13 tests
The main PHP file in "QR Payments Gateway" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
QR Payments For Woocommerce Payment Gateway For Touch N Go, DuitNow, Grab, Shopee Pay, Boost
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
Good job! No executable or dangerous file extensions detected276 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 102 | 276 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/duitnow-ewallet-logo.png | 3.97KB | 1.88KB | ▼ 52.59% |
assets/images/boost-ewallet-logo.png | 4.38KB | 2.09KB | ▼ 52.33% |
assets/images/shopeepay-ewallet-logo.png | 3.45KB | 1.72KB | ▼ 50.14% |
assets/images/grabpay-ewallet-logo.png | 5.42KB | 2.32KB | ▼ 57.11% |
assets/images/tng-ewallet-logo.png | 5.89KB | 2.44KB | ▼ 58.55% |