Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.16ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce eSewa
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 40.47 ▼2.45 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.29 ▼6.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.08 | 49.69 ▲2.07 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 87.20 ▼23.06 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 38.34 ▼1.07 |
Server storage [IO: ▲0.17MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce eSewa
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.39 ▲0.03 | 1.96 ▼0.15 | 43.94 ▼1.74 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.10 | 87.48 ▼5.82 | 40.47 ▼4.19 |
Posts /wp-admin/edit.php | 2,114 ▲17 | 1.99 ▲0.03 | 36.72 ▲0.16 | 37.19 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 18.45 ▼4.69 | 670.86 ▼21.81 | 74.77 ▲9.63 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.24 ▲0.05 | 101.89 ▼9.93 | 51.02 ▲4.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Settings page.), #2 (Checkout page.)
wp-esewa/woocommerce-esewa.php 85% from 13 tests
The entry point to "WooCommerce eSewa" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("wp-esewa.php" instead of "woocommerce-esewa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected403 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 106 | 218 | 403 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 21 | 65.62% |
▷ Protected methods | 8 | 25.00% |
▷ Private methods | 3 | 9.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/wp-assets/icon-128x128.png | 9.38KB | 4.48KB | ▼ 52.28% |
assets/wp-assets/banner-772x250.png | 26.59KB | 11.51KB | ▼ 56.73% |
assets/wp-assets/screenshot-2.png | 11.61KB | 5.67KB | ▼ 51.20% |
assets/wp-assets/screenshot-1.png | 43.72KB | 20.40KB | ▼ 53.33% |
assets/images/esewa.png | 3.20KB | 1.70KB | ▼ 47.03% |