Skip to content

Releases: hummelmose/wp-visitchart

v2.8.6 - Fix intermittent missing featured star badge

Choose a tag to compare

@hummelmose hummelmose released this 03 Sep 06:32

WP VisitChart v2.8.6

Fix: featured star badge (⭐) didn't always appear on articles with the correct category.


Root Cause

_prime_post_caches() was called with $update_term_cache set to false in all three places that check has_term() for the Featured Category (live count, top pages, dashboard widget). This meant category term relations were not primed alongside post data, so has_term() could hit a stale term cache entry — particularly likely with a persistent object cache (Redis/Memcached), where an outdated cached term relation can outlive expectations.

This explained the intermittent behaviour: sometimes the cache happened to be fresh (star showed correctly), other times it was stale (star was missing) even though the article actually had the correct category assigned.


Fix

Changed all three _prime_post_caches() calls to pass true for $update_term_cache, ensuring category relations are always fetched fresh alongside post data. Negligible added cost given only 10–20 rows are involved per call.


Upgrade

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

v2.8.5 - Cap large numbers in dashboard widget

Choose a tag to compare

@hummelmose hummelmose released this 01 Sep 19:20

WP VisitChart v2.8.5

Fix: dashboard widget now uses the same +100K number formatting as the main dashboard and mobile page.


The WordPress dashboard widget Top 20 i dag was still showing full numbers with thousand separators (e.g. 257.223) in the Total column, while the main admin dashboard and mobile page already used the capped +100K style format introduced in v2.8.3.

Added lstats_format_capped_number() as a PHP counterpart to the existing JavaScript formatCappedNumber() helper, since the dashboard widget renders entirely server-side. Numbers over 99,999 now display as +257K instead of 257.223, consistent across all three views.


Upgrade

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

v2.8.4 - Total pageviews in post editor submitbox

Choose a tag to compare

@hummelmose hummelmose released this 21 Aug 08:36

WP VisitChart v2.8.4

New feature: total pageviews shown in the post editor submitbox.


A Sidevisninger: X line now appears in the WordPress post/page editor submitbox — the same box showing Status, Synlighed, Ændringer, Udgivet den, etc. — matching the behaviour of the Post Views Counter plugin.

Shows a single total count (views_total + views_today) with a dashicons-chart-line icon to match the plugin's visual style elsewhere.

A single primary-key lookup on lstats_post_views, only runs on the individual post/page edit screen — no impact on list views or loops.


Upgrade

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

v2.8.3 - Total pageviews column + header row + large number formatting

Choose a tag to compare

@hummelmose hummelmose released this 20 Aug 20:20

WP VisitChart v2.8.3

Added a Total pageviews column to 'Mest besøgte sider i dag'.


v2.8.2 — Total column

'Mest besøgte sider i dag' now shows a Total column alongside the existing I dag count, on both the admin dashboard and mobile page.

The REST endpoint was extended with a single computed column (views_total + views_today AS total) added to the existing query — no new query, no new join, negligible added cost.

v2.8.3 — Header row and large number formatting

  • Added a header row above the list showing I DAG / TOTAL labels so the two number columns are self-explanatory
  • Large totals (over 99,999) are now displayed as +100K style shorthand instead of the full number with thousand separators

Upgrade

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

v2.8.1 - Dashboard widget filter buttons + default setting

Choose a tag to compare

@hummelmose hummelmose released this 16 Aug 20:35

WP VisitChart v2.8.1

New feature: filter buttons on the dashboard widget, plus a default filter setting.


v2.8.0 — Filter buttons

The Top 20 i dag dashboard widget now has three filter buttons at the top: Alle, Artikler, and Sider.

  • Clicking a filter refreshes only the table via AJAX — the rest of the WordPress dashboard does not reload
  • Each filter is cached separately for 60 seconds, so rapid tab switching doesn't repeatedly hit the database while data stays reasonably fresh
  • Post/page filtering uses an INNER JOIN against wp_posts on the primary key (always indexed) — negligible performance cost since lstats_post_views typically only contains a few hundred rows for the current day
  • Widget code refactored into three functions: data fetch + cache, shared HTML builder (used by both page load and AJAX), and the outer shell with buttons

v2.8.1 — Default filter setting

New setting under WP VisitChart → Settings → Dashboard widget - standardfilter lets you choose which filter the widget opens with by default when the WordPress dashboard loads. You can still freely switch filters afterwards.


Documentation

Both the English and Danish user manuals have been updated with a new section covering the dashboard widget filters.


Upgrade

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

v2.7.3 - Download button below release notes

Choose a tag to compare

@hummelmose hummelmose released this 07 Aug 13:37

WP VisitChart v2.7.3

Added a second download button at the bottom of the Updates page.


A Download button now appears right after the release notes, so you don't have to scroll back to the top of the page after reading what's new. Uses the same visibility logic as the top button — only shown when an update is actually available.


Upgrade

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

v2.7.2 - Auto-refresh update cache after plugin update

Choose a tag to compare

@hummelmose hummelmose released this 07 Aug 13:30

WP VisitChart v2.7.2

Fix: Updates page cache doesn't refresh immediately after a plugin update.


Problem

The 24-hour GitHub release cache was time-based only, with no awareness of whether the plugin itself had just been updated. If you upgraded the plugin while the cache still had time remaining, the Updates page would continue showing stale status until the full 24 hours elapsed.


Fix

The installed plugin version is now tracked in a dedicated option (lstats_last_checked_version). Every time the release check runs, it compares this stored version against the current get_plugin_data() version. If they differ — meaning the plugin was just updated — the cached release data is cleared immediately and a fresh GitHub API call is made.

The Updates page now always reflects the actual installed version right after an upgrade, without waiting for the cache to expire naturally.


Upgrade

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

v2.7.1 - Updates page with GitHub release checking

Choose a tag to compare

@hummelmose hummelmose released this 07 Aug 12:44

WP VisitChart v2.7.1

New feature: Updates page with automatic GitHub release checking.


v2.7.0 — Updates page

A new Opdateringer submenu appears under WP VisitChart in the admin menu.

  • Checks the GitHub releases API once every 24 hours, cached via a WordPress transient
  • Red notification badge on the menu item — matching WordPress's own plugin update indicator style — shown when a newer version is available
  • Page shows installed version, a status banner (green/red), a download button linking directly to the release zip, a link to the GitHub release page, and the full release notes rendered from Markdown to HTML
  • Failed API calls are cached for only 1 hour, so temporary network issues don't block retries for a full day

v2.7.1 — Fix: download button logic

The download button was shown even when the installed version was already equal to or newer than the latest GitHub release. Now the button only appears when an actual update is available — otherwise only the GitHub link is shown.


Documentation

Both the English and Danish user manuals have been updated with a new section covering the Updates page.


Upgrade

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

v2.6.8 - CRITICAL FIX: heartbeat.js was missing from zip (v2.6.5-2.6.7)

Choose a tag to compare

@hummelmose hummelmose released this 05 Aug 16:40

WP VisitChart v2.6.8

Critical fix — heartbeat.js was missing from packaged zip files in v2.6.5 through v2.6.7.


What happened

During the v2.6.4 rollback, only wp-visitchart.php, admin-dashboard.js, and admin-dashboard.css were restored from the v2.6.4 git tag — heartbeat.js was overlooked and remained absent from every zip built afterwards (v2.6.5, v2.6.6, v2.6.7).

heartbeat.js itself has been unchanged since v1.9.3 and was never buggy — the file was simply missing from the archive, causing a 404 on any site that installed one of the affected releases.


Impact

Without heartbeat.js, both live visitor tracking and the pageview ping fail silently. This results in undercounted heartbeats and roughly half the correct pageview totals — confirmed via direct SQL comparison against a third-party pageview counter running on the same site.

If you installed v2.6.5, v2.6.6, or v2.6.7: your pageview and traffic data for that period is likely undercounted by roughly 50%. There is no reliable way to reconstruct the missing heartbeat data retroactively — if you have another pageview counter running in parallel, you can use it to correct wp_lstats_post_views.views_today manually.


Fix

This release includes heartbeat.js. Verify the fix by checking your browser's network tab for a 200 response on heartbeat.js, or querying wp_lstats_post_views shortly after visiting an article to confirm updated_at reflects the visit.


Upgrade

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

v2.6.4 - Mobile sticky fix, heading removal, layout fixes

Choose a tag to compare

@hummelmose hummelmose released this 01 Aug 20:58

WP VisitChart v2.6.4

Mobile sticky bar fix, heading removal, and layout fixes.


v2.6.0 — Fix: sticky live bar not working on Chrome Android

The position: fixed sticky bar was scrolling away with the page on Chrome for Android due to the browser's dynamic URL bar behaviour.

Replaced position: fixed with a proper flex layout:

  • body is now display: flex; flex-direction: column; height: 100vh; overflow: hidden
  • The sticky bar has flex-shrink: 0 — it never participates in scrolling
  • All page content sits in a .scroll-content div with overflow-y: auto and -webkit-overflow-scrolling: touch

Works correctly on Chrome Android, Safari iOS, and all desktop browsers.


v2.6.1-2.6.2 — Remove page heading

Removed the 'Live besøgende og dagens trafik' heading from both the admin dashboard and the mobile page. Added padding-top: 16px to .scroll-content on mobile to maintain consistent spacing above the first card.


v2.6.3-2.6.4 — Admin layout fixes after heading removal

  • Added margin-top: 16px to #lstats-app to restore spacing below the sticky bar
  • Added padding-left: 20px; padding-right: 20px to .wrap — WordPress default left/right padding was being lost when explicit padding-top was applied

Upgrade

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