Repository navigation
Releases
v1.3.1
Fixed
- Fatal error when activating the plugin on a fresh install or after deactivating it.
- The plugin description in the Plugins screen was cut off after "not just".
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Added
- Links to Profit Lens Pro throughout the dashboard (Export CSV, product detail, ad spend, and product rows) now carry a source tag, so arc7.dev can tell which feature a visit came from. No data about your store is sent — only the click itself, after you choose to follow the link.
- An optional, dismissible notice on the Profit Lens screen invites you to leave a WordPress.org review after 2 weeks of real use. Never appears elsewhere in wp-admin, never shows an incentive, and "Don't ask again" or "Maybe later" are both one click.
Fixed
- The per-order cost tracking note showed the wrong percentage (the protected share instead of the unprotected one) — a period with no tracked orders said 0% instead of 100%.
- Line amounts stored with more than two decimals (e.g. after a percentage coupon) are now rounded to the cent once per line, so the product table and the KPIs agree to the cent.
Changed
- The loss-making product insight no longer uses the green accent; it now uses the loss color.
- The review notice is now a neutral card with a primary "Leave a review" button, so it no longer looks like a data insight.
- The "Profit by product" table now says "Product profit" and "Product margin", and a line under the total explains the gap to the Net profit KPI (payment fees, refunds not tied to a product, sales of deleted products).
- Removed ROAS from the Profit Lens Pro feature list and from the dashboard's Pro preview (which now shows ad spend by platform) — Pro doesn't calculate it.
Full Changelog: v1.2.0...v1.3.0
v1.2.0
Fixed
- Setup screen now guides users through enabling Cost of Goods Sold and adding product costs, instead of linking to the wrong screen with a dead "Import costs from CSV" button.
- Orders in a currency other than your store's base currency are now excluded from profit totals instead of being mixed in — the dashboard shows how many were excluded and their amount.
Changed
- WordPress now prevents activating Profit Lens without WooCommerce active, instead of activating it dormant with an admin notice.
- Corrected the plugin's documented minimum WooCommerce version to 10.3 — the version that added the Cost of Goods Sold field this plugin depends on.
Full Changelog: v1.0.0...v1.2.0
Profit Lens 1.0.0
First public release — see readme.txt for full changelog.
v0.2.1 — Patch release (fixes v0.2.0)
This release corrects v0.2.0, which shipped with a stale compiled bundle.
What was wrong in v0.2.0
build/ (the compiled JS actually served to the browser) hadn't been rebuilt since PR #6, so it was missing the per-order cost snapshot disclosure UI added in PR #10 — the backend already computed and returned cost_coverage.snapshot_covered_pct correctly, but the dashboard never rendered it. Confirmed via grep -c "snapshot_covered_pct\|placed before per-order" build/index.js: 0 in v0.2.0, 1 here.
What's fixed/added in v0.2.1
- Fix: rebuilt the compiled bundle to include the snapshot cost disclosure UI.
- Add:
PROFITLENS_DEVconstant as a second gate for the plugin's dev-only tools (mock data switcher) —WP_DEBUGalone isn't a reliable proxy for "this is a Profit Lens development install," since real stores run it in production for unrelated reasons. - Add:
.distignore, so a WordPress.org package only ships the compiledbuild/, nottests/,src/, or dev tooling manifests.
PHPUnit: 57/57 passing.
🤖 Generated with Claude Code
v0.2.0 — First functional release
First release past the 0.1.0 scaffolding baseline. 1.0.0 is reserved for the public WordPress.org launch.
What's in this release
- Real profit calculation engine — net profit/margin from revenue minus product cost (WooCommerce COGS), gateway fees, shipping, and refunds. Reads orders exclusively through the WooCommerce CRUD API (
wc_get_orders(),$order->get_*()), HPOS-compatible. - REST endpoint —
GET /profit-lens/v1/summary?range=7d|30d|month|custom. - Dashboard — KPIs, profit chart, cost breakdown, sortable/searchable profit-by-product table, custom date range picker.
- Per-order-line cost snapshot (#7) — product cost is now frozen per order line the first time an order reaches completed/processing, so editing a product's cost later no longer rewrites the profit of past periods.
- Test suite — PHPUnit 57/57 passing.
Known limitation (tracked, not blocking)
Large-catalog /summary payloads on an all-time date range can delay the whole dashboard's initial load, not just the product table — tracked in #8, with the measured threshold and the fix direction (split products into its own paginated request) already documented there.
🤖 Generated with Claude Code