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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.51ms] Passed 4 tests
Analyzing server-side resources used by PayU Paisa - Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.61 ▼3.50 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.05 ▼3.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.55 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.49 ▲3.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.60 ▲1.36 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PayU Paisa - Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.65 ▼0.64 | 4.24 ▲2.31 | 38.89 ▼7.89 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼1.04 | 109.10 ▲5.64 | 42.23 ▲1.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.00 | 42.82 ▲5.41 | 35.01 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.29 ▼4.87 | 636.32 ▼7.67 | 50.72 ▼7.82 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.29 ▲0.13 | 97.06 ▼3.44 | 40.27 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-payu-paisa/index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Invalid URI ("'http://jeetudyog.com/donation.php'")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (WooCommerce payment gateway setting page), #2 (PayU Paisa setting page), #3 (PayU Paisa Payment gateway option at the checkout page)
- Plugin Name: You should set the name of your plugin on the first line (
=== woo-payu-paisa ===
)
woo-payu-paisa/index.php 85% from 13 tests
"PayU Paisa - Woocommerce" version 2.1'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:
- Description: The description should be shorter than 140 characters (currently 213 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-payu-paisa.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
Everything looks great! No dangerous files found in this plugin326 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 49 | 326 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 1 | |
▷ Global constants | 1 | 100.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
5 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 4.16KB | 0.91KB | ▼ 78.16% |
screenshot-3.png | 11.89KB | 3.80KB | ▼ 68.03% |
screenshot-1.png | 108.45KB | 35.43KB | ▼ 67.33% |
screenshot-4.png | 51.22KB | 15.61KB | ▼ 69.52% |
screenshot-2.png | 108.32KB | 35.87KB | ▼ 66.88% |