Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼157.70ms] Passed 4 tests
Analyzing server-side resources used by Unified Payment Services Limited - WooCommerce Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 39.80 ▲3.27 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.06 ▲2.77 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.94 ▲7.73 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 87.27 ▼636.19 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.68 ▼0.64 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Unified Payment Services Limited - WooCommerce Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.88 ▲0.37 | 8.31 ▼0.89 | 49.55 ▼1.58 |
Dashboard /wp-admin | 2,973 ▲39 | 5.96 ▲0.04 | 149.24 ▲1.98 | 125.52 ▲8.68 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.02 | 66.23 ▼3.56 | 90.09 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.80 ▲0.12 | 389.69 ▲11.71 | 107.31 ▼0.19 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 4.99 ▼0.02 | 150.43 ▼9.86 | 116.44 ▼4.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unified-payment-services-limited-payment-gateway-for-woocommerce/woocommerce-unified-payment-gateway.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/unified-payment-services-limited-payment-gateway-for-woocommerce/woocommerce-ups.php:2
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== unified-payment-services-limited-payment-gateway-for-woocommerce ===
) - Requires at least: Invalid version format
unified-payment-services-limited-payment-gateway-for-woocommerce/woocommerce-unified-payment-gateway.php 92% from 13 tests
"Unified Payment Services Limited - WooCommerce Gateway" version 1.0.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: The principal plugin file should be the same as the plugin slug ("unified-payment-services-limited-payment-gateway-for-woocommerce.php" instead of "woocommerce-unified-payment-gateway.php")
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
Everything looks great! No dangerous files found in this plugin423 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 105 | 423 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/creditcard.png | 5.64KB | 2.74KB | ▼ 51.44% |
assets/images/ups.png | 15.73KB | 6.88KB | ▼ 56.27% |