Store Insight Reports
store-insight-reports
by Your Name · github.com/pranaykantey/store-insight-reports · website
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.zipActionable 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
- Upload the
store-insight-reportsfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins screen in WordPress.
- Ensure WooCommerce is installed and active.
- Navigate to WooCommerce > Insight Reports to configure settings.
Usage
Enable Daily Email Report
Go to WooCommerce > Insight Reports > Free Features and:
- Check Enable daily sales report email.
- Set the Recipient Email address.
- Choose a Report Time from the dropdown.
- 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.