=== AddonLogic Form Conversion Counter ===
Contributors: snehalpancholi
Tags: forms, conversions, analytics, contact form 7, wpforms, gravity forms, ninja forms
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically tracks form submissions from Contact Form 7, WPForms, Gravity Forms, and Ninja Forms with daily/weekly/monthly stats and sparkline trends.

== Description ==

**AddonLogic Form Conversion Counter** monitors every form submission across your installed form plugins — with zero configuration required. Simply activate the plugin and it begins recording submission counts per form, per day.

**Key Features**

* Auto-detects Contact Form 7, WPForms, Gravity Forms, and Ninja Forms
* Tracks total submissions per form (all-time)
* Tracks daily, weekly (last 7 days), and monthly (last 30 days) trends
* Clean admin dashboard under **Tools > Form Conversions**
* Summary cards: Total Forms, Total Submissions, This Week, This Month
* Sortable data tables per form plugin with sparkline trend charts
* Automatic 30-day data pruning — no unbounded data growth
* Reset button to clear all stats
* Receives automatic updates from the AddonLogic update server
* No custom database tables — uses WordPress options table
* No jQuery — pure vanilla JS and CSS

**Supported Form Plugins**

| Plugin | Auto-detected |
|---|---|
| Contact Form 7 | Yes |
| WPForms (free & pro) | Yes |
| Gravity Forms | Yes |
| Ninja Forms | Yes |

You do not need all four — the plugin hooks into whichever ones are active.

== Installation ==

1. Upload the `form-conversion-counter` folder to `/wp-content/plugins/`.
2. Activate the plugin through **Plugins > Installed Plugins**.
3. Navigate to **Tools > Form Conversions** to view the dashboard.
4. Submit a test form entry — it will appear in the dashboard immediately.

== Frequently Asked Questions ==

= Do I need to configure anything? =
No. The plugin auto-detects which form plugins you have installed and hooks into them automatically.

= Will it track submissions that happened before I installed this plugin? =
No. Only submissions that occur after activation are counted.

= What happens to my data when I delete the plugin? =
All data (the `addlc_fcc_data` option) is permanently removed via `uninstall.php`.

= How much data does the plugin store? =
Daily counts are pruned to the most recent 30 calendar days per form. The all-time total counter is always preserved.

= Can I reset the stats without deleting the plugin? =
Yes. Use the **Reset All Stats** button at the bottom of the dashboard.

= Does this work with WooCommerce order forms or custom forms? =
Currently only the four supported form plugins are auto-detected. Custom integrations can call `addlc_fcc_record_submission()` directly.

== Screenshots ==

1. Dashboard summary cards — total forms, submissions, weekly and monthly counts.
2. Per-form table with sparkline trend charts for the last 7 days.
3. Empty state screen with setup instructions shown before any forms are tracked.

== Changelog ==

= 1.0.0 =
* Initial release.
* Auto-detection of Contact Form 7, WPForms, Gravity Forms, and Ninja Forms.
* Dashboard under Tools > Form Conversions with summary cards and per-form tables.
* SVG sparkline trend charts (7-day) per form.
* 30-day daily data pruning.
* Reset All Stats button.
* AddonLogic update server integration.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
