hirasso / rh-seo
Lightweight SEO optimizations for WordPress
Fund package maintenance!
Requires
- php: >=8.2
- composer/installers: ^1.0 || ^2.0
Requires (Dev)
- pestphp/pest: ^3.8
- roots/wordpress-no-content: 7.1.5
- wp-cli/i18n-command: ^2.7
- wp-cli/wp-cli: ^2.12
- wp-phpunit/wp-phpunit: ^7.1
- yahnis-elsts/plugin-update-checker: ^5.7
- yoast/phpunit-polyfills: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A lightweight SEO plugin I use on most of my WordPress websites.
Caution
This plugin is provided without public support. No issues, no discussions, no accepted PRs. You can browse the source code if you wish and fork it if you find something useful.
Installation
The plugin ships as one directory regardless of how it is installed: its dependencies are committed, so the composer package and the release zip contain the same files. Sites that install via composer can therefore also update through the WP admin.
A WP admin update still leaves the site's composer.lock at the version composer installed. Run composer update hirasso/rh-seo afterwards, or the next composer install reinstates the older version.
Via Composer (recommended)
composer require hirasso/rh-seo
Update via Composer
# latest version, including major version jumps
composer require hirasso/rh-seo
Via WP CLI
wp plugin install https://github.com/hirasso/rh-seo/releases/latest/download/rh-seo.zip
Update via WP CLI
wp plugin update rh-seo
Manually
- Download the bundled zip file from the latest release
- In your browser, login to your WP Admin Area and navigate to /wp-admin/plugin-install.php
- Click "Upload Plugin" and choose
rh-seo.zipthat you just downloaded
Update Manually
If DISALLOW_FILE_MODS is not set to true, you can update the plugin directly from the WordPress admin plugins screen, just like any other plugin. To avoid being blocked by GitHub, you can define a RHSEO_GITHUB_TOKEN in your wp-config.php file. Learn more about creating GitHub Tokens
// wp-config.php: define('RHSEO_GITHUB_TOKEN', 'qwf_sdgad142...');
Development
npm ci # also installs the pre-commit hook (rebuilds assets/) composer install # dev dependencies, incl. the ones copied to vendor-prefixed/ composer prefix # regenerate vendor-prefixed/ (Strauss) tools/verify-prefixed.sh npm run env start # dev env (http://localhost:7373), needs Docker npm run env:test start # test env (http://localhost:7374) npm run wp <command> # WP-CLI inside the dev env npm run test:pest # Pest tests inside the test env npm run test:e2e # Playwright e2e tests (once: npm run test:e2e:install) npm run build # build assets/ from assets-src/ npm run generate-pot ./release.sh <patch|minor|major>