* fix: resolve plugin class loading reliability issues
* fix: address CodeRabbit XSS and accessibility findings from PR #18
- admin/js/admin-scripts.js: replace HTML string interpolation in showNotice
with DOM API construction and .text() to prevent XSS; whitelist type values
- admin/js/update-source-selector.js: replace .html(message) with .text(message)
in showMessage to prevent XSS from AJAX response content
- admin/templates/modal.php: add role=dialog, aria-modal=true, aria-labelledby
for screen reader semantics; replace <span> close control with <button> for
keyboard operability and proper ARIA role
- Replace tabs with spaces in test files
- Use require_once instead of require
- Add @return void to docblocks
- Define constants for repeated string literals
- Use WordPress spacing conventions
- Add use statements for cleaner class references
- Add guards to WP_Mock tests to skip when WP_UnitTestCase is available
- Add guards to WordPress unit tests to skip when WP_UnitTestCase is not available
- Add @group annotations for test separation
Move test-admin.php and test-core.php from tests/ to tests/phpunit/
to match phpunit.xml configuration which only scans tests/phpunit/.
This fixes PHPUnit test discovery issues where tests were being
skipped because they were in the wrong directory.
All test files now in: tests/phpunit/
- test-admin.php
- test-core.php
- test-multisite.php
- bootstrap.php
🤖 Generated with [Qoder][https://qoder.com]