Introduction
P2Lab Stats is a Shopware 6 plugin that turns the admin panel into a full analytics workspace. It is built for shop operators who need to understand revenue, retention and stock movement at the same level of detail a dedicated BI tool would provide — without exporting orders to a spreadsheet or installing a separate dashboarding stack.
What it does
Section titled “What it does”The plugin ships two complementary layers:
- KPI widgets embedded directly above the standard Shopware order and customer list pages. Each widget shows 4 metrics with a value, percentage change versus the previous period and a sparkline plotting both periods.
- A dedicated P2Lab Stats module under the Orders menu with reports across sales, customers, products and stock.
Every report combines:
- A chart at the top
- A sortable data table below
- A sidebar filter panel on the left (sales channel, order state, payment / shipping method, customer group, country, region, manufacturer, category, product, coupon, plus free-text search)
- A profile / refresh panel on the right
Filters and date range apply to chart, KPIs and table simultaneously. Period comparison (current vs previous range of equal length) is built into every metric.
Who it is for
Section titled “Who it is for”- Shop owners running mid-to-large Shopware 6 catalogues who want a real-time picture of where revenue, margin and stock are heading.
- Marketing teams who need cohort retention, RFM segmentation and cross-sell pairs to design campaigns.
- Operations teams who need depletion-risk forecasts, low-stock alerts and dead-stock reports to keep inventory healthy.
- Agencies managing multiple stores and looking to give each client a self-service analytics view inside Shopware.
What you need
Section titled “What you need”- Shopware 6.6 or 6.7 (a separate plugin build is distributed for each major; check the plugin’s
composer.jsonfor the exact constraint) - The standard Shopware async message worker running (
messenger:consume) — used for CSV / PDF exports and cache warming - A Shopware admin user with access to Orders, Customers and Settings → Plugins
P2Lab Stats does not require any external service — no SaaS dashboard, no third-party analytics account. All computations run inside your Shopware installation against your own database.
How the data flows
Section titled “How the data flows”Most reports are computed live from the Shopware order, customer and product tables. Two reports rely on additional data:
- Margins and the price/stock columns on Product drill-down read from a daily product snapshot table the plugin maintains. Snapshots are taken once per day per product so margin trends and price/stock history are available immediately.
- Cross-sell pairs are computed from order line items in the selected date range.
Heavy reports can be pre-computed off-peak by the cache warming task. The cached payload is served instantly from the report page until it expires.