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.09MB] [CPU: ▼0.36ms] Passed 4 tests
A check of server-side resources used by Ni WooCommerce Sales Report
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.92 ▲2.72 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.11 ▲0.41 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 49.21 ▲2.87 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.04 ▼5.34 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 36.02 ▲0.78 |
Order Product /wp-admin/admin.php?page=ni-order-product | 3.44 | 31.57 |
Category Report /wp-admin/admin.php?page=ni-category-report | 3.34 | 31.37 |
Summary Report /wp-admin/admin.php?page=ni-summary-report | 3.34 | 30.06 |
Order Status Report /wp-admin/admin.php?page=ni-order-status-report | 3.36 | 27.98 |
Monthly Sales Report /wp-admin/admin.php?page=ni-monthly-sales-report | 3.34 | 32.67 |
Top Product /wp-admin/admin.php?page=ni-top-product-report | 3.34 | 33.58 |
Other Plugins /wp-admin/admin.php?page=ni-sales-report-addons | 3.34 | 31.37 |
Dashboard /wp-admin/admin.php?page=ni-sales-report | 3.59 | 30.79 |
Product Analysis /wp-admin/admin.php?page=ni-product-analysis-report | 3.37 | 41.60 |
Analytical Sales Report /wp-admin/admin.php?page=ni-analytical-sales-report | 3.34 | 32.29 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni WooCommerce Sales Report
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲83 | 14.67 ▲0.33 | 1.74 ▼0.09 | 44.00 ▲0.28 |
Dashboard /wp-admin | 2,247 ▲73 | 5.62 ▲0.02 | 95.35 ▼5.70 | 41.47 ▼1.58 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 1.94 ▲0.00 | 37.22 ▼2.45 | 32.21 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.60 ▲0.44 | 694.89 ▲90.00 | 54.86 ▲3.25 |
Media Library /wp-admin/upload.php | 1,449 ▲46 | 4.24 ▲0.02 | 97.52 ▼3.25 | 45.59 ▲2.25 |
Order Product /wp-admin/admin.php?page=ni-order-product | 1,108 | 2.69 | 48.15 | 92.91 |
Category Report /wp-admin/admin.php?page=ni-category-report | 1,016 | 2.51 | 42.32 | 48.73 |
Summary Report /wp-admin/admin.php?page=ni-summary-report | 1,006 | 2.54 | 44.13 | 44.25 |
Order Status Report /wp-admin/admin.php?page=ni-order-status-report | 1,025 | 2.35 | 43.09 | 42.42 |
Monthly Sales Report /wp-admin/admin.php?page=ni-monthly-sales-report | 1,053 | 2.47 | 39.91 | 41.43 |
Top Product /wp-admin/admin.php?page=ni-top-product-report | 928 | 2.47 | 32.78 | 63.62 |
Other Plugins /wp-admin/admin.php?page=ni-sales-report-addons | 1,262 | 2.26 | 34.43 | 51.33 |
Dashboard /wp-admin/admin.php?page=ni-sales-report | 1,616 | 2.49 | 20.72 | 75.17 |
Product Analysis /wp-admin/admin.php?page=ni-product-analysis-report | 944 | 2.50 | 32.14 | 45.28 |
Analytical Sales Report /wp-admin/admin.php?page=ni-analytical-sales-report | 942 | 2.54 | 39.36 | 37.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ni-sales-report
- > Error in wp-content/plugins/ni-woocommerce-sales-report/include/order-summary.php+344
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-sales-report/include/order-summary.php:344
Stack trace:
#0 wp-content/plugins/ni-woocommerce-sales-report/include/base-sales-report.php(274): Summary->init()
#1 wp-includes/class-wp-hook.php(310): BaseSalesReport->AddMenuPage()
#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- > GET request to /wp-admin/admin.php?page=ni-analytical-sales-report
- > Error in wp-content/plugins/ni-woocommerce-sales-report/include/ni-analytical-sales-report.php+177
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-sales-report/include/ni-analytical-sales-report.php:177
Stack trace:
#0 wp-content/plugins/ni-woocommerce-sales-report/include/ni-analytical-sales-report.php(77): Ni_Analytical_Sales_Report->get_tables()
#1 wp-content/plugins/ni-woocommerce-sales-report/include/base-sales-report.php(164): Ni_Analytical_Sales_Report->get_ajax()
#2 wp-includes/class-wp-hook.php(310): BaseSalesReport->ajax_sales_order()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin-ajax.php(188): do_action()
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ni-woocommerce-sales-report/ni-woocommerce-sales-report.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)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ni-analytical-sales-report
- > Network (severe)
wp-admin/admin-ajax.php?action=sales_order&ajax_function=order_item&page=ni-analytical-sales-report - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Dashboard show sales report and key sale indicator), #2 (Recent order sales report), #3 (Order status reports on dashboard.), #4 (Payment method reports on dashboard), #5 (Sales order list with days filter option), #6 (Today Sales analysis on dashboard (Order Count, Sales, Product Sold, Discount, Tax).), #7 (Category sales report.), #8 (Top Product report (Today Top Product, Yesterday Top Product, Last 7 Days Top Product).), #9 (Order Summary Report.), #10 (Monthly sales report), #11 (Sales report menu), #12 (Current year vs previous sales), #13 (Order status report), #14 (Product analysis)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
ni-woocommerce-sales-report/ni-woocommerce-sales-report.php 92% from 13 tests
The primary PHP file in "Ni WooCommerce Sales Report" version 3.7.3 is used by WordPress to initiate all plugin functionality
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
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
No dangerous file extensions were detected23,246 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 2,404 | 1,635 | 12,741 |
CSS | 6 | 156 | 152 | 4,134 |
PHP | 14 | 644 | 150 | 3,493 |
SVG | 2 | 0 | 0 | 2,678 |
PO File | 1 | 90 | 217 | 200 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 18.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 101 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.90MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-11.png | 10.83KB | 4.76KB | ▼ 56.02% |
screenshot-4.png | 29.64KB | 9.15KB | ▼ 69.13% |
screenshot-14.png | 52.85KB | 28.64KB | ▼ 45.80% |
screenshot-12.png | 50.54KB | 12.71KB | ▼ 74.86% |
screenshot-7.png | 22.42KB | 6.61KB | ▼ 70.49% |