תיאור
MWR Hit Counter adds a simple visitor counter that can be displayed with a shortcode:
[mwrcounter]
Version 1.3.0 updates the original 1.2.0 release while keeping the plugin lightweight and simple.
The counter is global across the site. If [mwrcounter] is used on multiple pages, all instances use the same stored counter value.
Features
- Five visual counter styles: Classic, Digital, Modern, Neon, and Minimal.
- Live preview of the selected style in the plugin settings.
- Configurable current counter value.
- Optional entrance animation.
- Support for visitors who prefer reduced motion.
- Style and animation overrides through shortcode attributes.
- WordPress Dashboard widget showing the current total.
- Links for plugin ratings, donations, and MiWebRentable.
- No external analytics service is required.
Settings
Go to Settings > MWR Hit Counter.
Current counter value
Set the exact number currently stored by the counter. Save the settings to apply the value.
Counter style
Choose one of the included styles:
- Classic
- Digital
- Modern
- Neon
- Minimal
The live preview shows the selected style before saving.
Animation
Enable a subtle entrance animation for the counter.
The animation respects the visitor's prefers-reduced-motion setting.
Shortcode
Basic usage:
[mwrcounter]
Style
Override the configured style for a specific shortcode:
[mwrcounter style="digital"]
Available style values:
- classic
- digital
- modern
- neon
- minimal
Animation
Enable animation for a specific shortcode:
[mwrcounter animation="1"]
Disable animation for a specific shortcode:
[mwrcounter animation="0"]
Combined example
[mwrcounter style="neon" animation="1"]
Counting behavior
MWR Hit Counter stores one global counter in the WordPress database.
A browser is counted only when the mwrcounter cookie is not present. The cookie remains valid for 30 days, so the same browser is not counted again during that period.
The counter is browser-based and does not use IP address tracking.
Dashboard
The plugin adds an MWR Hit Counter widget to the WordPress Dashboard. It displays the current total and provides a link to the plugin settings.
Privacy
The plugin stores the counter value in the WordPress database and uses the mwrcounter cookie to prevent repeated counting from the same browser for 30 days.
No external tracking or analytics service is required.
Site owners are responsible for determining whether additional privacy or cookie notices are required for their own site.
Disclaimer
MWR Hit Counter is provided "as is", without warranty of any kind, to the extent permitted by applicable law.
The plugin is intended to provide a simple hit-counting feature for WordPress. Users are responsible for configuring the plugin appropriately and for verifying that it works correctly with their WordPress installation, theme, hosting environment, and other installed plugins.
The plugin author is not responsible for data loss, inaccurate or incomplete counting, compatibility issues, service interruptions, or other problems resulting from incorrect configuration, third-party software, hosting or server conditions, unauthorized modifications, or failure to maintain appropriate backups.
MWR Hit Counter is not a full analytics system and is not intended to provide guaranteed or exact visitor statistics. Counting results may vary because of browser settings, cookies, privacy tools, caching, server configuration, and other factors outside the plugin's control.
Users should maintain regular backups of their WordPress installation and test plugin updates in a suitable environment when possible.
Updating and uninstalling
Deactivating or updating the plugin preserves the existing counter data.
Deleting the plugin through WordPress runs the uninstall routine, which removes the MWR Hit Counter database table and the stored plugin settings.
Before deleting or making significant changes to the plugin, make sure that any counter data you want to keep has been backed up.
התקנה
- Upload the plugin ZIP through Plugins > Add New > Upload Plugin, or install the plugin through the WordPress plugins screen.
- Activate MWR Hit Counter.
- Go to Settings > MWR Hit Counter.
- Set the current counter value and choose a visual style.
- Add [mwrcounter] to a page, post, widget, or another location where WordPress shortcodes are supported.
שאלות נפוצות
-
Can I use the counter on multiple pages?
-
Yes. You can place [mwrcounter] in multiple pages, posts, or widgets. All instances use the same global counter.
-
Does the counter increase on every page refresh?
-
No. A browser is not counted again while its
mwrcountercookie is present. The default cookie lifetime is 30 days. -
Can I set the counter to a specific number?
-
Yes. Use the Current counter value field under Settings > MWR Hit Counter.
-
Can I choose a different style for one shortcode?
-
Yes. Use the
styleattribute, for example[mwrcounter style="neon"]. -
Which WordPress versions are supported?
-
The plugin requires WordPress 5.0 or later and is tested up to WordPress 7.1.
-
Which PHP versions are supported?
-
The plugin requires PHP 7.4 or later.
מפתחים
ניתן לתרגם את "MWR Hit Counter" לשפה שלך.
מעוניינים בפיתוח?
עיינו בקוד, ראו את הקוד ב-SVN repository, או הירשמו ללוג פיתוח באמצעות RSS.
שינויים
1.3.0
- Added five visual counter styles.
- Added live style preview in the settings screen.
- Added configurable current counter value.
- Added optional entrance animation with reduced-motion support.
- Added style and animation shortcode attributes.
- Added a WordPress Dashboard widget.
- Added rating, donation, and MiWebRentable links.
- Added localization-ready plugin strings and text domain support.
- Preserved existing counter data across deactivation and updates.
1.2.0
- Updated WordPress compatibility.
- Added uninstall cleanup.
- Counter data is preserved when the plugin is deactivated and removed when the plugin is uninstalled.
1.1.0
- Updated for compatibility with WordPress 6.8.2.
- Improved database table creation using
dbDelta(). - Added safety checks for PHP 8+.
- Improved cookie compatibility.
- Code cleanup and escaping improvements.
0.1
- Initial release.
