Implementation Plan - Cross Poster
Goal Description
Maintain and improve the Cross Poster plugin, which automates social media sharing to X, Mastodon, Bluesky, Misskey, and Threads.
This plan focuses on code quality improvements and technical debt reduction identified during the repository analysis.
User Review Required
None at this stage.
Proposed Changes
Refactoring & Maintenance
[MODIFY] class-core.php
- Rate Limiting: logic needs to be updated to support global/no-auth checks as noted in TODO comments.
[MODIFY] uninstall.php
- Mastodon Cleanup: Move inline API cleanup logic to a dedicated service handler methods to improve maintainability and testability.
[MODIFY] services/*/settings.php
- Reduce Duplication: Methods like
process_callbackandrender_connect_formshare significant boilerplate. Consider moving common logic toServiceSettingsabstract class.
Verification Plan
Automated Tests
- Future: Add PHPUnit tests covering the refactored logic.
Manual Verification
- Verify posting to all supported platforms after any refactoring.
- Verify uninstall process cleans up options correctly.