Calculate BMR and BMI

توضیحات

Calculate BMR and BMI adds two simple health calculators to your WordPress site. Use the BMR calculator to estimate how many calories the body burns at rest each day, and the BMI calculator to find a body mass index and weight category from height and weight. Each calculator has its own Gutenberg block and shortcode, so you can show one or both, wherever you need them.

Features

  • BMR calculator: estimates basal metabolic rate in calories per day from height, weight, age and sex
  • BMI calculator: body mass index from weight and height, with a simple weight category
  • Two Gutenberg blocks (“BMR Calculator” and “BMI Calculator”) with a live preview, plus two shortcodes; use either one or both
  • Translation-ready
  • Mobile-responsive layout
  • Metric inputs (kilograms and centimetres)
  • Results appear instantly in the browser, no page reload
  • No settings to configure

How to use

In the block editor, add the “BMR Calculator” or “BMI Calculator” block (Widgets category). Or add the shortcode for the calculator you want to a page or post:

[bmr_shortcode]

[bmi_shortcode]

You can place either shortcode more than once on the same page.

What the calculators do

BMR (basal metabolic rate) is the number of calories your body needs at rest to keep vital functions running. The BMR calculator uses the Mifflin-St Jeor equation: 10 x weight (kg) + 6.25 x height (cm) – 5 x age (years), then + 5 for men or – 161 for women.

BMI (body mass index) is weight in kilograms divided by height in metres squared. The BMI calculator shows the number and labels it as thin (18.4 or below), normal (18.5 to 25) or overweight (above 25).

Who it is for

Health, fitness and wellness blogs, personal trainers, nutrition coaches and anyone who wants to give visitors a quick way to estimate their resting calorie needs and BMI.

Disclaimer

The results are estimates for general information only and are not medical advice.

عکس‌های صفحه

بلوک‌ها

این افزونه 2 بلوک ارائه می‌دهد.

  • BMI Calculator Body mass index (BMI) calculator from weight and height.
  • BMR Calculator Basal metabolic rate (BMR) calculator: daily calories at rest from height, weight, age and sex.

نصب

  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Insert the shortcodes [bmr_shortcode] and [bmi_shortcode] directly into your pages or posts.

سوالات متداول

How do I add the BMR calculator to a page?

In the block editor, add the “BMR Calculator” block. Or paste [bmr_shortcode] into the page or post content, or into a shortcode block in the block editor. For the BMI calculator use the “BMI Calculator” block or [bmi_shortcode].

Which formula does the BMR calculator use?

The Mifflin-St Jeor equation: for men 10 x weight in kg + 6.25 x height in cm – 5 x age + 5, for women the same with – 161 at the end. The result is shown in calories per day.

What do the BMI categories mean?

The calculator shows “Thin” for a BMI of 18.4 or below, “Normal” from 18.5 to 25 and “Overweight” above 25. BMI is only a screening figure and does not take muscle mass or body composition into account.

Can I show only one of the calculators?

Yes. The two shortcodes are independent, so use only the one you need.

Does it support imperial units?

Not yet. The calculators take kilograms and centimetres.

Are there any extra settings?

No extra settings are required for this version.

Are there translations available?

The plugin is translation-ready; translations can be contributed on translate.wordpress.org.

Does the plugin collect or send visitor data?

No. The calculations run in the visitor’s browser and the values entered are not stored or sent anywhere.

نقد و بررسی‌ها

خواندن تمامی 1 نقد و بررسی‌

توسعه دهندگان و همکاران

“Calculate BMR and BMI” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“Calculate BMR and BMI” به 1 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “Calculate BMR and BMI” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.

گزارش تغییرات

1.6.0

  • New: Gutenberg blocks “BMR Calculator” and “BMI Calculator” with a live preview.
  • Translation-ready: all admin and front-end strings can be translated.
  • A review reminder in the admin after two weeks, dismissible.
  • Requires WordPress 5.5 or later.

1.5.2

  • Hardening: direct-access guards on every PHP file, prefixed function names, the BMR and BMI shortcodes can now be used more than once on a page, the unused text-domain loader was removed.

1.5.1

  • Tested with WordPress 7.1. Outbound credit links now carry rel=”nofollow”.

1.5

  • Minor fixes

1.4

  • Updated plugin to work with latest version of wordpress

1.3

  • Added BMI Calculation form

1.2

  • Fixed Calculate button error.

1.1

  • Fixed Error for JSON response. Now you can freely add the shortcode on page/post you want to display the BMR calculator.

1.0

  • A complete mobile responsive BMR calculator.

0.5

  • Basic BMR calculator for desktop view.