markcheret/footnotes

Present usage statistics on dashboard (e.g., # of footnotes used)

Opened this issue · 2 comments

This feature request is to have statistics on how many footnotes are spread among posts/pages. Can be in the Diagnostics / statistics tab. #106 might wanna keep this page and expand upon it :)

Per #106 (comment), I don't think there's any need to maintain our own Diagnostics tab (which is out of the scope of a footnotes plugin, as well as already provided for by WP), but I agree that a statistics/overview page might be worth having.

It might be quite an undertaking to track total footnote numbers though: they don't exist until rendering, so there's no number in the database to track. We'd have to scan every Post for footnotes tags each time the tab was viewed, which wouldn't scale particularly well.

I wouldn't calculate on navigating to the tab, I'd collect the stats once per timeframe.. WP has a cron facility, we could hook into that and have the user decide how often to calculate and when with a sane default of once a day. Can be asynchronous.