=== Read Time Machine ===
Contributors: madebysaad
Tags: reading time, read time, word count, seo, content
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Display estimated reading time on posts and pages in a light, customizable way.

== Description ==

Read Time Machine adds an estimated reading time label to your content, with simple controls for where and how it appears.

Developer: Mohamed Saad - https://madebysaad.com/

Documentation: https://madebysaad.com/read-time-machine/


= Key features =

* Estimated reading time using a configurable Words Per Minute (WPM).
* Flexible placement: before or after content.
* Label template with tokens: `{minutes}` and `{words}`.
* Optional word count display.
* Style presets (Minimal, Badge, Pill, Inline, Marker, Underline, Outline, Left Bar, Gradient).
* Optional number animation with duration/delay controls.
* Per-post checkbox to disable the label.
* Exclusions by post IDs, categories, and tags.
* Lightweight and performance-friendly: cached values in post meta, conditional enqueues.

No tracking, no external requests, and no third-party libraries.

== Installation ==

1. Upload the `read-time-machine` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the Plugins menu in WordPress.
3. Open Read Time Machine at the bottom of the admin menu to configure display options.

== Frequently Asked Questions ==

= Does this affect SEO performance? =
The plugin is designed to be lightweight. It caches read-time values in post meta and only enqueues assets when needed.

= Does it work with Elementor? =
Yes. The plugin injects the label after page builders render content, and it also caches accurate values on save for Elementor-built pages.

= Can I change the label text? =
Yes. Use the Label Template setting with `{minutes}` and `{words}` tokens.

= Can I disable it for a specific post? =
Yes. Use the meta box in the post editor (sidebar) to disable reading time for that content.

= Does it support custom post types? =
Yes. Enable any public post type from the plugin settings.

== Screenshots ==

1. Settings page (WPM, placement, label, style, animation).
2. Post editor meta box (disable per-post).
3. Example output (Pill style).

== Changelog ==

= 1.2.5 =
* Fixed: "Hide on mobile" and "Compact style on mobile" had no effect. At 600 px wide and below, the label is now hidden, or shown with 12 px text and less padding in the presets that have padding (with the Style Builder on: 12 px text, 2 px padding top and bottom and 6 px at the sides).
* Fixed: "Fade/slide in the label" had no effect. The label now fades in and slides up (the Inline preset only fades) over the entrance duration, after the entrance delay. A label that starts off screen waits until it scrolls into view, unless "Start animation when the label becomes visible" is off. The label still appears without JavaScript, and appears without motion when the visitor's system asks for reduced motion.
* Fixed: preset text colours followed the visitor's system dark mode instead of the theme, so labels could be hard to read on light or dark themes. Minimal, Inline, Marker, Underline, Outline and Left Bar now use the theme's text colour, the Minimal number mixes the accent colour with it, the Marker highlight is see-through, Pill keeps dark text with its shine behind the text, and Gradient has white text on a gradient from the accent colour to a dark mix of the two accent colours, so long labels stay readable.
* Fixed: on the Styles tab, moving a slider or typing in its number box set off an endless loop ("Maximum call stack size exceeded") and rewrote numbers while you typed. The slider and the box now follow each other, a number outside the range is corrected when you leave the box, and each control has the same range as the saved setting (for example, Radius now stops at 60).
* Fixed: the Styles tab script and stylesheet are now loaded with the plugin version, so browsers fetch the new files after an update.
* Readme: the settings page is the plugin's own Read Time Machine menu, not under Settings, and all nine style presets are listed.

= 1.2.4 =
* Added a Settings link to the plugin's row on the Plugins screen.
* Added a Documentation link to the plugin's row meta on the Plugins screen, shown only when the row does not already link to the plugin page.
* Added a line at the bottom of the plugin's admin page with the plugin version, the developer and a link to the plugin documentation.
* Added developer and documentation links to the readme description.

= 1.2.3 =
* Improved Elementor compatibility (late injection + accurate caching on save).

= 1.2.2 =
* Uninstall cleanup: remove cached meta via core APIs (no direct SQL).
* Added /languages folder to satisfy plugin header Domain Path checks.

= 1.2.1 =
* Plugin Directory readiness fixes: added readme.txt, improved security hardening, and updated i18n handling.

= 1.2.0 =
* Style presets, mobile controls, and optional number animations.

== Upgrade Notice ==

= 1.2.5 =
Fixes the Mobile Display and Entrance Animation options, label colours on light and dark themes, and the Styles tab sliders and number boxes.

= 1.2.4 =
Adds a Settings link on the Plugins screen and links to the developer and the plugin documentation. Reading time output is unchanged.

= 1.2.3 =
Recommended update for Elementor compatibility.

= 1.2.2 =
Recommended update for cleaner uninstall and improved Plugin Check compatibility.

= 1.2.1 =
Recommended update for WordPress.org submission readiness and improved input handling.
