You are here:
ApexGuru Insights
Use AI and machine learning models to analyze Apex classes and entry points, giving you critical code recommendations that improve your implementation.
- ApexGuru has no impact on org performance or storage limits.
- The Machine Learning (ML) models in ApexGuru don’t use customer code.
- Sometimes, a method inaccurately appears as used or unused. Examples include System.PageReference and methods that implement specific interfaces.
- ApexGuru's automated code optimization features are directly integrated into the Code Analyzer VS Code extension. To learn more and get started, see Scan Your Apex Code for Performance Issues Using ApexGuru.
To generate ApexGuru recommendations:
- From Setup, in the Quick Find box, enter Scale Insights, then click ApexGuru Insights.
- Select a Report Creation Date. ApexGuru analyzes your code and consolidates different categories of recommended fixes.
| Insight | Definition |
|---|---|
| Code Recommendations | Ranked by expected impact, prescriptive recommendations for optimizing sObject types, methods, and memory. |
| SOQL/DML Analysis | Ways to optimize your SOQL and avoid performance issues. |
| Expensive Methods | Expensive methods consume 2–5% of CPU time, and critically expensive methods consume at least 5% of CPU time. |
| Unused Methods | Methods that your currently deployed Apex code doesn’t call. |
- ApexGuru Antipatterns
The antipatterns highlighted in ApexGuru help you detect avoidable inefficiencies in your Apex code. Where practical, we also share recommendations for revising your approach to improve the efficiency of your code. - ApexGuru Test Case Antipatterns
The test cases highlighted in ApexGuru help you find places in your Apex test code that aren’t valid, maintainable, or production-ready. - Activate and Use ApexGuru for Apex Code Analysis
Learn how to activate ApexGuru and analyze your Salesforce org’s Apex code securely using the Einstein Trust Layer. - Use ApexGuru in Agentic IDEs with DX MCP
Resolve Apex performance issues directly in environments like VS Code, Agentforce Vibes, and Cursor without switching to the Salesforce UI. - ApexGuru FAQ
Get answers to common questions about ApexGuru.

