=== MariaCare CRM ===
Contributors: mariacare
Tags: crm, google ads, analytics, salesforce, security
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Stable tag: 1.3.0
License: GPL-2.0-or-later

CRM that fuses Google Ads/Analytics and Salesforce lead data into actionable next steps, plus WordPress application & server security.

== Description ==

MariaCare CRM runs inside your existing WordPress admin — no third login to manage. It combines:

* A focused CRM built around Salesforce leads: import your SF leads report, track status and pipeline, and act on per-lead outreach guidance.
* Outcome-based invoicing: count leads that reached Lifecycle Stage = Customer, multiply by a per-customer rate derived from your financials (average immediate revenue, customer lifetime value, paid ads budget), and generate a printable invoice.
* A money summary on the Invoices page: collected vs outstanding, tracked through the invoice lifecycle.
* Google Ads & GA4 analysis: upload standard CSV exports, fused with your Salesforce lead outcomes to produce concrete next steps for campaign copy, locations, campaign types, and budget — grounded in what actually converts, not just ad-platform spend suggestions.
* Per-lead outreach guidance: call / text / email next steps based on ad and analytics context.
* WordPress & server security: pen-test style checks with one-click remediations — HTTPS/certificate health, file permissions, directory browsing, XML-RPC, DB prefix, custom login URL, enforced 2FA, failed-login limiting, daily malware scans, malicious-IP blocking before PHP, and Cloudflare traffic analysis.

== Installation ==

1. Download the plugin zip from https://maria.care/crm/
2. In wp-admin, go to Plugins → Add New → Upload Plugin, and upload the zip.
3. Activate MariaCare CRM.
4. Open the new "MariaCare CRM" menu in wp-admin.

== Changelog ==

= 1.3.0 =
* Pay-per-customer billing: ACV×15% ($100 min) fee engine, per-customer invoice lines with Salesforce record + attribution, monthly billing cron with draft review, Stripe draft invoices + webhook status sync, 30-day refund credits, immutable audit log.

= 1.2.0 =
* Animated, dismissible walkthroughs on every page — big-text, step-by-step instructions for imports, invoicing, ad analysis, and security.
* Lead Conversion Path redesigned as clean horizontal bars with per-stage survival rates.
* Post-import analysis: every Salesforce import ends with an instant read-out — conversion rate, biggest funnel drop-off, strongest/weakest sources, leads needing attention, upcoming tours, invoice readiness. Re-run anytime with "Analyze My Leads".
* Invoices radically simplified: one big live total, set-your-numbers-once setup, advanced adjustments tucked away; collected/outstanding money summary absorbed from the removed Financials page.
* Financials page removed — the Invoices page now carries the money summary.
* Google Ads: campaign verdicts (Profitable / Break-even / Overpriced) judged by true CRM cost-per-lead vs lead value, spend-share bars, clearer export instructions.
* Analytics: per-source reality-check verdicts (Star source / Steady / Quality problem) plus a computed "What to do next" action list.
* Security moved to the top of the menu; dashboard redesigned with an animated security score and checks grouped by category, each with a plain-English "why it matters".
* Salesforce "synced" indicators removed across the app.

= 1.1.0 =
* Navigation moved fully into the WordPress admin sidebar; internal app sidebar removed.
* CRM simplified to Leads only — Accounts, Contacts, Opportunities, Calendar, Pricing Tool, Data Transfer and Migrate DB pages removed.
* New Invoices module: Customer-stage lead count x financially-grounded per-customer rate, with transparent math and printable invoices.
* Salesforce leads CSV import/export now lives directly on the Leads page.
* Fixed fatal on Settings (WordPress global $current_user collision).

= 1.0.0 =
* Initial release: embedded CRM app, Google Ads/GA4 CSV analysis, Salesforce CSV import/export, security module.
