File Complexity Overall
  • There are 46 files with units, with 4,522 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 287 lines of code)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 45 simple files (McCabe index sum 1-25; 4,235 lines of code)
  • 88 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 6% | 0% | 93%
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
ts0% | 0% | 12% | 0% | 87%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 6% | 0% | 93%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 46)

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
ProseMirrorFieldView.ts
in src/plugin/fieldViews
287 17 52 18 15
nodeSpec.ts
in src/plugin
524 18 20 4 2
RepeaterFieldView.ts
in src/plugin/fieldViews
188 11 19 10 4
DemoImageElement.tsx
in src/elements/demo-image
102 14 14 14 1
StandardSpec.tsx
in src/elements/standard
53 12 12 23 1
MembershipSpec.tsx
in src/elements/membership
23 12 12 52 1
CustomFieldView.ts
in src/plugin/fieldViews
92 8 11 12 2
TweetSpec.tsx
in src/elements/tweet
41 11 11 27 1
CommentSpec.tsx
in src/elements/comment
28 10 10 36 1
Callout.tsx
in src/elements/callout
155 10 10 6 1
InteractiveSpec.tsx
in src/elements/interactive
47 9 9 19 1
RichlinkSpec.tsx
in src/elements/rich-link
19 8 8 42 1
AttributeFieldView.ts
in src/plugin/fieldViews
45 5 7 16 2
plugin.ts
in src/plugin
338 4 7 2 2
CartoonSpec.tsx
in src/elements/cartoon
63 7 7 11 1
TableSpec.ts
in src/elements/table
21 7 7 33 1
NestedElementFieldView.ts
in src/plugin/fieldViews
156 2 6 4 3
DropdownFieldView.ts
in src/plugin/fieldViews
74 3 6 8 3
ImageElement.tsx
in src/elements/image
68 6 6 9 1
TextFieldView.ts
in src/plugin/fieldViews
153 1 5 3 5
EmbedSpec.tsx
in src/elements/embed
60 5 5 8 1
Callout.tsx
in src/elements/embed
196 3 5 3 2
CartoonForm.tsx
in src/elements/cartoon
289 1 5 2 5
transform.ts
in src/elements/helpers
88 5 5 6 1
ElementProvider.tsx
in src/renderers/react
78 4 4 5 1
CheckboxFieldView.ts
in src/plugin/fieldViews
52 3 4 8 2
calloutDataTransformer.ts
in src/elements/callout
85 4 4 5 1
placeholder.ts
in src/plugin/helpers
66 2 3 5 2
PullquoteSpec.tsx
in src/elements/pullquote
26 3 3 12 1
KeyTakeawaysSpec.tsx
in src/elements/key-takeaways
26 3 3 12 1
AltStyleElementSpec.tsx
in src/elements/alt-style
26 3 3 12 1
ContentAtomSpec.tsx
in src/elements/content-atom
27 3 3 11 1
ContentAtomForm.tsx
in src/elements/content-atom
93 2 3 3 2
RepeaterElement.ts
in src/elements/repeater
10 3 3 30 1
15 2 2 13 1
CodeElementSpec.tsx
in src/elements/code
22 2 2 9 1
cartoonDataTransformer.ts
in src/elements/cartoon
78 2 2 3 1
StandardForm.tsx
in src/elements/standard
169 1 2 1 2
CalloutError.tsx
in src/elements/callout
70 1 2 3 2
NestedElement.ts
in src/elements/nested
14 2 2 14 1
TweetForm.tsx
in src/elements/tweet
34 1 1 3 1
EmbedForm.tsx
in src/elements/embed
50 1 1 2 1
RecipeElementSpec.tsx
in src/elements/recipe
11 1 1 9 1
ImageElementForm.tsx
in src/elements/image
237 1 1 0 1
DemoImageElementForm.tsx
in src/elements/demo-image
176 1 1 1 1
InteractiveForm.tsx
in src/elements/interactive
47 1 1 2 1
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...