SustainaDev AnalyzerSustainaDev Analyzer is an AI-powered Visual Studio Code plugin that enables sustainable and efficient software development through multi-language static analysis and intelligent optimization. The extension supports Java, Python, JavaScript, and TypeScript, using Tree-sitter to parse source code into Abstract Syntax Trees (ASTs) for accurate language-agnostic analysis. SustainaDev analyzes code structures such as loops, recursion, and nesting depth to estimate algorithmic complexity (Big-O) and detect inefficient patterns. An integrated AI model generates optimization suggestions and predicts expected complexity improvements. To reduce incorrect or misleading AI outputs, SustainaDev introduces a validation layer that cross-checks AI-generated results using deterministic rule-based analysis. This ensures that generated complexity estimations and optimization recommendations remain reliable and aligned with actual source code behavior. Following validation, the system re-analyzes the optimized code to confirm improvements and provide developers with transparent feedback. Beyond performance optimization, SustainaDev incorporates hardware-aware sustainability estimation, generating metrics such as:
These metrics are visualized through an interactive dashboard that tracks optimization history and complexity trends over time. Features
Supported Languages
Commands
Technologies Used
RepositoryGitHub Repository: https://github.com/NadaSallam5/SustainaDev LicenseMIT License |