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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by PayU EU Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 33.91 ▼7.35 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.79 ▼5.77 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.98 ▲4.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.32 ▼4.43 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.97 ▲1.21 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
woocommerce_payucreditcard_settings |
_payu_plugin_version |
woocommerce_payulistbanks_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
woocommerce_payuinstallments_settings |
db_upgraded |
widget_recent-comments |
payu_settings_option_name |
... |
Browser metrics Passed 4 tests
Checking browser requirements for PayU EU Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.14 ▼0.21 | 1.59 ▼0.03 | 37.69 ▼9.73 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▼0.05 | 90.46 ▼4.81 | 39.78 ▼2.72 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.04 | 41.80 ▲2.39 | 35.06 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.15 ▼0.07 | 665.32 ▲1.85 | 61.87 ▲6.84 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.36 ▲0.16 | 96.70 ▼8.23 | 42.18 ▼0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 11 options in the database
- woocommerce_payulistbanks_settings
- woocommerce_payucreditcard_settings
- payu_settings_option_name
- can_compress_scripts
- _payu_plugin_version
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_PayUGateways' not found in wp-content/plugins/woo-payu-payment-gateway/includes/WC_Gateway_PayuStandard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-payu-payment-gateway/includes/PayUSettings.php:253
- > PHP Fatal error
Uncaught Error: Interface 'OauthCacheInterface' not found in wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/Oauth/Cache/OauthCacheFile.php:3
- > PHP Fatal error
Uncaught Error: Interface 'AuthType' not found in wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/AuthType/TokenRequest.php:3
- > PHP Fatal error
Uncaught Error: Class 'OpenPayU' not found in wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/v2/Retrieve.php:10
- > PHP Fatal error
Uncaught Error: Class 'OpenPayU' not found in wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/v2/Refund.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_PayUGateways' not found in wp-content/plugins/woo-payu-payment-gateway/includes/WC_Gateway_PayuPaypo.php:3
- > PHP Fatal error
Uncaught Error: Interface 'OauthCacheInterface' not found in wp-content/plugins/woo-payu-payment-gateway/includes/OauthCacheWP.php:3
- > PHP Fatal error
Uncaught Error: Interface 'OauthCacheInterface' not found in wp-content/plugins/woo-payu-payment-gateway/includes/lib/OpenPayU/Oauth/Cache/OauthCacheMemcached.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_PayUGateways' not found in wp-content/plugins/woo-payu-payment-gateway/includes/WC_Gateway_PayuBlik.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: payment, payment gateway, payu poland, platnosci, payu...
woo-payu-payment-gateway/woocommerce-gateway-payu.php 85% from 13 tests
The principal PHP file in "PayU EU Payment Gateway for WooCommerce" v. 2.0.33 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-payu-payment-gateway.php" instead of "woocommerce-gateway-payu.php")
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
Everything looks great! No dangerous files found in this plugin4,338 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 763 | 1,152 | 3,556 |
PO File | 1 | 100 | 132 | 308 |
Sass | 3 | 30 | 0 | 195 |
JavaScript | 5 | 22 | 0 | 169 |
SVG | 5 | 0 | 0 | 103 |
CSS | 3 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 4 | 9.52% |
▷ Concrete classes | 38 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 243 | |
▷ Static methods | 85 | 34.98% |
▷ Public methods | 196 | 80.66% |
▷ Protected methods | 22 | 9.05% |
▷ Private methods | 25 | 10.29% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 32 | |
▷ Global constants | 4 | 12.50% |
▷ Class constants | 28 | 87.50% |
▷ Public constants | 28 | 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
There were not PNG files found in your plugin