Batra Sales Insights

By batragroup

0+ active installationsVersion 1.0.0

Sales Analytics & Product Performance for WooCommerce.

Description

Batra Sales Insights adds a WooCommerce admin screen for product, category, and order sales.

Reports are read from the WooCommerce Analytics lookup tables. Totals are calculated with their own query, so the summary cards are not cut off by the rows shown on the current page.

Reports

  • Products, including a variation breakdown on the product row.
  • Categories. A product that belongs to several categories is counted in each one.
  • Orders.
  • Grouping by day, month, or year.
  • Date presets and a custom date range.
  • Comparison of up to 20 products or categories, with the high and low values marked.
  • A chart for amount, quantity, or orders.
  • CSV export of the full filtered result, not only the visible page.

Product amounts are net revenue and do not include shipping. Order totals use WooCommerce total sales.

Amounts use the store currency configured in WooCommerce.

The plugin is a third-party extension. It is not developed by, or affiliated with, WooCommerce or Automattic.

No external service is used. The plugin does not send store or customer data anywhere. The chart uses Chart.js 4.6.1 (MIT). The plugin loads the minified file. The readable build of that version is included and is not loaded on the site.

Installation

  1. Upload the batra-sales-insights folder to /wp-content/plugins/, or install the ZIP from Plugins > Add New > Upload Plugin.
  2. Activate WooCommerce if it is not already active.
  3. Activate Batra Sales Insights. If an older private folder batra-woo-reports or batra-sales-reports is still active, this turns it off and does not delete it.
  4. Open WooCommerce > Sales Insights.
  5. Wait until WooCommerce Analytics has synced historical orders, then open a report.

FAQ

Does the plugin require WooCommerce?

Yes. WooCommerce 8.0 or newer is required. Reports are available only in the WordPress admin.

Where do the numbers come from?

They come from the WooCommerce Analytics tables wc_order_stats and wc_order_product_lookup. Orders with the status Processing or Completed are included. If a report is empty, check WooCommerce > Status > Analytics and let the historical sync finish.

Does it recalculate every order when I open a report?

No. It reads the Analytics lookup tables. Summary totals use a separate query and do not depend on how many detail rows are on the page.

Which currency is used?

The currency, symbol, and decimal separator from the WooCommerce store settings.

Does the plugin work with High-Performance Order Storage?

Yes. It reads Analytics lookup tables and declares compatibility with custom order tables.

Does it send data to Batra or another service?

No. Reports stay on your site. The chart script is bundled with the plugin and is not loaded from a CDN.

I already used the earlier private build. Can both copies stay active?

No. On activation this plugin turns off the older private folders batra-woo-reports and batra-sales-reports if they are still active. The folders stay on disk. Running both copies at once would add the report screen twice. Activation is not stopped by an older copy.

What is removed when the plugin is deleted?

Nothing belonging to the store. The plugin does not create settings or its own database tables. WooCommerce orders, Analytics data, and the earlier private folder stay in place.

Changelog

1.0.0

  • Public release.
  • Activation turns off the earlier private folders batra-woo-reports and batra-sales-reports and does not delete them.
  • Store currency from WooCommerce settings.
  • Chart.js 4.6.1 bundled in the plugin. The readable build is included and is not loaded on the site.
  • CSV export neutralizes cells that a spreadsheet would treat as formulas.
  • Admin notices appear only on the Plugins screen.
  • Product, category, and order reports, variation breakdown, comparison, chart, and full CSV export.