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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.70ms] Passed 4 tests
A check of server-side resources used by Younited Pay Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 33.17 ▼8.46 |
Dashboard /wp-admin | 3.41 ▲0.10 | 48.08 ▼2.71 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.80 ▲2.54 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.59 ▼5.71 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.86 ▼1.93 |
Younited Pay Gateway /wp-admin/admin.php?page=younitedpay_settings | 3.29 | 31.09 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
woocommerce_younitedpay-gateway_customerid |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Younited Pay Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.62 ▲0.34 | 2.21 ▲0.30 | 39.50 ▼4.47 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.01 | 89.48 ▼12.21 | 40.79 ▼4.31 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.03 | 39.60 ▲3.81 | 37.39 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.21 ▲5.01 | 632.31 ▼29.00 | 61.45 ▼7.33 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.26 ▲0.06 | 100.66 ▲1.38 | 40.84 ▼2.39 |
Younited Pay Gateway /wp-admin/admin.php?page=younitedpay_settings | 824 | 2.17 | 22.88 | 26.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- woocommerce_younitedpay-gateway_customerid
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/younitedpay-payment-gateway/views/payment.php
- > /wp-content/plugins/younitedpay-payment-gateway/views/bestprice.php
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: ajax in wp-content/plugins/younitedpay-payment-gateway/views/bestprice.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/younitedpay-payment-gateway/views/home.php:2
- > PHP Notice
Undefined variable: possible_maturities in wp-content/plugins/younitedpay-payment-gateway/views/payment.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/younitedpay-payment-gateway/views/payment_maturity_details.php:1
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/younitedpay-payment-gateway/views/payment.php on line 46
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/younitedpay-payment-gateway/views/payment.php on line 51
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/younitedpay-payment-gateway/views/payment.php on line 1
- > PHP Notice
Undefined variable: possible_prices in wp-content/plugins/younitedpay-payment-gateway/views/payment.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/younitedpay-payment-gateway/views/menu.php:6
- > PHP Notice
Undefined variable: api_keys_is_defined in wp-content/plugins/younitedpay-payment-gateway/views/config.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were no plugin tags found
younitedpay-payment-gateway/wc-younitedpay-gateway.php 85% from 13 tests
"Younited Pay Payment Gateway" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("younitedpay-payment-gateway.php" instead of "wc-younitedpay-gateway.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,418 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 462 | 582 | 2,442 |
PO File | 2 | 241 | 8 | 510 |
CSS | 2 | 68 | 6 | 321 |
JavaScript | 2 | 31 | 13 | 123 |
JSON | 1 | 0 | 0 | 16 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 30.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 16 | 18.82% |
▷ Public methods | 79 | 92.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.06% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.44MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/close.png | 1.05KB | 0.61KB | ▼ 42.15% |
assets/img/image_marketing_fr.png | 15.94KB | 7.63KB | ▼ 52.15% |
assets/img/image_marketing_es.png | 433.32KB | 109.61KB | ▼ 74.70% |