Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲0.45ms] Passed 4 tests
Server-side resources used by Easy LiqPay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.08 ▼0.51 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.33 ▲0.45 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.58 ▲1.14 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 101.44 ▲7.05 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.39 ▲0.74 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_elp_widget_donate |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy LiqPay
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.44 ▼0.92 | 7.47 ▲5.75 | 41.20 ▼2.19 |
Dashboard /wp-admin | 2,211 ▲37 | 5.57 ▼0.02 | 85.85 ▼4.41 | 74.45 ▲34.63 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▼0.01 | 40.44 ▲4.35 | 37.08 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,541 ▲3 | 23.60 ▲0.62 | 655.41 ▲9.94 | 63.78 ▲10.23 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.26 ▲0.03 | 100.73 ▼1.33 | 67.45 ▲26.44 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_elp_widget_donate
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-liqpay/include/callback.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ELiq_Pay_Field' not found in wp-content/plugins/easy-liqpay/include/fields/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-liqpay/public/widgets/donate/ELiq_Pay_Donate_Widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'ELiq_Pay_Field' not found in wp-content/plugins/easy-liqpay/include/fields/select.php:3
- > PHP Fatal error
Uncaught Error: Class 'ELiq_Pay_Field' not found in wp-content/plugins/easy-liqpay/include/fields/text.php:3
- > PHP Fatal error
Uncaught InvalidArgumentException: public_key is empty in wp-content/plugins/easy-liqpay/include/SDK/LiqPay.php:62
- > PHP Fatal error
Uncaught Error: Class 'ELiq_Pay_Field' not found in wp-content/plugins/easy-liqpay/include/fields/textarea.php:3
- > PHP Fatal error
Uncaught Error: Class 'ELiq_Pay_Field' not found in wp-content/plugins/easy-liqpay/include/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-liqpay/easy-liqpay.php:28
- > PHP Fatal error
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 96% from 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
5 plugin tags: privatbank, donate, privat24, liqpay, pb
easy-liqpay/easy-liqpay.php 92% from 13 tests
"Easy LiqPay" version 0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,690 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 360 | 183 | 1,301 |
PO File | 2 | 117 | 155 | 230 |
CSS | 2 | 8 | 26 | 156 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 1 | 8.33% |
Methods | 91 | |
▷ Static methods | 16 | 17.58% |
▷ Public methods | 58 | 63.74% |
▷ Protected methods | 12 | 13.19% |
▷ Private methods | 21 | 23.08% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 22 | |
▷ Global constants | 8 | 36.36% |
▷ Class constants | 14 | 63.64% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-icon.png | 0.54KB | 0.46KB | ▼ 14.78% |