Skip to content

feat: initial wpgraphql-debug-extensions plugin boilerplate #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

theodesp
Copy link
Member

@theodesp theodesp commented Jul 16, 2025

Description

This PR adds the basic plugin skeleton for wpgraphql-debug-extensions. This includes:

  • Namespace Update: The primary namespace is WPGraphQL\Debug.

  • Text Domain Update: The plugin's text domain has been set to wpgraphql-debug-extensions.

  • README Update: The README.md file 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, offering immediate insights into potential performance implications.

Related Issue

#337

Dependant PRs

Type of Change

  • ✅ Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactoring (no functional changes)
  • 📄 Example update (no functional changes)
  • 📝 Documentation update
  • 🔍 Performance improvement
  • 🧪 Test update

How Has This Been Tested?

Screenshots

N/A - This PR does not introduce any UI/UX changes.

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the project's coding standards
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • Any dependent changes have been highlighted, merged or published

@theodesp theodesp requested a review from a team as a code owner July 16, 2025 12:41
Copy link

changeset-bot bot commented Jul 16, 2025

⚠️ No Changeset found

Latest commit: 99b0ca4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@theodesp theodesp requested a review from josephfusco July 16, 2025 12:41
Copy link

github-actions bot commented Jul 16, 2025

ℹ️ Download the latest wpgraphql-debug-extensions plugin zip from this PR
(See the 'Artifacts' section at the bottom)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant