chore: wp.org submission prep — v0.1.3

Rebrand to RangerHQ Buddy and prepare for the WordPress.org Plugin
Directory. Same workflow as rangerhq-radio v0.7.0 → v0.7.5.

Changes:
- Plugin Name: Buddy → RangerHQ Buddy (matches family naming)
- Plugin URI: icanhelp.ie/buddy → davidtkeane.com/rangerhq-buddy
- Author URI: rangersmyth.xyz → davidtkeane.com
- Text Domain: buddy → rangerhq-buddy (62 occurrences across 8 PHP files)
- Add LICENSE file (full GPL v2 text from gnu.org)
- Add wp.org-format readme.txt with all 8 required headers
- Remove inc/updater.php (self-hosted Gitea updater forbidden for
  wp.org-hosted plugins per the rangerhq-radio v0.7.3 walkback)
- Replace mt_rand with wp_rand in inc/state.php for better RNG
- Add 5 translator comments for printf-style i18n placeholders
- Wrap 2 dashboard-widget.php printf placeholders in (int) casts
- Add tests/ to .gitignore (PCP reports are local-only)

PCP audit: 85 issues → ~1 (the .gitignore file itself, stripped from
the submission zip).
Plugin Check Namer Tool: "Generally Allowable" verdict on both name
and slug.
Plugin URI https://davidtkeane.com/rangerhq-buddy/ returns HTTP 200.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 01:56:26 +01:00
parent 0675c9f7d8
commit cba0df9439
11 changed files with 505 additions and 299 deletions
+12 -13
View File
@@ -2,17 +2,17 @@
/**
* Buddy — a friendly pet for your WordPress dashboard
*
* Plugin Name: Buddy
* Plugin URI: https://icanhelp.ie/buddy
* Plugin Name: RangerHQ Buddy
* Plugin URI: https://davidtkeane.com/rangerhq-buddy
* Description: Adopt a small companion that lives in your WordPress dashboard. Its mood reflects your site's health — published posts feed it, outdated plugins make it sick, clearing spam makes it happy. Gamifies WordPress maintenance with a bit of charm.
* Version: 0.1.3
* Requires at least: 5.0
* Requires PHP: 7.4
* Author: David Keane
* Author URI: https://rangersmyth.xyz/
* Author URI: https://davidtkeane.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: buddy
* Text Domain: rangerhq-buddy
*
* @package Buddy
*/
@@ -33,7 +33,6 @@ require_once BUDDY_PATH . 'inc/dashboard-widget.php'; // the pet on WP Dashboard
require_once BUDDY_PATH . 'inc/admin-page.php'; // dedicated Buddy admin page
require_once BUDDY_PATH . 'inc/about.php'; // About page
require_once BUDDY_PATH . 'inc/settings.php'; // Settings page
require_once BUDDY_PATH . 'inc/updater.php'; // self-hosted update checker against Gitea
/**
* Admin menu registration. Buddy gets its own top-level menu — the pet
@@ -44,8 +43,8 @@ require_once BUDDY_PATH . 'inc/updater.php'; // self-hosted update chec
add_action( 'admin_menu', 'buddy_register_admin_menu' );
function buddy_register_admin_menu() {
add_menu_page(
__( 'Buddy', 'buddy' ),
__( 'Buddy', 'buddy' ),
__( 'Buddy', 'rangerhq-buddy' ),
__( 'Buddy', 'rangerhq-buddy' ),
'read', // any logged-in user with read access can see their own pet
'buddy',
'buddy_render_main_page',
@@ -59,8 +58,8 @@ function buddy_register_admin_menu() {
// form bug).
add_submenu_page(
'buddy',
__( 'My Buddy', 'buddy' ),
__( 'My Buddy', 'buddy' ),
__( 'My Buddy', 'rangerhq-buddy' ),
__( 'My Buddy', 'rangerhq-buddy' ),
'read',
'buddy',
''
@@ -68,8 +67,8 @@ function buddy_register_admin_menu() {
add_submenu_page(
'buddy',
__( 'Settings', 'buddy' ),
__( 'Settings', 'buddy' ),
__( 'Settings', 'rangerhq-buddy' ),
__( 'Settings', 'rangerhq-buddy' ),
'manage_options',
'buddy-settings',
'buddy_render_settings_page'
@@ -77,8 +76,8 @@ function buddy_register_admin_menu() {
add_submenu_page(
'buddy',
__( 'About', 'buddy' ),
__( 'About', 'buddy' ),
__( 'About', 'rangerhq-buddy' ),
__( 'About', 'rangerhq-buddy' ),
'read',
'buddy-about',
'buddy_render_about_page'