=== Visitor Count by MrStar === Contributors: aniketsaini, ankitshah230 Tags: visitor count, frontend visitor count Requires at least: 5.3 Tested up to: 7.0 Stable tag: 1.0.7 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: mrstar-visitor-count A simple plugin to count frontend visitors based on their IP address. == Description == Visitor Count by MrStar is a simple plugin that counts the number of visitors to your website based on their IP address. The plugin tracks visitors without requiring complex configurations and provides an easy-to-use solution for counting and monitoring traffic. Note: Easily enable frontend visitor count statistics with a simple checkbox in the plugin settings page. ### Features * **Live Visitor Tracking** Monitor your website traffic in real-time, with accurate counting based on user IP addresses. * **Intuitive Dashboard** Access a clean and easy-to-navigate dashboard that displays key visitor data at a glance. * **Detailed Traffic Insights** Gain in-depth analytics, including total visits, unique users, and visit trends to better understand your audience. * **Easy Shortcode Support** Display visitor statistics anywhere on your site using simple shortcodes—no coding required. ### Available Shortcode Use shortcode "[mrstar-visitor-count]" in any post, page, or widget to display your traffic statistics. ### Who Is This For? * Bloggers aiming to monitor reader engagement * E-commerce store owners wanting insights into customer behavior * Website administrators needing quick traffic analysis == Installation == 1. Upload the plugin files to the `/wp-content/plugins/mrstar-visitor-count` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. No additional setup is required. == Frequently Asked Questions == = How does the plugin track visitors? = The plugin tracks each visitor based on their IP address to provide an accurate count of unique visitors. = Is this plugin compatible with caching plugins? = Yes, the plugin works well with caching solutions that are compatible with dynamic content. = How can I manually add visitor counts? = You can now use the new admin form to select any past date and manually enter the visitor count. == Screenshots == 1. Backend: Shortcode setting and visitor summery 2. Frontend: Visitor summery via shortcode == Changelog == = 1.0.7 = * Tested with WordPress 7.0 * Minor compatibility improvements. = 1.0.6 = * Fixed undefined variable warning for $table in visitor tracking function. * Replaced incorrect table variable usage with properly defined $wpdb->prefix table name. * Improved database query consistency in visitor logging logic. * Removed unused and unsafe variable assignment to prevent PHP warnings. = 1.0.5 = * **Database improvement:** Created a new individual table `mrstar_visitor_count` to store date-wise visitor counts. The plugin now automatically creates this table on activation and migrates existing data from `mrstar_visitor_data` in `wp_options`. * **New feature:** Added a new admin form to manually add visitor counts by selecting a date and entering the count. * **UI update:** Updated the backend admin page for better usability and cleaner layout. **⚠️ IMPORTANT:** Please take a full database backup before updating to this version, as it involves database table changes. = 1.0.2 = *Removed PHP session management to improve handling of temporary, user-specific data using IP-based identification only. = 1.0.1 = *Improved PHP session management for better stability. = 1.0.0 = * Initial release of the plugin.