Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.75ms] Passed 4 tests
A check of server-side resources used by Payment Gateway for LiqPay for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 42.59 ▲0.70 |
Dashboard /wp-admin | 3.36 ▼0.03 | 49.47 ▼15.39 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 48.44 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 85.09 ▼23.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 36.32 ▼2.15 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Payment Gateway for LiqPay for Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.25 ▲0.06 | 2.26 ▲0.60 | 40.69 ▼4.32 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.07 | 86.05 ▼5.66 | 42.44 ▲1.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.05 | 36.61 ▲0.57 | 35.97 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 17.91 ▼5.21 | 632.17 ▼73.95 | 64.16 ▲3.07 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.00 | 96.77 ▼15.16 | 41.06 ▼8.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-liqpay/includes/WC_Gateway_kmnd_Liqpay.php:7
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: payment, wc, woocommerce, liqpay, woo...
wc-liqpay/wc-liqpay.php Passed 13 tests
The main file in "Payment Gateway for LiqPay for Woocommerce" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
107 characters long description:
Plugin for paying for products through the LiqPay service. Works in conjunction with the Woocommerce plugin
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
Success! There were no dangerous files found in this plugin656 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 151 | 51 | 428 |
PO File | 1 | 40 | 44 | 109 |
CSS | 1 | 4 | 0 | 68 |
SVG | 1 | 0 | 0 | 45 |
JavaScript | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/LiqPay.png | 10.49KB | 3.55KB | ▼ 66.21% |