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?

  1. Block / shortcode shell
  2. Role gate in PHP
  3. GET /metrics
  4. Metric_Service::fetch()
  5. Access_Control::can_read_provider()
  6. WooCommerce_Provider::get_metric()
  7. JSON → widget

Your plugin

SDD sheet in five sections

  1. Requirements: in scope, out of scope, priority.
  2. Architecture: entry point, registry, contract, the one door to data.
  3. Data model: names, states, failure modes and their codes.
  4. Data flow: the request route, where access is checked.
  5. Implementation order: what gets built first, what comes last.