Skip to content

lightweight WordPress plugin to track farm operations, crop yields, expenses, and labor hours. Features AI-style efficiency insights, monthly/yearly reports, and CSV/PDF export. Built in a single PHP file with inline HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

KhadimHussain12/Farm-Operation-Efficiency-Tracker-WordPress-Plugin-with-CSV-PDF-Export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ Farm Operation Efficiency Tracker (WordPress Plugin)

An all-in-one farm tracking dashboard built as a single PHP file with inline HTML, CSS, and JavaScript.
It helps farmers measure operational efficiency, track crop yields, expenses, and labor hours, and export data into CSV or PDF reports directly from the browser.


๐Ÿ“Œ Features

  • Add and manage farm operation entries (crop, date, yield, expense, labor hours, notes).
  • Automatic KPI scorecards (total yield, expenses, labor, efficiency score).
  • Simple AI-style suggestions to highlight cost-cutting opportunities.
  • Monthly and yearly snapshots for farm audits.
  • Export all data as:
    • CSV File
    • PDF Report (with KPIs and AI suggestions)
  • Clean, responsive UI with no extra dependencies (works directly in WordPress frontend).
  • Lightweight โ€” only a single PHP file with embedded HTML, CSS, and JS.

๐Ÿ“‚ Installation

  1. Open Notepad (or any plain text editor).

  2. Copy the full PHP code from this repository into the editor.

  3. Save the file as:

  4. Upload this file to your WordPress site:

  • Option A: Place it in wp-content/plugins/ and activate it as a plugin.
  • Option B: Paste the code inside your themeโ€™s functions.php.

โ–ถ๏ธ Usage

  1. After activating, go to any WordPress page or post.
  2. Insert the shortcode:

[farm_efficiency_tracker]

  1. Publish/update the page.
  2. Visit the page to use the Farm Operation Efficiency Tracker.

๐Ÿ› ๏ธ Tech Stack

  • PHP โ€“ WordPress integration & shortcode system
  • HTML5 / CSS3 โ€“ UI layout & styling
  • JavaScript (Vanilla) โ€“ Entry management, KPIs, suggestions, CSV export
  • jsPDF + AutoTable โ€“ Client-side PDF report generation
  • (Optional) Python snippet (provided in comments) for advanced AI/ML analysis

๐Ÿšœ Example Use Case

A farmer inputs yield, expenses, and labor for the season.
The system calculates:

  • Cost per yield
  • Efficiency score
  • AI insights (e.g., โ€œOptimizing irrigation could save ~2,400 USD annuallyโ€)

They can then export a PDF report to share with auditors or farm managers.


๐Ÿ”ง Shortcode Reference

Shortcode Description
[farm_efficiency_tracker] Displays the Farm Operation Efficiency Tracker form and dashboard.

๐Ÿ“„ License

This project is released under the MIT License.
You are free to use, modify, and distribute it with attribution.


โœจ Author

Developed as an AI-driven farming tool to highlight innovation amid challenging ag economies.
Created with โค๏ธ by Khadim Hussain Shah.

About

lightweight WordPress plugin to track farm operations, crop yields, expenses, and labor hours. Features AI-style efficiency insights, monthly/yearly reports, and CSV/PDF export. Built in a single PHP file with inline HTML, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages