Hi @tomdkat,
Thanks for the careful write-up. Short answer first, then the details and a couple of things to verify on your end.
All WP Statistics traffic data lives in the database, not in files. When the “Delete all data when plugin is deleted” option is enabled and you fully delete the plugin from the Plugins screen (the red Delete link, not just Deactivate), the uninstaller does all of the following:
– Deletes the wp_statistics_* rows from the options table.
– Deletes every usermeta / postmeta key starting with wp_statistics.
– Clears the scheduled cron hooks.
– Drops every plugin table, including visitor, exclusions, pages, historical, visitor_relationships, summary_totals, and the add-on tables (events, campaigns, goals, ar_outbox).
Now, about the specific behavior you saw:
**”Total” going to 0** after the delete and reinstall is the expected result. The tables were dropped and recreated empty, so there is no historical data to total up.
**”Yesterday” being non-zero** is almost certainly not leftover data. The Yesterday bucket is calculated as the previous calendar day, not as “everything before the reinstall”. So if you reinstalled the plugin at some point before midnight of yesterday, any real visits the tracker captured between reinstall time and 23:59 yesterday land in that bucket as soon as the date rolls over. It is real new traffic, just bucketed under yesterday.
Two things would help confirm this and rule out a stale state:
1. Could you check, via phpMyAdmin or any DB tool, whether these still have any rows after your delete + reinstall:
`
SELECT option_name FROM wp_options
WHERE option_name LIKE ‘wp_statistics%’;
SHOW TABLES LIKE ‘%statistics_%’;
`
If the only tables you see are the freshly recreated ones and they are mostly empty (a small number of rows in visitor / pages / summary_totals matching the time since the reinstall), that lines up with the explanation above.
2. Are you running a caching plugin (WP Rocket, W3 Total Cache, LiteSpeed, etc.) or an object cache (Redis, Memcached)? Cached dashboard widgets can keep showing old numbers for a while after a reinstall. Flushing the site cache and reloading the dashboard is worth a try.
One more thing worth knowing: you do not have to uninstall the plugin to wipe the data. WP Statistics has a built-in cleanup tool at **WP Statistics > Optimization > Purging**, which lets you purge data and visitors without removing the plugin.
If the SQL check above shows leftover rows or tables we did not expect, please paste the result back here and I will trace it.
Best regards,