InResRisk Calculators – WHtR, BRI & Health Calculators

Description

InResRisk Health Risk Calculators lets you drop interactive health calculators into any WordPress post or page — no account, no API key, and no cost to you or your readers.

Available calculators

  • Waist-to-Height Ratio (WHtR)
  • Body Roundness Index (BRI)
  • Healthy Waist Size lookup
  • Conicity Index
  • BMI

How to add one

Use the Gutenberg block (“InResRisk Calculator”) to pick a calculator, theme, and units from a dropdown, or use the shortcode directly:

[inresrisk type="whtr" theme="light" units="metric"]

Every calculator ships with a title above it by default, so readers immediately know what it is. A short description and a “read the full guide” link are both available but off by default — turn either on from the block’s sidebar, or via extra shortcode attributes:

[inresrisk type="whtr" show_title="true" title="How risky is your waist?" show_description="true" description="A quick metabolic risk screen." show_article_link="true" article_url="https://example.com/my-article"]
  • title — custom heading text. Leave blank to use the default (e.g. “Waist-to-Height Ratio Calculator”).
  • show_titletrue (default) or false.
  • description — custom one-line description. Leave blank to use the built-in description for that calculator.
  • show_descriptiontrue or false (default).
  • article_url — link target for the “Read the full guide” link. Leave blank to use the InResRisk guide for that calculator, where one exists.
  • show_article_linktrue or false (default). Off by default so no link to InResRisk appears unless you choose to add one.

Why it’s safe to add

  • The calculator engine is bundled with the plugin and runs from your own site — no code is loaded from inresrisk.com or any other external server to display or run a calculator.
  • The bundled script (under 5 KB gzipped) only loads on pages that actually use a calculator — never sitewide.
  • Each calculator runs inside a Shadow DOM, fully isolated from your theme’s CSS. Your styles can’t break it, and it can’t leak styles onto your page.
  • No cookies, no login, no personal data collected from your visitors’ calculator inputs.
  • No branding by default. You can optionally show a small “Powered by InResRisk” link below each calculator — off unless you turn it on under Settings InResRisk Calculators.
  • Anonymous usage analytics is opt-in and off by default — nothing is sent to InResRisk unless you turn it on under Settings InResRisk Calculators.

See the “External services” section below for the one optional connection this plugin can make to InResRisk, and exactly what it sends.

External services

This plugin’s calculators run entirely from JavaScript bundled with the plugin — no code is loaded from inresrisk.com, or any other external server, to display or run a calculator. The only connection this plugin can ever make to inresrisk.com (a service not affiliated with WordPress.org) is an anonymous analytics beacon, and it’s opt-in: off by default, and only sent if you explicitly enable it under Settings InResRisk Calculators in your WordPress admin.

What is sent, and when:

  • Anonymous usage analytics is opt-in and disabled by default. Nothing is sent to https://inresrisk.com/api/track unless you explicitly enable it. If you turn it on, the calculator sends an anonymous beacon when a visitor loads a calculator, completes a calculation, or (if you’ve also enabled the attribution link below) clicks it. This includes only the calculator type, your site’s hostname, a randomly generated browser ID stored in the visitor’s browser (not linked to any personal data), and the selected theme. No names, emails, or health figures entered into the calculator are ever transmitted — the calculation runs entirely in the browser. As with any web request, the visitor’s IP address is visible to the server when their browser sends a beacon to /api/track; InResRisk does not intentionally log or store IP addresses from these requests.
  • The “Powered by InResRisk” credit link is also opt-in and disabled by default. No link to inresrisk.com is shown on your site’s front end unless you explicitly enable it under Settings InResRisk Calculators.

InResRisk Privacy Policy: https://inresrisk.com/privacy

Blocks

This plugin provides 1 block.

  • InResRisk Calculator

Installation

  1. Upload the plugin to /wp-content/plugins/ or install it through the WordPress plugin screen directly.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Add the “InResRisk Calculator” block from the block inserter, or paste a [inresrisk] shortcode into any post, page, or Custom HTML block.

FAQ

Will it slow my page?

No. The calculator script is bundled with the plugin (not loaded from an external server), under 5 KB gzipped, loads asynchronously, and only loads on pages where you’ve actually added a calculator.

Will the widget styles clash with my site’s CSS?

No. Each calculator runs inside a Shadow DOM, which fully isolates it from your page’s styles. Your CSS can’t break the calculator, and the calculator can’t override your CSS.

Can I use multiple calculators on the same page?

Yes. Add as many blocks or shortcodes as you like — the underlying script is only loaded once per page no matter how many calculators you add.

Can I customise the colour theme?

Each calculator ships with a light theme (default) and a dark theme, selectable per block/shortcode. Custom brand colours aren’t currently supported.

Can I hide or change the title, description, and article link?

Yes. Each calculator shows a title by default so readers know what it is; the short description and “read the full guide” link are both off by default. From the block’s sidebar (or via shortcode attributes) you can rewrite the title, and turn the description and article link on or off — the article link is off by default so no link to InResRisk is added unless you explicitly turn it on.

Does this plugin track my visitors?

No, not unless you turn it on. By default, calculators added by this plugin send nothing to InResRisk. If you want to help InResRisk measure adoption, you can opt in under Settings InResRisk Calculators — this sends three anonymous events (widget type, your site’s hostname, a random browser ID, and the selected theme) per calculator interaction. No names or health figures are ever transmitted, and InResRisk does not intentionally log or store IP addresses. See “External services” below for details.

Does this plugin add “Powered by InResRisk” branding to my site?

Not unless you turn it on. By default, calculators added by this plugin show no branding at all. If you’d like to help keep the calculators free, you can opt in to a small “Powered by InResRisk” link under Settings InResRisk Calculators — it’s entirely your choice, and off unless you enable it.

Do my readers need to create an account or install anything?

No. The calculator runs entirely in their browser.

Are these medical diagnostic tools?

No. These are educational screening tools, not diagnostic tools. They do not replace medical advice, blood tests, or clinical evaluation. Readers with health concerns should consult a qualified healthcare professional.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“InResRisk Calculators – WHtR, BRI & Health Calculators” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.1

  • The “See diagram” measurement-help image is now bundled with the plugin instead of being loaded from inresrisk.com, so the calculators make zero external requests unless you explicitly opt in to analytics.
  • Renamed “installation ID” to “browser ID” in this readme for accuracy (it’s a random ID stored per-browser via localStorage, not a per-install identifier).

1.1.0

  • Added an optional title (shown by default), short description, and “read the full guide” article link around each calculator — the description and article link are off unless you turn them on.

1.0.0

  • Initial release: shortcode and Gutenberg block for all five InResRisk calculators.