{"id":42584,"date":"2016-03-20T18:31:51","date_gmt":"2016-03-20T18:31:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/tk-bbpress-stats\/"},"modified":"2026-01-30T01:50:33","modified_gmt":"2026-01-30T01:50:33","slug":"tk-bbpress-stats","status":"publish","type":"plugin","link":"https:\/\/ka.wordpress.org\/plugins\/tk-bbpress-stats\/","author":13290839,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"trunk","tested":"6.7.5","requires":"5.0","requires_php":"8.0","requires_plugins":null,"header_name":"TK bbPress Stats","header_author":"Tony Korologos","header_description":"","assets_banners_color":"ffffff","last_updated":"2026-01-30 01:50:33","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.tkserver.com\/","header_plugin_uri":"http:\/\/www.tkserver.com","header_author_uri":"http:\/\/www.tkserver.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1523,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"TKServer","date":"2016-03-28 00:49:45"},"1.0.2":{"tag":"1.0.2","author":"TKServer","date":"2016-03-28 00:54:12"},"1.0.3":{"tag":"1.0.3","author":"TKServer","date":"2016-03-28 00:59:42"}},"upgrade_notice":{"2.0.0":"<p>Major security and modernization update. Fixes critical SQL injection vulnerability. Adds PHP 8.5 support. Highly recommended upgrade for all users. Fully backward compatible - no breaking changes.<\/p>","1.0.3":"<p>Added shortcode functionality for displaying stats in posts and pages.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1379467,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1379466,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1379467,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1379467,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Widget settings - back end","2":"Widget display - front end"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2770,5706,521,522,162],"plugin_category":[43],"plugin_contributors":[126961],"plugin_business_model":[],"class_list":["post-42584","plugin","type-plugin","status-publish","hentry","plugin_tags-bbpress","plugin_tags-forum","plugin_tags-statistics","plugin_tags-stats","plugin_tags-widget","plugin_category-customization","plugin_contributors-tkserver","plugin_committers-tkserver"],"banners":{"banner":"https:\/\/ps.w.org\/tk-bbpress-stats\/assets\/banner-772x250.jpg?rev=1379466","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/tk-bbpress-stats\/assets\/icon-128x128.jpg?rev=1379467","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/tk-bbpress-stats\/assets\/screenshot-1.png?rev=1379467","caption":"Widget settings - back end"},{"src":"https:\/\/ps.w.org\/tk-bbpress-stats\/assets\/screenshot-2.png?rev=1379467","caption":"Widget display - front end"}],"raw_content":"<!--section=description-->\n<p>TK bbPress Stats provides useful statistics about your bbPress forum with modern security and performance features. Fully compatible with PHP 8.5 while maintaining backward compatibility to PHP 7.4.<\/p>\n\n<p><strong>Key Features:<\/strong><\/p>\n\n<ul>\n<li>Display forum statistics in widgets or via shortcode<\/li>\n<li>Intelligent caching for optimal performance<\/li>\n<li>Secure database queries with prepared statements<\/li>\n<li>Full internationalization support<\/li>\n<li>Modern PHP 8.5 code with type safety<\/li>\n<li>Conditional asset loading for better performance<\/li>\n<\/ul>\n\n<p><strong>Available Statistics:<\/strong><\/p>\n\n<ol>\n<li>Total Users<\/li>\n<li>Total Topics<\/li>\n<li>Total Replies<\/li>\n<li>Total Posts (topics + replies)<\/li>\n<li>Total Forums<\/li>\n<\/ol>\n\n<p>Each statistic can be individually enabled\/disabled, and the widget title is fully customizable.<\/p>\n\n<p><strong>Security Features:<\/strong><\/p>\n\n<ul>\n<li>SQL injection protection with prepared statements<\/li>\n<li>XSS prevention with proper output escaping<\/li>\n<li>Input sanitization on all user data<\/li>\n<li>Capability checks for admin access<\/li>\n<li>Path traversal protection<\/li>\n<\/ul>\n\n<p><strong>Performance Optimizations:<\/strong><\/p>\n\n<ul>\n<li>Smart caching (1-hour default, auto-invalidates on changes)<\/li>\n<li>Conditional script\/style loading<\/li>\n<li>Optimized database queries<\/li>\n<li>Minimal resource footprint<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Automatic Installation<\/h4>\n\n<ol>\n<li>Log in to your WordPress admin panel<\/li>\n<li>Navigate to Plugins &gt; Add New<\/li>\n<li>Search for \"TK bbPress Stats\"<\/li>\n<li>Click \"Install Now\" and then \"Activate\"<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download the plugin zip file<\/li>\n<li>Upload the folder <code>tk-bbpress-stats<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Configure the widget in Appearance &gt; Widgets or use the shortcode<\/li>\n<\/ol>\n\n<h4>Widget Usage<\/h4>\n\n<ol>\n<li>Go to Appearance &gt; Widgets<\/li>\n<li>Drag \"TK bbPress Stats\" to your desired widget area<\/li>\n<li>Configure which statistics to display<\/li>\n<li>Save your settings<\/li>\n<\/ol>\n\n<h4>Shortcode Usage<\/h4>\n\n<p>Insert this shortcode in any post or page:\n    [widget widget_name=\"TK_bbPress_Stats\"]<\/p>\n\n<p>Then configure display options in Settings &gt; TK bbPress Stats<\/p>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 5.0 or higher<\/li>\n<li>bbPress plugin installed and activated<\/li>\n<li>PHP 7.4 or higher (PHP 8.0+ recommended)<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20statistics%20can%20this%20widget%20display%3F\"><h3>What statistics can this widget display?<\/h3><\/dt>\n<dd><p>The widget can show:\n* Total Users\n* Total Topics\n* Total Replies\n* Total Posts (topics + replies combined)\n* Total Forums<\/p>\n\n<p>Each statistic can be individually enabled or disabled.<\/p><\/dd>\n<dt id=\"does%20the%20widget%20count%20unpublished%20or%20trashed%20content%3F\"><h3>Does the widget count unpublished or trashed content?<\/h3><\/dt>\n<dd><p>No, only published topics, replies, and forums are counted.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20php%208.5%3F\"><h3>Is this plugin compatible with PHP 8.5?<\/h3><\/dt>\n<dd><p>Yes! Version 2.0.0 is fully compatible with PHP 8.5 while maintaining backward compatibility with PHP 7.4+.<\/p><\/dd>\n<dt id=\"how%20does%20caching%20work%3F\"><h3>How does caching work?<\/h3><\/dt>\n<dd><p>Statistics are cached for 1 hour by default. The cache automatically clears when:\n* A new topic is created\n* A new reply is posted\n* A new forum is created\n* A user registers or is deleted<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20secure%3F\"><h3>Is this plugin secure?<\/h3><\/dt>\n<dd><p>Yes, version 2.0.0 includes comprehensive security improvements:\n* SQL injection protection with prepared statements\n* XSS prevention with proper escaping\n* Input sanitization\n* Capability checks\n* Path traversal protection<\/p><\/dd>\n<dt id=\"will%20upgrading%20from%20v1.x%20break%20my%20site%3F\"><h3>Will upgrading from v1.x break my site?<\/h3><\/dt>\n<dd><p>No, version 2.0.0 is fully backward compatible. Your existing settings and widget configurations will be preserved.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20cache%20duration%3F\"><h3>Can I customize the cache duration?<\/h3><\/dt>\n<dd><p>Yes, add this to your wp-config.php:\n    define('TK_BBPRESS_STATS_CACHE_EXPIRATION', 3600); \/\/ seconds<\/p><\/dd>\n<dt id=\"does%20this%20work%20with%20multisite%3F\"><h3>Does this work with multisite?<\/h3><\/dt>\n<dd><p>Yes, the plugin works with WordPress multisite installations.<\/p><\/dd>\n<dt id=\"how%20do%20i%20translate%20this%20plugin%3F\"><h3>How do I translate this plugin?<\/h3><\/dt>\n<dd><p>The plugin is fully internationalized. Use a translation plugin like Loco Translate or create .po\/.mo files in the \/lang directory.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0 - 2026-01-26<\/h4>\n\n<p><strong>Major Security &amp; Modernization Release<\/strong><\/p>\n\n<ul>\n<li><strong>SECURITY<\/strong>: Fixed SQL injection vulnerability in database queries<\/li>\n<li><strong>SECURITY<\/strong>: Added input sanitization for all user inputs<\/li>\n<li><strong>SECURITY<\/strong>: Implemented capability checks for admin access<\/li>\n<li><strong>SECURITY<\/strong>: Added path validation for file includes<\/li>\n<li><strong>SECURITY<\/strong>: Proper output escaping throughout<\/li>\n<li><strong>NEW<\/strong>: PHP 8.5 compatibility with type declarations<\/li>\n<li><strong>NEW<\/strong>: Intelligent caching system (1-hour default)<\/li>\n<li><strong>NEW<\/strong>: Conditional asset loading for better performance<\/li>\n<li><strong>NEW<\/strong>: Full internationalization support<\/li>\n<li><strong>NEW<\/strong>: bbPress dependency check on activation<\/li>\n<li><strong>IMPROVED<\/strong>: Modern PHP syntax (short arrays, typed properties)<\/li>\n<li><strong>IMPROVED<\/strong>: Optimized database queries with prepared statements<\/li>\n<li><strong>IMPROVED<\/strong>: Better error handling and user feedback<\/li>\n<li><strong>IMPROVED<\/strong>: Code organization and documentation<\/li>\n<li><strong>IMPROVED<\/strong>: Widget configuration interface<\/li>\n<li><strong>FIXED<\/strong>: Deprecated widget constructor<\/li>\n<li><strong>FIXED<\/strong>: Undefined array key warnings<\/li>\n<li><strong>FIXED<\/strong>: Inconsistent option naming<\/li>\n<li>Minimum PHP version: 7.4 (backward compatible)<\/li>\n<li>Minimum WordPress version: 5.0<\/li>\n<li>Tested up to WordPress 6.7<\/li>\n<\/ul>\n\n<h4>1.0.3 - 2016-03-27<\/h4>\n\n<ul>\n<li>Added shortcode option for putting widget inside posts\/pages<\/li>\n<\/ul>\n\n<h4>1.0.2 - 2016-03-26<\/h4>\n\n<ul>\n<li>Small code cleanup<\/li>\n<li>Added screenshots, icon and header image<\/li>\n<\/ul>\n\n<h4>1.0.1 - 2016-03-25<\/h4>\n\n<ul>\n<li>Small code cleanup<\/li>\n<li>Image updates<\/li>\n<\/ul>\n\n<h4>1.0.0 - 2016-03-20<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Modern, secure bbPress statistics widget with PHP 8.5 support. Display forum stats with caching and security enhancements.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42584"}],"author":[{"embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tkserver"}],"wp:attachment":[{"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42584"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42584"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42584"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42584"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42584"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ka.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}