feat(collector): add plugin, hook, and DB table metrics#10
Open
Ajay-Singh-Adhikari wants to merge 4 commits into
Open
feat(collector): add plugin, hook, and DB table metrics#10Ajay-Singh-Adhikari wants to merge 4 commits into
Ajay-Singh-Adhikari wants to merge 4 commits into
Conversation
Extends ProPerf_Data_Collector to collect server-side metrics that GTmetrix cannot see, closing audit checklist gaps for sections 2, 3, and 4: - Plugin layer: active/inactive/total plugin count via get_plugins() - Hook count: registered hooks via wp_filter count - Database: total DB size + top 10 tables by size via information_schema Updates format_for_bigquery() with 5 new fields sent to BigQuery. Updates BigQuery schema and admin dashboard with targets alongside values.
MySQL returns TABLE_NAME (uppercase) from information_schema on some platforms (macOS). Switching to ARRAY_A mode with case fallback ensures top tables map is populated correctly on all environments.
9dcec57 to
a18a5e9
Compare
Extends ProPerf_Data_Collector with collect_woo_order_metrics(): - order_items table size (bytes) - order_itemmeta table size (bytes) - Oldest order age in days - Archival trigger flag (true when oldest order > 365 days) Gracefully returns zeros + woo_active=false when WooCommerce is not installed. Updates BigQuery schema with 4 new INTEGER fields and adds a WooCommerce Order Metrics section to the admin dashboard with red/green archival trigger status.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends
ProPerf_Data_Collectorto collect server-side metrics that GTmetrix cannot see, closing audit checklist gaps for sections 2, 3, and 4.What this PR adds
get_plugins()wp_filtercountinformation_schemaTechnical changes
ProPerf_Data_Collector: plugin metrics, hook metrics, DB table metrics, and WooCommerce order metricsformat_for_bigquery()updated with new fields for all of the above