Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.00ms] Passed 4 tests
This is a short check of server-side resources used by Ni WooCommerce Product Vendor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.20 ▼3.09 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.67 ▲3.01 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.69 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.63 ▼7.96 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 33.98 ▼0.29 |
Order Product Report /wp-admin/admin.php?page=niwoopv-order-product-report | 3.33 | 31.43 |
Stock Report /wp-admin/admin.php?page=niwoopv-stock-report | 3.31 | 32.75 |
Dashboard /wp-admin/admin.php?page=niwoopv-dashboard | 3.56 | 31.68 |
Setting /wp-admin/admin.php?page=niwoopv-setting | 3.28 | 31.29 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni WooCommerce Product Vendor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.35 ▼0.20 | 1.78 ▲0.03 | 46.99 ▲4.37 |
Dashboard /wp-admin | 2,234 ▲57 | 5.63 ▼0.05 | 93.77 ▼0.17 | 42.05 ▼8.23 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.13 ▲0.13 | 34.00 ▼6.05 | 32.65 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.32 ▲0.26 | 650.20 ▲72.64 | 51.83 ▼1.75 |
Media Library /wp-admin/upload.php | 1,430 ▲36 | 4.19 ▼0.01 | 99.67 ▲2.86 | 43.10 ▲1.78 |
Order Product Report /wp-admin/admin.php?page=niwoopv-order-product-report | 1,062 | 1.71 | 30.15 | 71.23 |
Stock Report /wp-admin/admin.php?page=niwoopv-stock-report | 972 | 1.84 | 31.69 | 33.52 |
Dashboard /wp-admin/admin.php?page=niwoopv-dashboard | 1,396 | 2.15 | 13.76 | 49.61 |
Setting /wp-admin/admin.php?page=niwoopv-setting | 867 | 1.68 | 25.54 | 24.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=niwoopv-dashboard
- > Error in wp-content/plugins/ni-woocommerce-product-vendor/includes/niwoopv-dashboard.php+258
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-product-vendor/includes/niwoopv-dashboard.php:258
Stack trace:
#0 wp-content/plugins/ni-woocommerce-product-vendor/includes/niwoopv-core.php(26): NIWooPV_Dashboard->get_page_init()
#1 wp-includes/class-wp-hook.php(310): NIWooPV_Core->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 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ni-woocommerce-product-vendor/ni-woocommerce-product-vendor.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=niwoopv-dashboard
- > Network (severe)
wp-content/plugins/ni-woocommerce-product-vendor/admin/css/font-awesome.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard show last 30 days order count and order total), #2 (Order product report), #3 (Stock report.), #4 (Setting page select user role), #5 (Product edit - Select product vendor.), #6 (Add new product vendor and select role "Ni Product vendor")
ni-woocommerce-product-vendor/ni-woocommerce-product-vendor.php 85% from 13 tests
"Ni WooCommerce Product Vendor" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,771 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 334 | 95 | 2,030 |
CSS | 3 | 113 | 84 | 1,599 |
JavaScript | 11 | 9 | 24 | 135 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.43MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 37.17KB | 12.31KB | ▼ 66.89% |
screenshot-1.png | 258.74KB | 102.04KB | ▼ 60.56% |
screenshot-2.png | 32.86KB | 10.55KB | ▼ 67.89% |
screenshot-5.png | 75.49KB | 31.58KB | ▼ 58.18% |
screenshot-4.png | 2.69KB | 1.92KB | ▼ 28.70% |