Closed srtfisher closed 10 months ago
The codebase has been updated to include a new Site_Health
class that adds a section to the WordPress Site Health tool, displaying the status of Alleyvate features. This update also refactors the feature loading process, splitting the load
function into available_features
and load
, and introducing should_load_feature
to determine if a feature should be loaded. Additionally, a test class Test_Site_Health
has been added to ensure the site health feature behaves as expected.
File Path | Change Summary |
---|---|
src/.../features/class-site-health.php |
Added Site_Health class implementing Feature interface with boot and add_debug_information methods. |
src/.../load.php |
Split load function into available_features and load , added should_load_feature function. |
tests/.../features/test-site-health.php |
Added Test_Site_Health class extending Test_Case with setUp and test_site_health_feature methods. |
tests/bootstrap.php |
Included "wp-alleyvate.php" file to introduce new functionality. |
Objective | Addressed | Explanation |
---|---|---|
Add a new section to Site Health > Info called Alleyvate (#53) | ✅ | |
Populate the section with read-only information about each feature, whether it is active or inactive (#53) | ✅ |
Adds a Site Health screen panel with information about the enabled/disabled features of the plugin.
Resolves #53.
Summary by CodeRabbit
New Features
Refactor
Tests
Documentation