WP Manifestindependent plugin directory
manifest / ecommerce / store-insight-reports

Store Insight Reports

store-insight-reports

by Your Name · github.com/pranaykantey/store-insight-reports · 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/pranaykantey/store-insight-reports/archive/refs/heads/main.zip

Actionable store insights and sales reports for WooCommerce stores with Free and Pro feature tiers.

Features

Free

  • Daily sales summary email with a 7-day bar chart showing orders and revenue
  • Weekly sales report generation and database logging
  • CSV export of the last 7 days of sales data
  • Configurable recipient email and report send time
  • WooCommerce dependency check with graceful self-deactivation

Pro

  • Advanced analytics and custom report builder
  • CSV/PDF exports
  • User segmentation
  • Priority support

Requirements

  • WordPress 5.8 or higher
  • WooCommerce 5.0 or higher
  • PHP 7.4 or higher

Installation

  1. Upload the store-insight-reports folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Ensure WooCommerce is installed and active.
  4. Navigate to WooCommerce > Insight Reports to configure settings.

Usage

Enable Daily Email Report

Go to WooCommerce > Insight Reports > Free Features and:

  1. Check Enable daily sales report email.
  2. Set the Recipient Email address.
  3. Choose a Report Time from the dropdown.
  4. Click Save Changes.

Export CSV

On the same settings page, click Download CSV (Last 7 Days) to export a UTF-8 CSV file containing Date, Day, Orders, and Revenue.

View Weekly Logs

Weekly sales summaries are stored in the {prefix}sir_reports database table for reference or custom querying.

File Structure

store-insight-reports/
├── store-insight-reports.php       # Plugin bootstrap
├── readme.txt                       # WordPress.org readme
├── README.md                        # GitHub/docs readme
├── LICENSE                          # GPLv3 license
├── languages/
│   └── (translation files)
└── includes/
    ├── class-activator.php          # Activation hooks and DB setup
    ├── class-admin.php              # Admin loader and helpers
    ├── class-csv-exporter.php       # CSV download handler
    ├── class-daily-email-report.php # Daily email report builder
    ├── class-deactivator.php        # Deactivation hooks and cleanup
    ├── class-settings-page.php      # WooCommerce menu + Free/Pro tabs
    └── class-woocommerce-checker.php # WooCommerce dependency check

Cron Events

  • sir_generate_weekly_reports - Weekly sales report generation.
  • sir_send_daily_report - Daily email report dispatch.

Both are automatically scheduled on activation and cleaned up on deactivation.

Development

Code Style

  • PHP 7.4+ type hints and return types.
  • WordPress coding standards (partial).
  • No external dependencies beyond WooCommerce.

Localization

The plugin is translation-ready. Place .po and .mo files in the languages/ directory.

License

Store Insight Reports is licensed under the GPLv3 or later.