WP Manifestindependent plugin directory
manifest / utilities / reading-time-plugin

Reading Time Plugin

A lightweight WordPress plugin that calculates and displays estimated reading time on posts and pages — settings page, [reading_time] shortcode, and a native Gutenberg block. No build tools, no dependencies, plain PHP/CSS/JS.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/aditya8975/reading-time-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A lightweight WordPress plugin that calculates and displays estimated reading time on posts and pages — settings page, [reading_time] shortcode, and a native Gutenberg block. No build tools, no dependencies, plain PHP/CSS/JS.

Logo Description

Features

  • Auto-inject before/after content, or manual-only mode
  • Configurable WPM, text format, clock icon, per-post-type control
  • [reading_time] shortcode ([reading_time id="123" wpm="180"])
  • Native Gutenberg block with live server-side-rendered preview
  • Filters for developers: rtp_word_count, rtp_reading_minutes, rtp_display_text, rtp_reading_time_html, rtp_should_display

Plugin structure

reading-time-plugin/
├── reading-time-plugin.php        # Bootstrap: header, constants, activation hooks
├── uninstall.php                  # Cleanup on delete (not on deactivate)
├── includes/
│   ├── class-rtp-calculator.php   # Pure word-count / minutes logic + filters
│   ├── class-rtp-admin.php        # Settings API page (Settings > Reading Time)
│   ├── class-rtp-shortcode.php    # [reading_time] shortcode
│   ├── class-rtp-content-filter.php  # Auto the_content injection
│   └── class-rtp-block.php        # Gutenberg block registration (PHP side)
├── blocks/reading-time/
│   ├── block.json                 # Block metadata (API v3)
│   └── index.js                   # Editor UI (plain JS, no JSX/webpack)
├── assets/css/
│   ├── reading-time.css           # Front-end badge styling
│   └── admin.css                  # Settings page styling
└── readme.txt                     # WordPress.org-format readme

License

GPLv2 or later — required for anything distributed on WordPress.org, and the conventional choice for WordPress plugins generally.