File Complexity Overall
  • There are 63 files with units, with 13,007 lines of code.
    • 2 very complex files (McCabe index sum 251+; 1,916 lines of code)
    • 3 complex files (McCabe index sum 126-250; 2,154 lines of code)
    • 15 medium complex files (McCabe index sum 51-125; 4,473 lines of code)
    • 19 slightly complex files (McCabe index sum 26-50; 2,425 lines of code)
    • 24 simple files (McCabe index sum 1-25; 2,039 lines of code)
  • 128 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system14% | 16% | 34% | 18% | 15%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
py14% | 16% | 34% | 18% | 15%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
skills14% | 16% | 34% | 18% | 15%
Most Complex Files (Top 50)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
prefix_diff.py
in skills/claude-api/shared/preserved-thinking-migration
1173 43 684 58 76
drop_block_probe.py
in skills/claude-api/shared/preserved-thinking-migration
743 23 428 58 95
base.py
in skills/xlsx/scripts/office/validators
718 22 217 30 27
base.py
in skills/pptx/scripts/office/validators
718 22 217 30 27
base.py
in skills/docx/scripts/office/validators
718 22 217 30 27
docx.py
in skills/xlsx/scripts/office/validators
380 12 123 32 27
docx.py
in skills/pptx/scripts/office/validators
380 12 123 32 27
docx.py
in skills/docx/scripts/office/validators
380 12 123 32 27
pptx.py
in skills/xlsx/scripts/office/validators
351 13 116 33 18
pptx.py
in skills/pptx/scripts/office/validators
351 13 116 33 18
pptx.py
in skills/docx/scripts/office/validators
351 13 116 33 18
merge_runs.py
in skills/docx/scripts
203 24 93 46 11
generate_review.py
in skills/skill-creator/eval-viewer
365 13 89 24 21
recalc.py
in skills/xlsx/scripts
240 7 74 31 34
redlining.py
in skills/xlsx/scripts/office/validators
235 12 63 27 14
redlining.py
in skills/pptx/scripts/office/validators
235 12 63 27 14
redlining.py
in skills/docx/scripts/office/validators
235 12 63 27 14
add_slide.py
in skills/pptx/scripts
275 16 60 22 12
clean.py
in skills/pptx/scripts
222 10 59 27 17
aggregate_benchmark.py
in skills/skill-creator/scripts
270 6 56 21 23
comment.py
in skills/docx/scripts
271 12 50 18 9
pptx_chart.py
in skills/xlsx/scripts/office/helpers
130 8 46 35 11
pptx_chart.py
in skills/pptx/scripts/office/helpers
130 8 46 35 11
pptx_chart.py
in skills/docx/scripts/office/helpers
130 8 46 35 11
easing.py
in skills/slack-gif-creator/core
116 20 34 29 4
validate.py
in skills/xlsx/scripts/office
135 3 33 24 28
validate.py
in skills/pptx/scripts/office
135 3 33 24 28
validate.py
in skills/docx/scripts/office
135 3 33 24 28
extract_form_field_info.py
in skills/pdf/scripts
100 4 31 31 18
run_loop.py
in skills/skill-creator/scripts
256 4 31 12 14
quick_validate.py
in skills/skill-creator/scripts
68 1 30 44 30
thumbnail.py
in skills/pptx/scripts
234 8 30 13 9
fill_fillable_fields.py
in skills/pdf/scripts
78 3 29 37 12
__init__.py
in skills/xlsx/scripts/office/helpers
89 6 27 30 11
pptx_theme.py
in skills/xlsx/scripts/office/helpers
80 10 27 34 5
__init__.py
in skills/pptx/scripts/office/helpers
89 6 27 30 11
pptx_theme.py
in skills/pptx/scripts/office/helpers
80 10 27 34 5
__init__.py
in skills/docx/scripts/office/helpers
89 6 27 30 11
pptx_theme.py
in skills/docx/scripts/office/helpers
80 10 27 34 5
package_skill.py
in skills/skill-creator/scripts
81 3 23 28 10
generator_template.js
in skills/algorithmic-art/templates
63 17 21 33 3
generate_report.py
in skills/skill-creator/scripts
120 4 18 15 8
evaluation.py
in skills/mcp-builder/scripts
231 4 17 7 7
check_bounding_boxes.py
in skills/pdf/scripts
54 1 16 30 16
with_server.py
in skills/webapp-testing/scripts
64 2 16 25 13
extract_form_structure.py
in skills/pdf/scripts
84 2 15 18 13
gif_builder.py
in skills/slack-gif-creator/core
148 7 14 9 5
improve_description.py
in skills/skill-creator/scripts
159 3 13 8 6
run_eval.py
in skills/skill-creator/scripts
241 4 12 5 7
connections.py
in skills/mcp-builder/scripts
97 9 12 12 2
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...