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.01MB] [CPU: ▼8.96ms] Passed 4 tests
A check of server-side resources used by KOPA QR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.82 ▼4.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.61 ▼7.88 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.16 ▼2.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.02 ▼20.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.78 ▼1.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
woocommerce_kopa_custom_img_position |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
woocommerce_kopa_max_width |
Browser metrics Passed 4 tests
KOPA QR: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.55 ▼0.83 | 1.55 ▼0.26 | 40.19 ▼4.61 |
Dashboard /wp-admin | 2,216 ▲25 | 4.84 ▼0.04 | 109.15 ▲5.22 | 40.56 ▼3.63 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.09 | 39.65 ▼0.76 | 36.07 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,524 ▼2 | 17.62 ▼5.61 | 662.53 ▲71.60 | 51.82 ▲0.05 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▼0.08 | 97.94 ▼0.70 | 41.39 ▼2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- woocommerce_kopa_max_width
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- woocommerce_kopa_custom_img_position
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kopa-qr/kopa-qr.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: woocommerce, dokan, products, payments, sopping...
kopa-qr/kopa-qr.php Passed 13 tests
The primary PHP file in "KOPA QR" version 1.0.3 is used by WordPress to initiate all plugin functionality
80 characters long description:
KÖPA allows you to add a QR code for automatic payment to WooCommerce products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,024 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 120 | 139 | 696 |
PO File | 2 | 54 | 66 | 150 |
CSS | 1 | 14 | 10 | 119 |
JavaScript | 1 | 18 | 9 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/kopa-icon.png | 0.49KB | 0.76KB | 0.00% |