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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼11.87ms] Passed 4 tests
An overview of server-side resources used by Ni WooCommerce Customer Product Report
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.17 ▼4.93 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.16 ▼3.41 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 42.30 ▼7.29 |
Add New Post /wp-admin/post-new.php | 5.30 ▼0.58 | 65.91 ▼31.85 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.67 ▼0.82 |
Setting /wp-admin/admin.php?page=ni-woocpr-setting | 3.31 | 30.67 |
Dashboard /wp-admin/admin.php?page=ni-woocpr | 3.59 | 35.50 |
Server storage [IO: ▲3.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni WooCommerce Customer Product Report
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.24 ▼0.12 | 1.63 ▼0.11 | 40.22 ▼1.79 |
Dashboard /wp-admin | 2,221 ▲41 | 5.64 ▼0.01 | 83.18 ▼4.17 | 41.24 ▼1.99 |
Posts /wp-admin/edit.php | 2,123 ▲44 | 1.95 ▼0.08 | 37.93 ▲2.39 | 34.20 ▲1.17 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.42 ▼22.50 | 0.10 ▼696.41 | 9.37 ▼65.73 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.21 ▲0.00 | 107.62 ▼3.62 | 66.75 ▲17.20 |
Setting /wp-admin/admin.php?page=ni-woocpr-setting | 909 | 1.85 | 12.96 | 38.44 |
Dashboard /wp-admin/admin.php?page=ni-woocpr | 1,386 | 2.16 | 17.26 | 59.51 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- 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 short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ni-woocpr
- > Error in wp-content/plugins/ni-woocommerce-customer-product-report/include/ni-woocpr-dashboard.php+267
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-customer-product-report/include/ni-woocpr-dashboard.php:267
Stack trace:
#0 wp-content/plugins/ni-woocommerce-customer-product-report/include/ni-woocpr-core.php(119): Ni_WooCPR_Dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): Ni_WooCPR_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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ni-woocommerce-customer-product-report/ni-woocommerce-product-customer-report.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ni-woocpr
- > Network (severe)
wp-content/plugins/ni-woocommerce-customer-product-report/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 86% 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Dashboard analysis), #2 (Product customer report), #3 (Product customer report columns setting)
ni-woocommerce-customer-product-report/ni-woocommerce-product-customer-report.php 77% from 13 tests
Analyzing the main PHP file in "Ni WooCommerce Customer Product Report" version 1.2.2
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ni-woocommerce-customer-product-report.php" instead of "ni-woocommerce-product-customer-report.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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
Good job! No executable or dangerous file extensions detected18,025 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,638 | 169 | 15,906 |
PHP | 6 | 323 | 102 | 1,736 |
JavaScript | 17 | 6 | 37 | 376 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 53 | 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 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 8.99KB | 4.98KB | ▼ 44.62% |
admin/css/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/css/lib/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |
admin/css/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/css/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |