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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.35ms] Passed 4 tests
This is a short check of server-side resources used by Ni WooCommerce Payment Gateway Charges
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 34.98 ▼7.70 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.94 ▲5.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 51.34 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.34 ▲3.17 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.13 ▲2.25 |
Other Plugins /wp-admin/admin.php?page=niwoopgc-other-plugins | 3.30 | 34.40 |
Dashboard /wp-admin/admin.php?page=ni-payment-gateway-charges-dashboard | 3.56 | 33.72 |
Setting /wp-admin/admin.php?page=ni-payment-gateway-charges-setting | 3.27 | 32.22 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Ni WooCommerce Payment Gateway Charges: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲135 | 13.40 ▼0.95 | 7.42 ▲5.71 | 36.23 ▼11.67 |
Dashboard /wp-admin | 2,206 ▲26 | 5.56 ▼0.11 | 94.64 ▼2.76 | 84.95 ▲38.70 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.94 ▼0.01 | 39.51 ▼3.42 | 37.55 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲21 | 23.62 ▲0.34 | 665.22 ▲44.42 | 61.34 ▲3.36 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.16 ▲0.01 | 99.94 ▼0.63 | 70.39 ▲28.04 |
Other Plugins /wp-admin/admin.php?page=niwoopgc-other-plugins | 1,125 | 2.17 | 31.55 | 77.11 |
Dashboard /wp-admin/admin.php?page=ni-payment-gateway-charges-dashboard | 1,382 | 2.16 | 15.65 | 80.55 |
Setting /wp-admin/admin.php?page=ni-payment-gateway-charges-setting | 860 | 2.00 | 25.88 | 23.91 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ni-payment-gateway-charges-dashboard
- > Error in wp-content/plugins/ni-woocommerce-payment-gateway-charges/include/ni-payment-gateway-charges-dashboard.php+271
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-payment-gateway-charges/include/ni-payment-gateway-charges-dashboard.php:271
Stack trace:
#0 wp-content/plugins/ni-woocommerce-payment-gateway-charges/include/ni-payment-gateway-charges-init.php(33): ni_payment_gateway_charges_dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): ni_payment_gateway_charges_init->add_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Checkout page your order section.), #2 (Payment gateway charges settings.), #3 (woocommerce settings checkout section for payemnt gateway extra charges setting.), #4 (woocommerce admin order product details section.), #5 (Payment Gateway Sales Report.)
ni-woocommerce-payment-gateway-charges/ni-woocommerce-payment-gateway-charges.php 92% from 13 tests
The primary PHP file in "Ni WooCommerce Payment Gateway Charges" version 1.5.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
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 detected8,217 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 87 | 108 | 3,814 |
SVG | 2 | 0 | 0 | 2,678 |
PHP | 5 | 261 | 91 | 1,638 |
JavaScript | 8 | 0 | 11 | 87 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/i2con2.png | 0.59KB | 0.34KB | ▼ 42.57% |
screenshot-4.png | 15.17KB | 7.52KB | ▼ 50.44% |
images/icon21.png | 0.79KB | 1.05KB | 0.00% |
screenshot-2.png | 13.88KB | 8.43KB | ▼ 39.25% |
screenshot-6.png | 106.07KB | 40.27KB | ▼ 62.03% |