Ordova for VS Code
The real complexity of your code, right where you write it. Ordova derives the Big-O of every function from your
code, measures it in a sandbox to check, and suggests faster versions that are tested for the same results and
measured before you see them. Python, JavaScript, TypeScript, Java, C++ and Go.
What you get
- Complexity above every function:
Θ(n²) · space O(n) with one-click Benchmark and Optimize.
- Hover a function for why it costs what it does: which loop, which line.
- Problems panel: slow patterns (a scan inside a loop, list shifts...), N+1 queries, security risks with the
path untrusted input takes to SQL, shell or file calls, and dead code (faded in the editor).
- Fixes: from the lightbulb or the CodeLens. Python gets rewrites tested automatically; other languages get guided, manual fixes. A rewrite is offered only if it returned the same results as
your code on every test input; you see the diff and the measured speed-up before anything changes.
- Benchmarks in a sandbox: real timings on growing inputs, whether they agree with the analysis, and a line heatmap
of where the time went.
- The full report: growth chart, runtime and memory, flowchart, call graph, readability, all inside VS Code.
- Compare with the last commit: which functions got slower or faster since
HEAD.
No account needed: guests get a daily allowance. Sign in (free, with Google) for more runs.
Privacy
Ordova analyzes code on a server. The first time you analyze, VS Code asks before anything is sent, and shows where.
- Code goes over HTTPS to the server in
ordova.serverUrl, and analyses from VS Code are not saved.
- Code is executed only when you click Benchmark or Optimize, in an isolated sandbox with no internet and no
access to the server's secrets.
- Your sign-in key is stored in VS Code's encrypted secret storage, and signing out revokes it on the server.
Settings
| Setting |
Default |
|
ordova.serverUrl |
https://ordova.tech |
The Ordova server to use. Leave it as it is |
ordova.analyzeOnSave |
true |
Re-run the fast static analysis on save (benchmarks only on request) |
ordova.showCodeLens |
true |
Complexity above each function |
ordova.showDiagnostics |
true |
Slow patterns, N+1, security and dead code in the Problems panel |
Commands
Ordova: Analyze this file · Analyze the selected code (for files over 20,000 characters) · Open the full report ·
Compare complexity with the last commit · Sign in · Sign out · Hide the line heatmap
Made by Omar Ibrahim.
| |