
Instant, lightweight WooCommerce reporting. Track revenue, orders, top customers, and export to CSV. Fast insights for shop owners.
ShopAnalytics Lite adds a ShopAnalytics menu to your WordPress admin with tables and charts for revenue, orders, top customers, top products and coupon usage. Reports are read from your own database; the plugin makes no remote requests and sets no tracking.
Known limitations: ShopAnalytics Lite reads orders from the legacy WordPress order tables (wp_posts and wp_postmeta). Stores that use WooCommerce High-Performance Order Storage (HPOS) will see empty reports until a future update adds support. You can check your setting under WooCommerce > Settings > Advanced > Features.
Features
- Dashboard: total revenue, orders, average order value and repeat purchase rate, with a comparison to the previous period and a date range filter.
- Sales Trends and Order Trends: monthly revenue and order charts, and a product category breakdown by revenue and quantity.
- Customers: top customers ranked by total spend and order count.
- Top Products: product ranking by revenue and quantity sold.
- Coupons: coupon usage, total and average discount, revenue per coupon, usage rate and a monthly trend for the top coupons. The coupon data can be exported to CSV.
- Settings: a lightweight mode that turns charts off, and event logging with a configurable retention period. The event log can be exported to CSV.
Third-party code: Chart.js 4.5.0 (MIT license, https://www.chartjs.org/) is bundled as assets/js/chart.min.js.
Support
Need help or have feature requests?
Visit: https://dynamicweblab.com
FAQ
Why are my reports empty?
Your store most likely uses WooCommerce High-Performance Order Storage (HPOS) without compatibility mode. This plugin reads the legacy WordPress order tables only, so it cannot see orders stored in the HPOS tables.
Does it work with HPOS?
Not yet. It reads orders from wp_posts and wp_postmeta (legacy storage).
Can I export reports and data?
The coupon data and the event log can be exported to CSV. Other reports do not have an export.
How is this different from WooCommerce Analytics?
It is a smaller set of reports in its own menu. Its numbers may differ from WooCommerce Analytics because it uses its own queries.
Does this plugin send any data externally?
No. ShopAnalytics Lite makes no remote requests and has no tracking or telemetry. All data stays on your WordPress server.
Will ShopAnalytics delete any data when uninstalled?
Your store data is never touched. When uninstalled, the plugin removes its own settings, logs table, and scheduled cron jobs.
Can I track coupon performance?
Yes. The Coupons page shows which coupons are being used, how much discount each one gives, the total discount cost, and which coupons drive the most revenue. You can also see the monthly trend for your top coupons.
What permissions are required?
Only administrators or users with the manage_woocommerce capability can view ShopAnalytics pages. All actions are capability-checked.
ChangeLog
1.5.2
- Compatibility: corrected the tested-up-to header (WordPress 7.1).
1.5.1
- Compatibility: tested with WordPress 7.1. Fixed the internal version number used for cache busting.
1.5.0
- New: Coupon Analytics page — track coupon usage, discount cost, and revenue impact.
- New: Top coupons bar chart (discount vs. revenue) and monthly trend line chart.
- New: CSV export for coupon data.
- New: Coupon usage rate metric (% of orders using a coupon).
1.4.0
- Performance: Replaced
wc_get_orders(limit=-1) with direct SQL queries on Sales Trends, Order Trends, and Top Products pages — eliminates instantiating thousands of WC_Order objects on large stores.
- Performance: Sales Trends category breakdown now uses a single SQL join instead of per-item
wp_get_post_terms().
- Performance: Top Products page now queries directly from
woocommerce_order_items meta tables.
1.3.0
- New: Period-over-period comparison on dashboard metric cards — revenue, orders, AOV, and repeat rate now show percentage change vs the previous equivalent period with color-coded trend arrows.
- Improved: Dashboard subtitle now indicates the comparison context.
1.2.0
- Performance: Replaced per-month wc_get_orders() loops with single SQL queries on dashboard.
- Performance: Eliminated N+1 query in top customers — CLV now computed in same query.
- Performance: AOV now calculated via single AVG() query instead of two separate queries.
- Performance: Batch product category lookups in sales trends (was per-order).
- Performance: Batch user lookups in customers page (was per-customer get_user_by).
- Security: Replaced esc_sql() concatenation with $wpdb->prepare() placeholders in all queries.
- Cleanup: Removed unused class-data-exporter.php, templates/dashboard.php, unused helper functions, and dead engine methods.
1.1.0
- Fixed: Customer Insights page now renders correctly and is accessible from the menu.
- Fixed: Removed duplicate Reports submenu registration.
- Fixed: Removed duplicate activation hook that caused double initialization.
- Fixed: Cache invalidation now works correctly (wildcard patterns replaced with specific keys).
- Fixed: Uninstall now drops the logs table, clears cron, and removes all plugin options.
- Fixed: Deactivation hook now properly clears the scheduled cron job.
- Fixed: Removed duplicate asset enqueue that caused version conflicts.
- Updated: Tested up to WordPress 7.0.
1.0.0
- Initial release: Sales dashboard, customer insights, CSV export, Freemius integration.