matomo-org / matomo-org/matomo-for-wordpress

provide clear database usage stats in the WordPress admin area

Open
#950 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
PHP
Stars
145
Forks
35
Avg merge
2d 2h
Merged PRs (30d)
6

Description

Matomo can end up using up a lot of database space. This is expected since it's an analytics application, it tracks everything that happens, so for high traffic sites, that will equate to a lot of data. This may also not happen immediately but over time. It would thus be useful to keep the user notified about how much data is being used, especially since taking up space can cause issues with other aspects of WordPress (for example, a database backup plugin).

Information that would be useful to display to the user:
* percent of total database size used for matomo data
* amount of data in the log tables (including % of total database size)
* amount of data in the archive tables (including % of total database size)
* information regarding alternative products and migration paths for them so the user knows what their options are if they need to switch

If the percent of total database size is > a certain amount or the amount of data goes past a threshold we may want to consider showing a notification to the user. I'm unsure what the threshold should be however.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Begin by locating the WordPress admin area and the code that calculates Matomo database usage, then check how log and archive tables are represented. The scope still needs decisions on database-size measurement, thresholds, notifications, and migration guidance before completion can be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.