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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.33ms] Passed 4 tests
This is a short check of server-side resources used by UPI QR Code Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.17 ▼5.14 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.32 ▲1.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 53.36 ▲0.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.11 ▼5.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.54 ▲1.03 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
upiwc_plugin_installed_time |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for UPI QR Code Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲38 | 14.38 ▼0.04 | 2.16 ▲0.17 | 44.36 ▼1.45 |
Dashboard /wp-admin | 2,195 ▲18 | 5.68 ▲0.01 | 80.75 ▼10.07 | 40.99 ▼1.98 |
Posts /wp-admin/edit.php | 2,100 ▲18 | 2.01 ▲0.02 | 36.71 ▼0.58 | 34.12 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.33 | 677.67 ▼10.35 | 54.06 ▼0.56 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.03 | 96.35 ▼27.34 | 41.49 ▼5.87 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: qrcode, woocommerce, upi, bhim upi, paytm upi...
upi-qr-code-payment-for-woocommerce/upi-qr-code-payment-for-woocommerce.php 85% from 13 tests
The principal PHP file in "UPI QR Code Payment Gateway for WooCommerce" v. 1.3.6 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.1")
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 plugin926 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 159 | 342 | 890 |
JavaScript | 4 | 0 | 28 | 16 |
SVG | 4 | 0 | 0 | 16 |
CSS | 4 | 0 | 8 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 70.50 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icon/logo.png | 4.22KB | 2.12KB | ▼ 49.73% |