=== Imran Body Index ===
Contributors: imranacademy
Tags: body index, health calculator, fitness, bmi, bmi calculator
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Modern Responsive Body Index Calculator for WordPress with Metric & Imperial Units and Real-Time Results.

== Description ==

Imran Body Index – Modern & Responsive is a powerful, fully responsive WordPress plugin that allows users to instantly calculate their Body Mass Index (BMI) with a clean and modern SaaS-style interface.

Designed for health blogs, fitness trainers, gyms, medical websites, and SaaS platforms, this plugin delivers accurate BMI results along with smart health classification. It supports both Metric (kg/cm) and Imperial (lbs/feet) unit systems, making it flexible and user-friendly for a global audience.

With its fast-loading performance, mobile-friendly design, and easy shortcode integration, you can add a professional BMI calculator to any page in seconds — no coding required.

**Features:**

* Fully Responsive Design — works on desktop, tablet, and mobile
* Metric & Imperial Unit Support — switch between kg/cm and lbs/feet
* Real BMI Calculation — accurate formula for both unit systems
* Instant Result with Health Category — Underweight, Healthy, Overweight, or Obese
* Visual Gauge — colour-coded semicircular gauge reflects your BMI zone
* Input Validation — clear error messages for missing or unrealistic values
* Calculation History — total calculation count stored and visible in the admin dashboard
* Lightweight & Fast Performance — minimal assets, inline styles and scripts
* Easy Shortcode Integration — one shortcode, works on any page or post
* Clean Admin Dashboard — view plugin info, shortcode, and usage statistics

== Frequently Asked Questions ==

= Is the plugin responsive? =
Yes. The calculator is fully responsive and works on desktop, laptop, tablet, and mobile devices.

= Does it support metric units? =
Yes. You can switch between Standard (lbs/feet) and Metric (kg/cm) units using the toggle at the top of the calculator.

= Does it store data? =
Yes. Each calculation is recorded in the database. The total count is visible in the admin dashboard under **Settings > Imran Body Index**.

= What BMI categories does it use? =
The plugin follows standard WHO classifications: Underweight (below 18.5), Healthy (18.5–24.9), Overweight (25–29.9), and Obese (30 and above).

= Do I need to write any code? =
No. Simply paste `[imbi_calculator]` into any page or post and the calculator will render automatically.

= Is the plugin free? =
Yes, the plugin is completely free and open source under the GPLv2 licence.

== Screenshots ==

1. Frontend BMI Calculator — Standard unit mode with gauge and result
2. Frontend BMI Calculator — Metric unit mode
3. Admin Dashboard — shortcode reference and total calculation count

== Changelog ==

= 1.0.2 =
* Fixed: BMI was hardcoded to 25 — now calculated correctly from user input
* Fixed: JavaScript typo (`bmi_ajax` → `imbi_ajax`) that prevented calculations from being saved
* Fixed: Health category was always "Healthy" regardless of BMI — now derived from actual result
* Added: Frontend input validation with visible error messages
* Added: Server-side sanity checks on age and BMI before database insert
* Added: Colour-coded semicircular gauge with zone arcs (blue/green/yellow/red)
* Added: AJAX `.fail()` handler for silent error logging
* Improved: Script enqueued with proper jQuery dependency and footer placement
* Bumped: Stable tag to 1.0.2

= 1.0.2 =
* Minor code improvements and security hardening.

= 1.0.2 =
* Initial release.

== Upgrade Notice ==

= 1.0.2 =
Critical fix: BMI was never actually calculated from user input in previous versions. Please update immediately.