WP Manifestindependent plugin directory
manifest / integrations / wp-graphql-content-stats

WPGraphQL Content Stats WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Add some stats to WPGraphQL: total posts, word count and estimated reading time.

★ 2stars
v1.0.1latest · 4 years ago

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/armandphilippot/wp-graphql-content-stats/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.

Add some stats to WPGraphQL: total posts, word count and estimated reading time.

Introduction

This WordPress plugin adds some new fields to WPGraphQL:

  • a total field is added to pageInfo: it contains the total of found posts or found users (depending on WP_Query type).
  • an info field is added to ContentNode (used by posts for example): it contains itself two fields:
    • readingTime: an estimated reading time,
    • wordsCount: the number of words in the post content.

The readingTime field offers two formats:

  • minutes: the returned number is a rounded estimate of reading time in minutes.
  • seconds: the returned number is a rounded estimate of reading time in seconds. It allows you to add some extra logic in frontend to display the reading time (displaying minutes and seconds for example).

Requirements

License

This project is open source and available under the GPL2.0-or-later License.

Releases

2 releases.

Tag
Published
v1.0.1 latest
Jan 25, 2022 4 years ago
Jan 24, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WPGraphQL Content Stats 1.0.1 · audited by WP Registry

No security issues found.

Audited release
1.0.1
Findings
none
Worst severity
—
Content hash
af44db1f708385a3a5fbd5ba…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.