Skip to content

Commit c511cdf

Browse files
authored
Merge pull request #170 from wp-slimstat/development
Release v5.4.2
2 parents 1f33c56 + f622cf6 commit c511cdf

File tree

1,170 files changed

+65021
-200917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,170 files changed

+65021
-200917
lines changed

.distignore

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1+
# Directories
12
/.wordpress-org
23
/.git
34
/.github
45
/node_modules
56
/tests
7+
/test-results
8+
/admin/assets/scss
69

10+
# Build & dev files
711
.distignore
812
.gitignore
913
.editorconfig
10-
.env.testing.example
11-
.gulpfile.js
12-
codeception.dist.yml
14+
.coderabbit.yaml
15+
.cursorrules
16+
.cursoruserrules
17+
.qodo
18+
.php-cs-fixer.dist.php
19+
pint.json
20+
rector.php
1321
composer.json
1422
composer.lock
15-
LICENSE
1623
package.json
1724
package-lock.json
18-
postcss.config.js
19-
README.md
25+
bun.lock
26+
27+
# Docs (wp.org uses readme.txt)
28+
CHANGELOG.md
29+
README.md
30+
LICENSE
31+
security.md

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ composer.lock
4646

4747
# Testing
4848
.env.testing
49+
test-results/
50+
tests/e2e/.auth/
51+
tests/e2e/playwright-report/
52+
tests/e2e/run-artifacts/
4953
# Bun
5054
bun.lock
5155

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
= 5.4.2 - 2026-03-15 =
2+
3+
Fixed
4+
- Fixed tracking data not being recorded on some server configurations — REST API and admin-ajax endpoints now return responses correctly ([PR #218](https://github.com/wp-slimstat/wp-slimstat/pull/218))
5+
- Fixed visitor locations showing a proxy server IP instead of the real visitor IP on Cloudflare-powered sites ([#150](https://github.com/wp-slimstat/wp-slimstat/issues/150))
6+
- Fixed 503 errors that could occur on high-traffic sites due to inefficient visit ID generation ([#155](https://github.com/wp-slimstat/wp-slimstat/issues/155))
7+
- Fixed excessive server requests when WP-Cron is disabled, caused by repeated geolocation lookups ([#164](https://github.com/wp-slimstat/wp-slimstat/issues/164))
8+
- Fixed a CSS rule that could accidentally disable animations across your entire site, not just on SlimStat pages ([#167](https://github.com/wp-slimstat/wp-slimstat/issues/167))
9+
- Fixed outbound link clicks, file downloads, and page-exit events not being recorded — a silent regression in recent versions ([#174](https://github.com/wp-slimstat/wp-slimstat/issues/174))
10+
- Fixed consent rejections being ignored — visitors who declined tracking could still be tracked, and unconfigured consent types were incorrectly treated as granted ([PR #178](https://github.com/wp-slimstat/wp-slimstat/pull/178))
11+
- Fixed a crash when the WP Consent API plugin is not installed alongside SlimStat ([PR #172](https://github.com/wp-slimstat/wp-slimstat/pull/172))
12+
- Fixed a crash during background geolocation database updates ([#180](https://github.com/wp-slimstat/wp-slimstat/issues/180))
13+
- Fixed geolocation database updates not retrying after a failed download — previously blocked retries for up to a month ([PR #185](https://github.com/wp-slimstat/wp-slimstat/pull/185))
14+
- Fixed admin page styling conflicts with WordPress core styles ([PR #175](https://github.com/wp-slimstat/wp-slimstat/pull/175))
15+
- Fixed Email Reports page layout not matching other SlimStat admin pages ([PR #177](https://github.com/wp-slimstat/wp-slimstat/pull/177))
16+
- Fixed browser detection failing due to a library compatibility issue ([#187](https://github.com/wp-slimstat/wp-slimstat/issues/187))
17+
- Fixed the external page tracking snippet being completely broken — the snippet only set the legacy `ajaxurl` parameter while the tracker expects transport-specific endpoints ([#220](https://github.com/wp-slimstat/wp-slimstat/issues/220))
18+
19+
Improved
20+
- Every fix in this release is backed by ~329 automated tests across 46 test files — covering tracking, geolocation, consent, performance, and upgrade safety
21+
- Restored the server-side tracking API (`wp_slimstat::slimtrack()`) for themes and plugins that track visits programmatically ([#171](https://github.com/wp-slimstat/wp-slimstat/issues/171))
22+
- Unique visitor counts now work correctly even when IP addresses are anonymized or hashed ([PR #178](https://github.com/wp-slimstat/wp-slimstat/pull/178))
23+
- 261+ previously untranslated strings are now available for translation in all languages ([#173](https://github.com/wp-slimstat/wp-slimstat/issues/173))
24+
- Geolocation now works consistently across all request types, including background tasks
25+
- DB-IP restored as the default geolocation provider for new installations
26+
- Faster admin page loads by removing redundant database queries ([PR #189](https://github.com/wp-slimstat/wp-slimstat/pull/189))
27+
128
= 5.4.1 - 2026-03-09 =
229

330
- The GDPR consent banner message, accept, and decline labels can now be translated with WPML and Polylang ([#145](https://github.com/wp-slimstat/wp-slimstat/issues/145))

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Slimstat Analytics #
22
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
33

4-
We still have some plans to make SlimStat Analytics better, so please keep your feedback coming, please click here [WordPress Real-time Analytics Plugin](https://wp-slimstat.com/wordpress-analytics-plugin-slimstat-5-2-11-release-notes/?utm_source=wordpress&utm_medium=changelog&utm_campaign=changelog&utm_content=5-2-11) to read more.
4+
We still have some plans to make SlimStat Analytics better, so please keep your feedback coming, please click here [WordPress Real-time Analytics Plugin](https://wp-slimstat.com/wordpress-analytics-plugin-slimstat-5-4-release-notes/?utm_source=wordpress&utm_medium=changelog&utm_campaign=changelog&utm_content=5-4-0) to read more.
55

66
### Main features ###
77
* **Real-Time Access Log**: measure server latency, track page events, keep an eye on your bounce rate and much more.
8+
* **Admin Bar Stats**: view real-time site stats directly from the WordPress admin bar — online visitors, pageviews, and top pages at a glance.
89
* **Shortcodes**: display reports in widgets or directly in posts and pages.
9-
* **GDPR**: fully compliant with the GDPR European law. You can test your website at [cookiebot.com](https://www.cookiebot.com/en/).
10+
* **Customize Reports**: Customize all pages—Real-time, Overview, Audience, Site Analysis, and Traffic Sources—to fit your needs easily!
11+
* **GDPR**: fully compliant with GDPR European law. Integrates seamlessly with WP Consent API. Consent banner translatable with WPML and Polylang.
1012
* **Filters**: exclude users from slimstat collection based on various criteria, including user roles, common robots, IP subnets, admin pages, country, etc.
1113
* **Export to Excel**: download your reports as CSV files, generate user heatmaps or get daily emails right in your mailbox (via premium add-ons).
1214
* **Cache**: compatible with W3 Total Cache, WP SuperCache, CloudFlare and most caching plugins.
1315
* **Privacy**: hash IP addresses to protect your users' privacy.
1416
* **Geolocation**: identify your visitors by city and country, browser type and operating system (courtesy of [MaxMind](https://www.maxmind.com/) and [Browscap](https://browscap.org)).
15-
* **World Map**: see where your visitors are coming from, even on your mobile device (courtesy of [amMap](https://www.ammap.com/)).
17+
* **World Map**: see where your visitors are coming from, even on your mobile device (courtesy of [JQVMap](https://github.com/10bestdesign/jqvmap)).
1618

1719
### Contribute ###
1820
Slimstat Analytics is an open source project, dependent in large part on community support. You can fork our [Github repository](https://github.com/slimstat/wp-slimstat) and submit code enhancements, bugfixes or provide localization files to let our plugin speak even more languages. [This page](https://www.paypal.com/cgi-bin/webscr?cmd###_s-xclick&hosted_button_id###BNJR5EZNY3W38)
1921
is for those who would like to donate money - be it once, be it regularly, be it a small or a big amount. Everything is set up for an easy donation process.
2022
Try it out, you'll be amazed how good it feels! If you're on a tight budget, and coding is not your thing, please consider writing [a review](https://wordpress.org/support/plugin/wp-slimstat/reviews/#new-post) for Slimstat as a token of appreciation for our hard work!
2123

2224
### Requirements ###
23-
* WordPress 6.0+
25+
* WordPress 5.6+
2426
* PHP 7.4+
2527
* MySQL 5.0.3+
2628
* At least 5 MB of free web space (240 MB if you plan on using the external libraries for geolocation and browser detection)

admin/assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)