Skip to content

fix: link to neutral reviews page (#8) - #9

Merged
nolderoos merged 2 commits into
mainfrom
fix/review-link-neutral
May 14, 2026
Merged

nolderoos merged 2 commits into
mainfrom
fix/review-link-neutral

Conversation

@nolderoos

@nolderoos nolderoos commented May 12, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #8. wp.org review round 1, item 1/7.

Drop ?rate=5#new-post from review_url() and remove the visible ★★★★★ from the footer label. Filter opentrust_review_url preserved. POT regenerated.

Test plan

  • Visit any OpenTrust admin screen; footer reads "review on WordPress.org" linking to /reviews/.
  • Trigger milestone notice (>=3 published policies, >=14 days first-seen); "Leave a review" button points to neutral URL.

Summary by CodeRabbit

  • Chores
    • Updated the WordPress.org review prompt language from 5-star messaging to neutral "review on WordPress.org" text, and adjusted the review link destination accordingly.

Review Change Stack

nolderoos added 2 commits May 12, 2026 21:14
Drop ?rate=5#new-post and five-star label. Regenerate POT.
@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eff5602b-0196-4946-b7e6-f3cfce88e9ac

📥 Commits

Reviewing files that changed from the base of the PR and between f368c76 and 0b5a18f.

📒 Files selected for processing (3)
  • .gitignore
  • includes/class-opentrust-admin-review.php
  • languages/opentrust.pot

📝 Walkthrough

Walkthrough

The PR addresses WordPress.org plugin review feedback by removing the pre-filtered 5-star URL from the review link and replacing it with the neutral reviews page. The admin footer text is updated from "★★★★★" phrasing to neutral language, translation strings are regenerated, and local review artifacts are added to gitignore.

Changes

WordPress.org Review Link Neutralization

Layer / File(s) Summary
Review URL and footer link text
includes/class-opentrust-admin-review.php
review_url() returns the neutral WordPress.org reviews index URL (no ?rate=5#new-post query), and the admin footer anchor label changes from "★★★★★ review on WordPress.org" to neutral "review on WordPress.org" with updated translator comments.
Translation strings and POT metadata
languages/opentrust.pot
POT header POT-Creation-Date is updated to the new generation timestamp, and the WordPress.org review link msgid is changed from the star-prefixed version to plain "review on WordPress.org" to match the updated UI text.
Local development archive ignore
.gitignore
wporg-review/ directory is added to the "Local dev archives" ignore section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Five stars no more, we link the way,
To honest reviews where users play,
No filter, no framing, just truth to see—
A neutral path to authenticity! ⭐

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the primary change: removing the filtered 5-star query parameter and linking to the neutral reviews page instead.
Linked Issues check ✅ Passed All requirements from issue #8 are met: review_url() returns neutral URL without ?rate=5, footer label removes ★★★★★, translator comment updated, POT file regenerated.
Out of Scope Changes check ✅ Passed All changes are directly scoped to issue #8: .gitignore update for local review directory, review URL fix, footer label simplification, and POT regeneration.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/review-link-neutral

Comment @coderabbitai help to get the list of available commands and usage tips.

@nolderoos

Copy link
Copy Markdown
Collaborator Author

Claude Code review

Reviewed against the wp.org reviewer's complaint (link to ?rate=5#new-post), the round-2 analysis in wporg-review/01-five-star-link/analysis.md, and the WP.org Detailed Plugin Guidelines (esp. Guideline 9).

Verdict

Approve — LGTM, ready to merge from a WP plugin best-practices standpoint.

The fix matches the analysis prescription exactly and is the conservative single-round-to-approval move: both the URL filter and the visible 5-star framing are removed in lockstep.

What I verified

  1. includes/class-opentrust-admin-review.php:211 — review_url() now returns the neutral index https://wordpress.org/support/plugin/opentrust/reviews/. The ?rate=5#new-post query/fragment is gone, and the inline comment explains why so a future contributor doesn't re-add it. The opentrust_review_url filter is preserved verbatim (back-compat intact).
  2. includes/class-opentrust-admin-review.php:81 — footer anchor label dropped from ★★★★★ review on WordPress.org to review on WordPress.org. This forecloses a follow-up flag under the same Guideline 9 "misleading / pressuring for reviews" framing.
  3. includes/class-opentrust-admin-review.php:88 — translator comment updated to link to the WordPress.org reviews page (matches the new destination, drops the "5-star" phrasing translators in some locales would otherwise propagate).
  4. includes/class-opentrust-admin-review.php:109,119 — milestone notice "Leave a review" button still uses review_url(), so it picks up the neutral URL automatically. Surrounding copy ("reviews on WordPress.org are how the project gets seen", "Leave a review") is already neutral; no nag-y "please give us 5 stars" wording introduced.
  5. languages/opentrust.pot regenerated. New msgid review on WordPress.org is present; the old ★★★★★ msgid is gone; POT-Creation-Date bumped. languages/opentrust-nl_NL.po contains no entry for either the old or new msgid, so no Dutch translation work is wasted or stale.
  6. Repo-wide grep for rate=5, #new-post, filter=5, and ★★★★★ returns only the explanatory inline comment in review_url() — no other call sites, no docs, no README references to a filtered review URL.
  7. WP coding standards in the touched code: escaping (esc_url, esc_html__, esc_html_e), i18n (opentrust text domain), capability check (current_user_can('manage_options')) on the notice, nonce on the dismiss URL — all unchanged and intact.
  8. .gitignore adds wporg-review/ — sensible; keeps the internal review folder out of the plugin distribution.

Nits (non-blocking)

  • None worth holding the PR on. The diff is minimal (10 +, 6 −) and surgical.

— Claude (automated review on behalf of @nolderoos)

@nolderoos
nolderoos merged commit 78aa91a into main May 14, 2026
10 checks passed
@nolderoos
nolderoos deleted the fix/review-link-neutral branch May 14, 2026 12:12
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.

Link to neutral reviews page instead of pre-filtered 5-star URL

1 participant