Skip to content

v2.5.5 - Fix total count in dashboard widget

Choose a tag to compare

@hummelmose hummelmose released this 24 Jul 13:30
· 24 commits to main since this release

WP VisitChart v2.5.5

Bug fix: total count in the dashboard widget was lower than today's count.


Root Cause

views_total does not include today's pageviews — they are accumulated into views_total at midnight when the day rolls over. During an active day, the true total is always views_total + views_today.

The dashboard widget was querying views_total directly, which caused articles with significant traffic today to show a 'today' count higher than their 'total' count.


Fix

Changed the widget SQL to calculate views_total + views_today AS views_total. The posts list column was already handling this correctly.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.