Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.56ms] Passed 4 tests
A check of server-side resources used by Razorpay Payment Links for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.26 ▼0.10 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.67 ▼2.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.22 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.71 ▲0.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.72 ▲3.28 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
rzpwc_plugin_installed_time |
Browser metrics Passed 4 tests
Razorpay Payment Links for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.15 ▼1.59 | 1.74 ▼0.43 | 43.05 ▼2.76 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.05 | 107.19 ▼3.90 | 38.74 ▼1.21 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.07 | 37.62 ▼3.44 | 34.90 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.49 ▲0.51 | 673.59 ▲72.64 | 62.89 ▲14.04 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.20 ▼0.05 | 106.04 ▲8.74 | 43.75 ▲0.86 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: razorpay, credit card, qrcode, debit card, woocommerce...
rzp-woocommerce/rzp-woocommerce.php 85% from 13 tests
This is the main PHP file of "Razorpay Payment Links for WooCommerce" version 1.1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.4")
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
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
Good job! No executable or dangerous file extensions detected870 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 211 | 390 | 870 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 26 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 33.33% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/logo.png | 2.63KB | 1.93KB | ▼ 26.55% |