- MUST READ: Submission requirements
- Entry form template
Elite Hack Squad
Best Marketplace App for Sitecore AI
Page Performance Analyzer is a Sitecore Marketplace App that helps content editors and developers optimize their pages content for performance directly from the Page Builder interface.
This application provides AI-powered performance analysis directly within the Sitecore XM Cloud Page Builder, allowing teams to examine published pages, identify performance issues, and make informed optimization decisions before republishing.
Content editors and developers need to switch between multiple tools to analyze page performance:
- Leaving Sitecore to run Google PageSpeed Insights or Lighthouse
- Manually inspecting HTML and analyzing images
- Losing context when switching between authoring and analysis tools
- Time-consuming back-and-forth between content teams and developers to understand performance issues
- Difficulty prioritizing which optimizations will have the most impact
The Page Performance Analyzer integrates directly into the Sitecore XM Cloud authoring experience:
- Real-time HTML Extraction: Fetches the fully rendered HTML from the published page via the Sitecore Rendering Engine, capturing exactly what users see in production
- AI-Powered Analysis: Uses OpenAI to analyze the HTML and provide detailed insights on:
- Estimated Lighthouse scores (Performance, Accessibility, Best Practices, SEO)
- Core Web Vitals assessment (LCP, CLS, INP)
- Image optimization opportunities (format, dimensions, lazy loading, fetch priority)
- Specific issues with line numbers, severity levels, and actionable fix suggestions
- Quick wins and strategic recommendations
- Actionable Insights Within Sitecore: Presents results in an easy-to-understand format with:
- Visual score indicators
- Prioritized roadmap (P1/P2/P3 issues)
- Concrete code examples for fixes
- Best next actions to improve performance
- Streamlined Workflow: Content editors can analyze, edit, and republish without leaving the Page Builder, reducing context switching and improving efficiency
By bringing performance analysis directly into the content authoring workflow, teams can make data-driven optimization decisions and publish higher-quality pages that deliver better user experiences and SEO results.
⟹ Provide a video highlighing your Hackathon module submission and provide a link to the video. You can use any video hosting, file share or even upload the video to this repository. Just remember to update the link below
This module requires the following:
- SitecoreAI instance with an active site
- Sitecore Marketplace account and access
- OpenAI API Key: Required for AI-powered performance analysis
- The module uses OpenAI's GPT-4 model to analyze HTML and generate insights
- You can obtain an API key from OpenAI Platform
- Node.js 18.x or higher
- npm or yarn package manager
- Git (to clone the repository)
- Custom OpenAI API base URL (if using Azure OpenAI or other compatible endpoints)
- Custom model name (defaults to
gpt-4o)
Follow these steps to install and configure the Page Performance Analyzer in your Sitecore AI environment:
Clone the repository and navigate to the code directory:
- git clone https://github.com/Sitecore-Hackathon/2026-Elite-Hack-Squad.git
- cd 2026-Elite-Hack-Squad/src/code
Run npm install to install all required dependencies.
Create a .env.local file in the src/code directory with your OpenAI API key:
OPENAI_API_KEY=sk-your-actual-openai-api-key-here OPENAI_API_BASE_URL=https://api.openai.com/v1 OPENAI_MODEL=gpt-4o
Start the development server:
npm run dev
The application will be available at http://localhost:3000
First, create the application in the Sitecore Marketplace:
Step 1: Access Sitecore Cloud Portal
- Go to https://portal.sitecorecloud.io/
- Login with your credentials
Step 2: Create and Configure the Application
- Navigate to My apps and click Create App
- Set Performance Analyzer in the App name field
- Select Type Custom, click Create
- Go to the Configure your app section
- In the Extension points, turn on the Page context panel
- Go to Deployment URL section
- In the URL set http://localhost:3000/
- Go to the App logo URL section
- Then, activate the App. Click Activate
- Go to the My apps page and click Install
- Select the environment(s) and click Install
- To confirm the Page Performance Analyzer is installed, open the Page builder of your environment
Once installed, the Page Performance Analyzer automatically appears in the Page Builder interface. Here's how to use it:
- Open any page in the Sitecore Page Builder
- The Page Performance Analyzer panel appears automatically in the page context
- The component displays with the heading "Performance Analyzer" along with two badges:
- Layout Service - Indicates data source
- Auto-fetch - Shows automatic page detection
The analyzer interface consists of several sections:
At the top, you'll see a summary of the current page including:
- Name: Page display name
- Route: URL path of the page
- Language: Current language version
- Page ID: Unique identifier
- Site: Site name
- Version: Content version number
- Tenant ID: Organization identifier
- Refresh Layout (circular arrow icon): Manually refresh the page HTML and layout data
- Analyze Performance (sparkle icon): Run AI-powered performance analysis on the current page
- Show/Hide HTML (document icon): Toggle visibility of the raw HTML code
- The analyzer automatically fetches page data when you open or switch pages
- Click the Analyze Performance button to start the AI analysis
- Wait while the analysis runs (usually 10-30 seconds depending on page complexity)
- The performance report appears below the buttons
The report includes several key sections:
- Performance: Overall speed and loading metrics
- Accessibility: Compliance with accessibility standards
- Best Practices: Code quality and security practices
- SEO: Search engine optimization readiness
Color coding:
- Green (90-100): Good
- Orange (50-89): Needs improvement
- Red (0-49): Poor
Detailed analysis of:
- LCP (Largest Contentful Paint): Main content loading time
- CLS (Cumulative Layout Shift): Visual stability
- INP (Interaction to Next Paint): Responsiveness
Each metric shows:
- Status (Good/Needs Work/Poor)
- Summary explanation
- Likely drivers (causes)
- Recommended actions
Critical images detected on the page with details:
- Image URL and role (Hero, LCP Candidate, Above-the-fold)
- Current format vs. recommended format
- Declared dimensions
- Loading strategy (lazy, eager)
- Fetch priority
- Weight and optimization suggestions
Prioritized list of performance problems including:
- Severity level (Critical, High, Medium, Low)
- Issue category and title
- Approximate line number in HTML
- Selector hint to locate the element
- Evidence snippet showing the problematic code
- Why it matters (impact explanation)
- Suggested fix with code examples
- Priority level
Easy-to-implement optimizations that provide immediate benefits:
- Title and description
- Expected impact on metrics
- Effort level (Low, Medium, High)
- Related line numbers
Longer-term improvements for sustained performance:
- Recommendation title and description
- Expected impact areas
- Priority ranking (P1, P2, P3)
Action items organized by priority:
- P1: Critical items requiring immediate attention
- P2: Important improvements to schedule soon
- P3: Nice-to-have enhancements for future iterations
AI-generated recommendation for the single most impactful thing to do next, with explanation of why it matters.
- Focus on P1 issues first: Address critical problems before moving to lower priorities
- Image optimization: Pay special attention to image recommendations as they often have the biggest impact
- Compare before/after: Run analysis, make changes, then run again to verify improvements
Click the Show HTML button to view the complete rendered HTML of the page. This is useful for:
- Debugging rendering issues
- Verifying component output
- Checking meta tags and structured data
- Sharing with developers for troubleshooting
The HTML view shows the exact markup that will be delivered to end users.
The Page Performance Analyzer uses GPT-4 to provide intelligent, context-aware performance recommendations. The AI understands:
- Modern web performance best practices
- Core Web Vitals requirements
- Image optimization strategies
- Accessibility standards
- SEO fundamentals
Results are pre-publication estimates based on HTML analysis. For final validation, supplement with actual runtime testing tools like Lighthouse or WebPageTest after publishing.
Potential improvements for future versions:
- Real-time Lighthouse integration
- Historical performance tracking
- Automated fix suggestions with one-click apply
- Team collaboration features
- Custom performance budgets
- Integration with CI/CD pipelines
- Gabriel Baldeon
- Freddy Rueda
- Ramiro Batallas
Feedback and suggestions are welcome through the repository issues.
