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

Some Matomo options are autoloaded when they should not, and it increases the plugin performance footprint

Open
#672 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

Autoloaded options are loaded on every page.

Here's an example of our keys which are loaded on every page:
select option_name from wp_options where autoload = 'yes' and option_name like '%matomo%;
Screenshot from 2022-11-17 13-28-47

Some of them should not be loaded on every page. We should review which options are autoloaded to reduce our plugin performance footprint.

Some others plugins examples which have the same problem:
https://wordpress.org/support/topic/auto_load-set-to-yes/
It should be related to the update_option method.

One of our users complained about it.
https://secure.helpscout.net/conversation/2070076335/3051962?folderId=4753515

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

Start at the update_option entry point and inspect the Matomo-related entries returned by the wp_options query. Determine which options need not be autoloaded, then verify that the selected options no longer contribute to the plugin's every-page performance footprint.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.