Smart View Analyzer
Smart View Query Analyzer identifies performance risks in Drupal Views by analyzing query complexity, relationships, fields, caching, and pager usage. It provides a dashboard with risk ratings and flags potential issues, helping developers optimize Views before deployment.
Smart View Query Analyzer helps identify performance risks in Drupal Views before they impact production. It provides a centralized dashboard that evaluates each View based on query complexity, relationships, field count, caching configuration, and pager usage.
The module assigns a risk level (Low, Medium, High, Critical) and highlights potential issues using danger flags, enabling developers to quickly detect and optimize inefficient Views.
Features
๐ Centralized Dashboard
- Overview of all Views with risk classification
- Summary of total Views, and risk distribution
โ ๏ธ Risk Analysis
- Automatically categorizes Views as:
- Low
- Medium
- High
- Critical
๐ Detailed View Inspection
- Number of relationships
- Field count
- Cache configuration status
- Pager usage
๐ฉ Danger Flags
- Identifies risky configurations such as:
- Missing caching
- Excessive fields or relationships
- Potential performance bottlenecks
๐ง Actionable Insights
- Drill-down โAnalyzeโ option for each View
- SQL-level inspection and optimization hints
โก Developer-Friendly
- Helps catch issues early in development
- Useful during code review and pre-deployment checks
How It Works
- The module scans all available Views.
-
Each View is evaluated based on multiple factors:
- Query complexity indicators
- Relationships and joins
- Number of fields
- Cache settings
- Pager configuration
- A risk score is calculated and displayed.
- Developers can click Analyze โ to view detailed insights and suggestions.