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.08MB] [CPU: ▼3.88ms] Passed 4 tests
Server-side resources used by Ni WooCommerce Sales Report By User Role
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.58 ▲0.13 |
Dashboard /wp-admin | 3.40 ▲0.05 | 47.91 ▼14.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.83 ▲0.43 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 100.19 ▼1.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 37.29 ▲2.33 |
Sales Product Report /wp-admin/admin.php?page=ni-sales-order-by-user-role | 3.38 | 32.86 |
Dashboard /wp-admin/admin.php?page=ni-dashboard-user-role | 3.40 | 38.56 |
Setting /wp-admin/admin.php?page=ni-user-role-setting | 3.30 | 34.52 |
Agent Report /wp-admin/admin.php?page=ni-sales-agent-report | 3.33 | 34.59 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Ni WooCommerce Sales Report By User Role
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.27 ▼0.43 | 1.63 ▼0.01 | 46.27 ▲2.07 |
Dashboard /wp-admin | 2,223 ▲42 | 5.53 ▼0.16 | 96.13 ▼8.16 | 46.63 ▲1.75 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.01 ▼0.01 | 37.77 ▼2.55 | 36.53 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.18 ▼0.04 | 587.44 ▼74.79 | 42.49 ▼10.57 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.18 ▲0.03 | 100.39 ▲3.95 | 43.23 ▲2.65 |
Sales Product Report /wp-admin/admin.php?page=ni-sales-order-by-user-role | 932 | 1.85 | 31.17 | 37.43 |
Dashboard /wp-admin/admin.php?page=ni-dashboard-user-role | 867 | 1.13 | 9.14 | 59.37 |
Setting /wp-admin/admin.php?page=ni-user-role-setting | 886 | 2.01 | 27.37 | 26.01 |
Agent Report /wp-admin/admin.php?page=ni-sales-agent-report | 913 | 2.09 | 32.00 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=ni-dashboard-user-role
- > Error in wp-content/plugins/ni-woocommerce-sales-report-by-user-role/include/ni-dashboard-user-role.php+63
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-sales-report-by-user-role/include/ni-dashboard-user-role.php:63
Stack trace:
#0 wp-content/plugins/ni-woocommerce-sales-report-by-user-role/include/ni-sales-report-by-user-role-init.php(49): Ni_Dashboard_User_Role->init()
#1 wp-includes/class-wp-hook.php(310): Ni_Sales_Report_By_User_Role_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 50% from 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 following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ni-woocommerce-sales-report-by-user-role/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Create new user/sales agent and assign role Ni Sales Agent.), #2 (Set the role in "User Role Report" setting page.), #3 (Edit order and assign the sales agent.), #4 (Sales summary on dashboard.), #5 (Recent order list.), #6 (Sales order filter option.), #7 (Sales Agent Report.)
ni-woocommerce-sales-report-by-user-role/ni-woocommerce-sales-report-by-user-role.php Passed 13 tests
"Ni WooCommerce Sales Report By User Role" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
Ni WooCommerce Sales Report by user role provide the option to link the sales order with your sales agent or salesperson.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,528 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 43 | 71 | 3,592 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 8 | 186 | 113 | 1,249 |
JavaScript | 2 | 4 | 8 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 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
7 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 13.24KB | 8.01KB | ▼ 39.53% |
screenshot-4.png | 30.83KB | 16.53KB | ▼ 46.37% |
screenshot-1.png | 28.18KB | 14.02KB | ▼ 50.25% |
screenshot-2.png | 18.11KB | 9.31KB | ▼ 48.60% |
screenshot-6.png | 12.74KB | 7.95KB | ▼ 37.63% |