{"id":10995,"date":"2026-05-24T11:29:50","date_gmt":"2026-05-24T03:29:50","guid":{"rendered":"https:\/\/aeosub.com\/webxperthub-post-views-reading-time\/"},"modified":"2026-05-24T11:29:50","modified_gmt":"2026-05-24T03:29:50","slug":"webxperthub-post-views-reading-time","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/webxperthub-post-views-reading-time\/","title":{"rendered":"Webxperthub Post Views &amp; Reading Time"},"content":{"rendered":"<div class=\"post-img\" style=\"margin-bottom: 25px\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/webxperthub-post-views-reading-time\/assets\/banner-1544x500.png?rev=3545752\" alt=\"Webxperthub Post Views &amp; Reading Time\" style=\"width: 100%;height: auto;border-radius: 12px\"><\/div>\n<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/webxperthub-post-views-reading-time\/assets\/icon-256x256.png?rev=3545752\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/iftiarhossain\/\" target=\"_blank\" rel=\"noopener\">iftiarhossain<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.0 \/ 7.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-24 3:08am GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/webxperthub-post-views-reading-time\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Track post views and accumulate total reading time from visitors. Display engagement metrics in your admin dashboard and post list columns.<\/div>\n<p>Webxperthub Post Views &amp; Reading Time is a lightweight WordPress plugin that automatically tracks how many times each post is viewed and measures the total reading time accumulated from all visitors. Perfect for bloggers, content creators, and site owners who want to understand their audience engagement at a glance.<\/p>\n<p><strong>Key Features:<\/strong><\/p>\n<ul>\n<li><strong>View Tracking<\/strong> &#8211; Automatically count the number of unique sessions viewing each post with intelligent bounce filtering<\/li>\n<li><strong>Reading Time Analytics<\/strong> &#8211; Measure actual time visitors spend reading your posts<\/li>\n<li><strong>Admin Dashboard Widget<\/strong> &#8211; Beautiful analytics widget showing total views, posts, and cumulative reading time<\/li>\n<li><strong>Post List Columns<\/strong> &#8211; Display views and reading time directly in the post list for quick reference<\/li>\n<li><strong>Smart User Filtering<\/strong> &#8211; Automatically excludes administrators, editors, authors, and contributors from view counts to track real visitor engagement<\/li>\n<li><strong>Session-based Counting<\/strong> &#8211; Prevents artificially inflating counts by tracking views per session, not per page load<\/li>\n<li><strong>Security First<\/strong> &#8211; Built with WordPress security standards including nonce verification, input sanitization, and proper output escaping<\/li>\n<li><strong>Lightweight &amp; Efficient<\/strong> &#8211; Minimal database footprint with optimized AJAX requests and prepared statements<\/li>\n<li><strong>Zero Configuration<\/strong> &#8211; Works automatically after activation, no settings to configure<\/li>\n<li><strong>Responsive Design<\/strong> &#8211; Dashboard widget looks great on all screen sizes<\/li>\n<\/ul>\n<h3>How It Works<\/h3>\n<p><strong>View Tracking Process:<\/strong><br \/>\n1. When a visitor loads a post, JavaScript waits 2 seconds (bounce filter) before sending a tracking request<br \/>\n2. An AJAX request is sent to your WordPress backend<br \/>\n3. The view count for that post is incremented in the post meta<br \/>\n4. SessionStorage records that this post was counted in the current session to prevent duplicates<\/p>\n<p><strong>Reading Time Tracking Process:<\/strong><br \/>\n1. JavaScript monitors how long a visitor spends on the page<br \/>\n2. Timing begins after the initial 2-second bounce delay<br \/>\n3. Timing ends when the visitor leaves the page or switches browser tabs<br \/>\n4. Only intervals of 3+ seconds are counted (minimum threshold)<br \/>\n5. A maximum of 30-minute intervals are recorded (filters outliers like tabs left open)<br \/>\n6. The accumulated time is added to the post&#8217;s total reading time meta<\/p>\n<p><strong>Dashboard Widget:<\/strong><br \/>\nThe admin dashboard displays:<br \/>\n&#8211; Total number of published posts<br \/>\n&#8211; Sum of all views across all posts<br \/>\n&#8211; Cumulative reading time from all visitors (formatted as &#8220;X hours Y minutes&#8221;)<\/p>\n<p><strong>Post List Columns:<\/strong><br \/>\nTwo new columns in the Posts list show:<br \/>\n&#8211; Views: Total view count for each post<br \/>\n&#8211; Read Time: Total accumulated reading time (click column header to sort)<\/p>\n<h3>Technical Details<\/h3>\n<p><strong>Database:<\/strong><br \/>\n&#8211; <code>_webxperthub_pvrt_view_count<\/code> \u2014 Stores the total view count for each post<br \/>\n&#8211; <code>_webxperthub_pvrt_reading_time<\/code> \u2014 Stores total reading time in seconds for each post<br \/>\n&#8211; Uses standard WordPress post meta (no custom tables)<\/p>\n<p><strong>Security:<\/strong><br \/>\n&#8211; All AJAX endpoints verify nonces for CSRF protection<br \/>\n&#8211; User input is sanitized and validated before use<br \/>\n&#8211; Output is properly escaped for display<br \/>\n&#8211; User roles are verified to exclude staff accounts<br \/>\n&#8211; Only published posts are tracked<\/p>\n<p><strong>Performance:<\/strong><br \/>\n&#8211; Efficient prepared statements for all database queries<br \/>\n&#8211; Asynchronous AJAX requests do not block user interaction<br \/>\n&#8211; SessionStorage prevents redundant database calls<br \/>\n&#8211; Minimal CSS and JavaScript payload<br \/>\n&#8211; No external API calls or third-party services<\/p>\n<h3>Support<\/h3>\n<p>For support, feature requests, or bug reports, please visit the plugin&#8217;s WordPress.org support forum. When posting, please include:<\/p>\n<ol>\n<li>A clear description of your issue<\/li>\n<li>Your WordPress version and PHP version<\/li>\n<li>A list of your currently active plugins<\/li>\n<li>Any error messages from your browser console (press F12)<\/li>\n<\/ol>\n<h3>Credits<\/h3>\n<p>Developed by Iftiar Hossain \u2014 Webxperthub<\/p>\n<h3>License<\/h3>\n<p>This plugin is licensed under the GPL-2.0-or-later license. You are free to use, modify, and distribute this plugin under the terms of the GNU General Public License.<\/p>\n<p>For more information about the GPL, visit: https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/p>","protected":false},"excerpt":{"rendered":"<p>Track post views and accumulate total reading time from visitors. Display engagement metrics in your admin dashboard and post list columns.<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[760,586,1016,589,690,555],"class_list":["post-10995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-analytics","tag-engagement","tag-post-views","tag-reading-time","tag-tracking","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=10995"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10995\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=10995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=10995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=10995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}