Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.30ms] Passed 4 tests
An overview of server-side resources used by WebPlus Gateway for LiqPay on WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.67 ▼9.21 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.70 ▼1.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.68 ▼9.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.35 ▼4.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.88 ▲2.09 |
Pro версия /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus&page=pro-liqpay-webplus-version | 3.20 | 31.18 |
WebPlus LiqPay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus | 3.01 | 24.74 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WebPlus Gateway for LiqPay on WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.64 ▲0.27 | 1.61 ▼0.06 | 40.63 ▲0.83 |
Dashboard /wp-admin | 2,221 ▲41 | 5.53 ▼0.07 | 81.05 ▼11.91 | 74.28 ▲25.45 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.98 ▼0.03 | 36.65 ▼2.69 | 32.49 ▼8.73 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 18.30 ▼4.83 | 681.39 ▼8.56 | 58.54 ▼4.49 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.22 ▲0.11 | 98.72 ▲2.86 | 85.51 ▲43.91 |
Pro версия /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus&page=pro-liqpay-webplus-version | 810 | 1.99 | 26.87 | 30.31 |
WebPlus LiqPay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus | 28 | 0.42 | 0.07 | 3.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webplus-liqpay-woocommerce/liqpay-webplus.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Version not formatted correctly
webplus-liqpay-woocommerce/liqpay-webplus.php 92% from 13 tests
"WebPlus Gateway for LiqPay on WooCommerce" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("webplus-liqpay-woocommerce.php" instead of "liqpay-webplus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin336 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 55 | 143 | 289 |
SVG | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 1 | 5.00% |
▷ Private methods | 3 | 15.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/liqpay.png | 1.24KB | 1.09KB | ▼ 11.76% |
img/logo-liqpay.png | 4.51KB | 2.46KB | ▼ 45.58% |