SN Code Analyzer
1 rating
)Overview
Analyze and score ServiceNow code quality (Client Scripts, Script Includes, Business Rules) and get AI-powered improvements.
SN Code Analyzer is a lightweight Chrome extension that lives in your browser and keeps your ServiceNow scripts clean, fast, and production-ready. Open any ServiceNow record with script content and get an instant quality score (0–100) plus clear, prioritized fixes based on industry best practices. What it does - Auto-detects script type from the page URL (Client Script, Business Rule, UI Action, Script Include, UI Page/Jelly, Portal Widget, Scheduled/Fix Script, ACL, Transform Script…). - Scores your code against 50+ best-practice checks (performance, safety, readability, maintainability) and shows a concise, actionable report. One-click AI improvement (optional) Hit Improve with AI to get a clean, corrected version of your script that respects the right runtime: - No gs.*/GlideRecord on the client, ever. - Server code uses GlideRecord/GlideAggregate correctly, avoids recursion in Business Rules, adds setLimit(1), etc. - Client code uses g_form.isLoading() guards, newValue !== oldValue checks, and async GlideAjax (never getXMLWait). - Copy the improved code with one click. How it works (in 3 steps) 1. Open a ServiceNow script record in your instance. 2. Click the extension and press Analyze → see your score and top fixes. 3. (Optional) Click Improve with AI → paste the cleaned-up script back into ServiceNow. What gets scored - Client scripting: proper guards, async server calls via GlideAjax, no client-side GlideRecord, correct setValue(field, sys_id, display) usage. - Business Rules: correct timing (before/after/async intent), safe patterns (no current.update() recursion), conditions, reuse via Script Include. - Database & performance: addEncodedQuery, GlideAggregate for counts, setLimit(1) for existence checks, avoiding heavy queries. - Readability & structure: small functions, clear names, useful comments, predictable flow. - Pitfalls & security: no hard-coded sys_id, avoid .sys_id dot-walk on references, safe display/value handling, no eval/dynamic JEXL. - Logging: appropriate gs.info/warn/debug on server, noise kept behind properties; no gs.print in prod. Why developers love it - Instant feedback: catch risky patterns before they hit production. - Consistent codebase: everyone follows the same standards automatically. - Faster reviews: reviewers focus on logic instead of linting. - Great for onboarding: juniors learn good patterns by example. Privacy & security - Local-first analysis: your code is analyzed in the popup. - No code leaves your browser unless you explicitly click Improve with AI. - Your API key (if used) is stored locally via Chrome storage and never shared elsewhere by the extension. Compatibility - Works with ServiceNow Classic UI, Workspace, and Studio. - Supports instances on service-now.com and servicenowservices.com. - Bring confidence to your next deploy. Install SN Code Analyzer and ship clean, fast ServiceNow scripts every time.
5 out of 51 rating
Details
- Version1.1.1
- UpdatedSeptember 15, 2025
- Size1.1MiB
- LanguagesEnglish (United States)
- Developer
Email
imadeddine.nacer@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes