Code Complexity Analyser
Paste source code to score each function for cyclomatic complexity, length and nesting, with the most complicated ones listed first.
Runs in your browser. Nothing is uploaded.
Loading the app…
Related apps
How to use it
- What is cyclomatic complexity?
- The number of separate paths through a function: one, plus one for every if, loop, case, catch and && or ||. A function scoring over 10 is getting hard to test fully, and over 20 is usually worth splitting.
- Which languages work?
- Python, and languages that use braces for blocks: JavaScript, TypeScript, Java, C, C#, Go, Rust, Kotlin, Swift and PHP. The count is an estimate from the text, not a full parse, so unusual syntax can be missed.
- Is what I paste uploaded?
- No. It is read in your browser and never leaves your device.