[Bug]: Annual Site Stats Insights Reporting Wrong Posts Number
Quick summary
Annual insights are reporting a wrong number of published posts per year on a user's site.
Steps to reproduce
- Check 4929036-zen
- Go to https://wordpress.com/stats/day/annualstats/ for the specific site
- Notice the difference and small number shown there.
What you expected to happen
Show an accurate number of posts published each year.
What actually happened
Annual site stats are showing a very small number of published posts per year, compared to the real number.
Hey! Making a friendly reminder here if anybody can have a look at this. 🙌
The user's issue has resurrected (5311458-zen) - now they report that it's both the annual stats and the relevant posts that are impacted.
I have posted some more debugging info to the ticket mentioned above to hopefully make it easier for a developer to help us debug this issue.
Encountered similar issue in 5624531-zd-woothemes
Support References
This comment is automatically generated. Please do not edit it.
- [ ] 4929036-zen
- [ ] 5311458-zen
- [ ] 5624531-zen
📌 SCRUBBING : RESULT
- No steps to replicate provided.
📌 FINDINGS/SCREENSHOTS/VIDEO
The site noted in 5311458-zen (the original reporter) is self-hosted, and it now shows the same number of posts for 2022 in /stats/insights/ and /stats/day/annualstats/ - it's possible the issue is not consistent.
The site noted in 5624531-zd-woothemes is hosted with us. They report that the Word Count in the /stats/day/annualstats/ page is far too low for the year 2014
- They have a third-party plugin https://wordpress.org/plugins/codepress-admin-columns/ installed on their site that shows Word Counts for all of their posts in the
/wp-admin/edit.phppages, as shown below.- they appear to have one post a month in 2014 at or above 1500 Word Count (according to the third party plugin), so quick math implies that their total word count for 2014 of over 18,000 (according to the third party plugin).
- their total word count for 2014 in https://wordpress.com/stats/day/annualstats/ is
7,876, and the Avg words per post is656.

📌 ACTIONS
- Marked as Triaged for Quality Squad review
- Transferred to
/jetpackrepo instead of/wp-calypso: - Added to 'HE Cross-repo Watchlist' project board
📌 MESSAGE TO QUALITY SQUAD
- not sure we have enough evidence of a bug here, but there's quite a bit of debugging info on both tickets, if someone within Jetpack wants to take a look.