Play with the design
Three decisions from the 4WP Analytics Dashboard design. Change the inputs and watch what the plugin answers.
Step 03 · Data model
Provider state
Dependency
is_dependency_met()Admin allow
is_enabled()Available
is_available()
Step 04 · Data flow
Who gets the numbers?
- Block / shortcode shell
- Role gate in PHP
- GET /metrics
- Metric_Service::fetch()
- Access_Control::can_read_provider()
- WooCommerce_Provider::get_metric()
- JSON → widget
Your plugin
SDD sheet in five sections
- Requirements: in scope, out of scope, priority.
- Architecture: entry point, registry, contract, the one door to data.
- Data model: names, states, failure modes and their codes.
- Data flow: the request route, where access is checked.
- Implementation order: what gets built first, what comes last.