WP Manifestindependent plugin directory
manifest / analytics / advanced-sales-analytics

Advanced Sales Analytics

Profit intelligence, customer analytics, forecasting & AI insights for WooCommerce. Go beyond default reports with real profit, RFM, LTV, smart alerts and automated executive reports.

by Jacklabs · github.com/ngoctuanit07/advanced-sales-analytics · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ngoctuanit07/advanced-sales-analytics/archive/refs/heads/main.zip

Advanced Sales Analytics for WooCommerce

Profit intelligence, customer analytics, forecasting & smart alerts — commercial-grade analytics beyond WooCommerce’s built-in reports.

Plugin path: advanced-sales-analytics/

Requirements

  • WordPress 6.0+
  • PHP 7.4+
  • WooCommerce 7.0+
  • Compatible with HPOS (custom order tables)

Installation

  1. Copy the advanced-sales-analytics folder into wp-content/plugins/
  2. Activate Advanced Sales Analytics
  3. Open Sales Analytics in wp-admin
  4. Set Cost of goods (COGS) on products for accurate profit

Feature map (from mota.md)

Module Status
Sales overview dashboard + period comparison
Advanced revenue analytics
Real profit & cost analytics
Product performance + ABC + auto tags
Customer analytics + LTV + 360° profile API
RFM segmentation
Cohort analysis (API)
Repeat purchase analytics
Coupon ROI analytics
Refund analytics
Geographic analytics
Payment analytics
Market basket analysis
Sales & demand forecast + CI
Smart alerts + anomaly detection
Business health score
Scheduled executive reports
Advanced filters / saved segments
CSV / JSON export + REST API
Role-based capabilities
Cost management (COGS + ads)
AI Ask Your Store (v2 scaffold) 🔜

Admin pages

  • Dashboard, Revenue, Profit, Products, Customers, RFM
  • Coupons, Refunds, Geography, Payments
  • Forecast, Market Basket, Alerts, Reports, Costs, Settings

REST API

Base: /wp-json/asa/v1

Method Endpoint Capability
GET /overview asa_view_analytics
GET /revenue asa_view_analytics
GET /profit asa_view_profit
GET /products asa_view_analytics
GET /customers asa_view_customers
GET /customers/{id} asa_view_customers
GET /rfm asa_view_customers
GET /coupons asa_view_analytics
GET /refunds asa_view_analytics
GET /geo asa_view_analytics
GET /payments asa_view_analytics
GET /forecast?days=30 asa_view_analytics
GET /demand asa_view_analytics
GET /basket asa_view_analytics
GET /cohort asa_view_customers
GET /health asa_view_analytics
GET /repeat asa_view_customers
GET/POST /alerts asa_manage_alerts
GET/POST /reports/scheduled asa_manage_reports
GET/POST /costs/ads profit / costs
POST /costs/products asa_manage_costs
GET/POST /segments asa_view_analytics
GET /export/{type} asa_export_data
GET/POST /settings asa_manage_settings

Query filters (most endpoints): range, start, end, product_id, category_id, country, payment_method, coupon, status, customer_id, group_by, limit.

Date range values: today, yesterday, last_7_days, last_30_days, last_90_days, this_week, last_week, this_month, last_month, this_quarter, this_year, last_year, custom.

Profit formula

Revenue
− COGS (product cost × qty)
− Refunds
− Payment fees (% + fixed, method-aware)
− Shipping cost (configurable default)
− Advertising costs (logged in Costs)
(− Taxes if enabled in settings)
= Net Profit

Database tables

Prefixed with $wpdb->prefix:

  • asa_product_costs
  • asa_ad_costs
  • asa_alerts / asa_alert_log
  • asa_scheduled_reports / asa_report_log
  • asa_saved_segments
  • asa_dashboards
  • asa_daily_snapshots

Cron

  • asa_daily_analytics_cron — snapshots + anomaly detection + due reports
  • asa_hourly_alerts_cron — evaluate alert rules

Security

  • Capability checks on every REST route and admin page
  • Nonces for settings forms and exports
  • Sanitized filters / prepared SQL
  • Capability set installed on Administrator & Shop Manager

License tiers

Option asa_license_tier: free | pro | business | agency.
By default the build unlocks the full suite for production use; tighten with filter asa_feature_unlocked.

Uninstall

Cron is always cleared. Tables/options are removed only if asa_remove_data_on_uninstall is yes.

Ecosystem hooks

do_action( 'asa_alert_dispatched', $rule, $title, $message );
do_action( 'asa_report_generated', $report, $data );
apply_filters( 'asa_paid_order_statuses', $statuses );
apply_filters( 'asa_payment_fee_overrides', $map );
apply_filters( 'asa_is_pro', false );

Designed to connect later with Advanced Inventory Manager (demand → reorder), Loyalty (LTV/RFM), Cart Recovery, Flash Sale ROI, and Shipping profit rules.