{"id":40639872,"url":"https://github.com/verygoodplugins/vgp-edd-stats","last_synced_at":"2026-01-21T08:02:07.800Z","repository":{"id":321065013,"uuid":"1081863593","full_name":"verygoodplugins/vgp-edd-stats","owner":"verygoodplugins","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-08T05:22:13.000Z","size":586,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-08T07:09:47.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verygoodplugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-23T11:56:50.000Z","updated_at":"2025-11-08T05:22:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"08652a36-4cd1-4960-902e-5fe6df1a4027","html_url":"https://github.com/verygoodplugins/vgp-edd-stats","commit_stats":null,"previous_names":["verygoodplugins/vgp-edd-stats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/verygoodplugins/vgp-edd-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verygoodplugins%2Fvgp-edd-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verygoodplugins%2Fvgp-edd-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verygoodplugins%2Fvgp-edd-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verygoodplugins%2Fvgp-edd-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verygoodplugins","download_url":"https://codeload.github.com/verygoodplugins/vgp-edd-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verygoodplugins%2Fvgp-edd-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-21T08:02:05.321Z","updated_at":"2026-01-21T08:02:07.793Z","avatar_url":"https://github.com/verygoodplugins.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VGP EDD Stats Dashboard\n\nModern analytics dashboard for Easy Digital Downloads with advanced filtering, comparisons, and charts.\n\n## Features\n\n- 7 dashboard pages: Customers \u0026 Revenue, MRR \u0026 Growth, Renewals \u0026 Cancellations, Refunds, Software Licensing, Sites Stats, Support\n- Date range filtering with presets\n- REST API endpoints with transient caching\n- React + ECharts UI bundled via Vite\n\n## Requirements\n\n- WordPress 6.0+\n- PHP 8.0+\n- Easy Digital Downloads 3.0+\n- Node.js 16+ (for development)\n\n## Installation\n\n1. Upload `vgp-edd-stats/` to `/wp-content/plugins/`\n2. Activate via WordPress admin\n3. Open **EDD Stats** in the admin menu\n\n## Development\n\n```bash\nnpm install\nnpm run dev\nnpm run build\n```\n\n### Project Structure\n\n```\nvgp-edd-stats/\n├── includes/                # PHP classes\n│   ├── class-admin-page.php\n│   ├── class-stats-api.php\n│   └── class-stats-query.php\n├── src/                     # React source (Vite)\n│   ├── components/\n│   ├── pages/\n│   ├── utils/\n│   ├── App.jsx\n│   └── index.jsx\n├── build/                   # Compiled assets (generated)\n├── scripts/                 # Dev utilities (optional)\n├── data/                    # Local DB dumps (gitignored)\n└── vgp-edd-stats.php         # Main plugin file\n```\n\n## Syncing Live Data to Local Development (Optional)\n\nThe `scripts/sync-live-data.sh` script can pull EDD tables from a live site into a local dev database and anonymize customer data.\n\n### Setup\n\n```bash\ncp scripts/.env.example scripts/.env\nchmod +x scripts/sync-live-data.sh\n./scripts/sync-live-data.sh\n```\n\nFor LocalWP users, local DB host/port/user/password are usually auto-detected from your site’s `local-site.json` (or `wp-config.php`) so you typically only need to set `LIVE_SSH` + `LIVE_WP_PATH`.\n\n### Dev Database Mode\n\n```bash\ncp dev-config-sample.php dev-config.php\n```\n\nWhen `dev-config.php` exists and `VGP_EDD_STATS_DEV_MODE` is `true`, the plugin queries the dev database for stats instead of the WordPress database.\n\n## REST API Endpoints\n\nAll endpoints are available at `/wp-json/vgp-edd-stats/v1/`.\n\n### Customers \u0026 Revenue\n\n- `GET /customers/by-month` - New customers by month\n- `GET /customers/yoy-change` - Year-over-year change\n- `GET /revenue/by-month` - Revenue breakdown\n- `GET /revenue/refunded` - Refunded revenue\n\n### MRR \u0026 Growth\n\n- `GET /mrr/by-month` - MRR over time\n- `GET /mrr/current` - Current month MRR breakdown\n\n### Renewals\n\n- `GET /renewals/rates` - Renewal rates by month\n- `GET /renewals/upcoming?days=30` - Upcoming renewals\n\n### Refunds\n\n- `GET /refunds/rates` - Refund rates by month\n\n### Licensing\n\n- `GET /licenses/top?limit=20` - Top licenses by activations\n\n### Utility\n\n- `POST /cache/clear` - Clear all cached data\n- `GET /health` - Health check\n\n## Settings\n\nSettings live under **EDD Stats → Settings**:\n\n- Cache duration (seconds)\n- Default date range (including “All Time”)\n- Clear cached stats\n\n## License\n\nGPL-3.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverygoodplugins%2Fvgp-edd-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverygoodplugins%2Fvgp-edd-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverygoodplugins%2Fvgp-edd-stats/lists"}