Skip to content

enhancement: tell reports apart in the compare picker - #117

Merged
mukeshpanchal27 merged 2 commits into
trunkfrom
enhancement/109-picker-labels
Nov 18, 2026
Merged

mukeshpanchal27 merged 2 commits into
trunkfrom
enhancement/109-picker-labels

Conversation

@mukeshpanchal27

Copy link
Copy Markdown
Owner

Fixes #109.

Stacked on #116.

Problem

An early reviewer had 14 reports of the same page. The compare picker showed "GET / (November 7, 2026 3:20 pm)" eight times and "GET / (November 7, 2026 3:12 pm)" six times, so the options could not be told apart.

Change

The new get_report_option_label() adds the seconds and the total time to each option:

GET / (November 18, 2026 14:47:41, 55.7 ms)
  • Label first: a label, if the report has one, still comes first.
  • Time format: the date uses the site's date format. The time uses H:i:s, because the site's time format usually has no seconds.
  • Translation: the text is translatable, with a translators comment.
  • Changelog: a line in the unreleased 1.0.0 changelog.

Testing

I loaded / four times in quick succession on the wp-env dev site. All four reports were saved in the same second, 14:47:41. Their options still differed by total time: 55.7, 59.4, 56.0 and 67.3 ms.

PHPCS passes.

🤖 Generated with Claude Code

mukeshpanchal27 and others added 2 commits November 18, 2026 20:17
All sites of a network share mu-plugins, so deactivating the plugin on
one site removed the loader for every site. Keep the file while the
plugin is network-active or active on another site.

Fixes #108

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show the seconds and the total time in each option, so reports of the
same page saved in the same minute look different.

Fixes #109

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@mukeshpanchal27
mukeshpanchal27 changed the base branch from fix/108-multisite-loader to trunk November 18, 2026 14:55
@mukeshpanchal27
mukeshpanchal27 merged commit 5408e4f into trunk Nov 18, 2026
14 checks passed
@mukeshpanchal27
mukeshpanchal27 deleted the enhancement/109-picker-labels branch November 18, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tell reports apart in the compare picker

1 participant