Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/coderjahidul/woocommerce-profit-accounting/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A powerful, lightweight, and modern financial management tool for WooCommerce. Track your real-time net profit by automatically calculating Revenue, Cost of Goods Sold (COGS), and business Expenses.
🔥 Key Features
📊 Advanced Dashboard
- Financial Snapshot: Real-time monthly summary of Revenue, COGS, Expenses, and Net Profit.
- Performance Trends: Smooth line charts comparing Monthly Profit vs. Revenue.
- Delivery Insights: Interactive doughnut chart for order fulfillment analysis.
- AJAX Filtering: Toggle between timeframes (Today, Last 7/30 Days, This/Last Month) instantly without page reloads.
💸 Expense Management
- Full CRUD Support: Add, Edit, and Delete business expenses (Rent, Salaries, Marketing).
- Categorized Tracking: Organize costs for better financial reporting.
- Automated Deductions: Expenses are automatically subtracted from your net profit reports.
🛒 Purchase Invoice Management
- Stock Invoices: Record and track bulk product purchases from suppliers.
- Multi-item Entry: Add multiple products and variations to a single invoice.
- Account Mapping: Link purchases to specific payment accounts (Cash, Bank, MFS).
- Interactive UI: Modal-based invoice viewing for quick item breakdown and Grand Total verification.
- History Tracking: Maintain a full history of invoices for better audit trails.
📱 Ads Automation
- Facebook Ads Sync: Automatically fetch your daily Facebook Ad spend.
- Google Ads Sync: Seamlessly integrate your Google Ads spend as business expenses.
- TikTok Ads Sync: Automatically fetch and record your TikTok Ads daily spend.
- WP-Cron Integration: All integrations sync yesterday's spend every 24 hours.
- Manual Sync: Instant "Sync Now" buttons for real-time updates of today's spend.
📅 Comprehensive Reporting
- Daily Reports: Itemized financial breakdown for any day of the month.
- Yearly Summaries: Month-by-month financial health overview.
- Performance Trends: Detailed bar & line charts overlaying Revenue, Expenses, and Net Profit for easy year-over-year comparison.
- Deep-Dive Details: Drill down into any day or month to see exact products sold and specific costs.
📦 Inventory Intelligence
- Total Stock Valuation: Real-time calculation of your entire inventory value at cost.
- Dead Stock ID: Automatically identify products with zero sales in the last 30 days.
- Potential Profit: Estimate future earnings based on remaining stock.
🛒 Order-Level Analytics
- Profit Column: See profit data direktly in the WooCommerce Orders list.
- Profit Breakdown: Dedicated meta box on single order pages showing precise Revenue, COGS, and Margin.
🚀 Getting Started
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- The plugin will automatically set up the required database tables.
Setup
To get accurate reports, ensure your products have cost data:
- Edit a product.
- In the General tab, find the Product Cost (COGS) field.
- Enter your purchase price. For variable products, set costs per variation.
🛠 Developer Info
Methodology
- Revenue: Sum of totals from
processingandcompletedorders. - COGS:
(Product Cost) * (Quantity Sold). - Net Profit:
Revenue - (COGS + Expenses).
Tech Stack
- Backend: PHP, WordPress Database (WPDB).
- Frontend: Vanilla JS, Chart.js, Modern CSS (Custom properties & Flexbox).
- Communication: WordPress AJAX API for real-time UI updates.
📄 License
This plugin is licensed under the GPL-2.0-or-later.
🆘 Support
For technical issues or feature requests, please visit github.com/coderjahidul.