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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼139.41ms] Passed 4 tests
A check of server-side resources used by WooCommerce Uviba Payments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.77 ▲14.44 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.58 ▲4.81 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 36.18 ▼4.48 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 89.66 ▼554.12 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.73 ▼3.84 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Uviba Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲121 | 15.93 ▲0.31 | 8.61 ▼0.89 | 44.74 ▼2.36 |
Dashboard /wp-admin | 2,970 ▲36 | 5.88 ▼0.16 | 149.05 ▼12.05 | 104.68 ▼6.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 66.08 ▼6.08 | 85.61 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.53 ▼3.01 | 396.35 ▲101.75 | 108.88 ▲5.29 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.02 | 149.73 ▼6.22 | 119.99 ▲4.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/uvibapay/index.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/uvibapay/classes/WC_Gateway_CustomWPressPlugin.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/uvibapay/classes/WC_Gateway_UvibaPayment.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WooCommerce > Payment Gateway > Uviba Payments - setting page), #2 (Checkout Page - Option of Payment by *Uviba Payments*), #3 (Uviba Payments - Client login page), #4 (Uviba Payments - Payment slection page), #5 (Uviba Payments - Payment processing page), #6 (Return Page - Transaction status as per *Uviba Payments* display on return page as per setting)
uvibapay/index.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Uviba Payments" version 1.3.6
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("uvibapay.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,281 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 255 | 229 | 1,281 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 12 | 26.09% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.82MB with 0.56MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/uviba_payment_gateway.png | 838.83KB | 260.34KB | ▼ 68.96% |