feat: initial wpgraphql-debug-extensions plugin boilerplate#339
Conversation
|
|
ℹ️ Download the latest wpgraphql-debug-extensions plugin zip from this PR |
|
ℹ️ Download the latest wp-graphql-webhooks plugin zip from this PR |
colinmurphy
left a comment
There was a problem hiding this comment.
This looks good to me. Some minor suggestions in the PR ❤️ 🚀
Co-authored-by: Colin Murphy <colinmurphy@users.noreply.github.com>
Description
This PR adds the basic plugin skeleton for
wpgraphql-debug-extensions. This includes:Namespace: The primary namespace is
WPGraphQL\Debug.Text Domain: The plugin's text domain has been set to
wpgraphql-debug-extensions.README: The
README.mdfile has been added to describe the plugin's purpose as a base for debug extensions, clarifying that it's currently a skeleton with no functionality beyond the core setup.Complexity Metric: Calculates a "complexity score" for each GraphQL query based on the number of fields, fragments, and inline fragments selected. Provides contextual notes in the debugExtensions output, categorizing queries as "Low," "Moderate," "High," or "Very High" complexity.
Related Issue
#337
Dependant PRs
Type of Change
How Has This Been Tested?
Screenshots
N/A - This PR does not introduce any UI/UX changes.
Checklist