MCC estimates local reading burden caused by flow breaks, nesting, context switches, and dense artifact clusters. It is the documentation analogue of cognitive complexity for source code.Documentation Index
Fetch the complete documentation index at: https://mehen.ophi.dev/llms.txt
Use this file to discover all available pages before exploring further.
Base weights
Each construct contributes a base weight, ranging from0.20 for a normal heading-level increment up to
+4.00 for a verified broken external link.
Formula
The MCC formula has three multiplicative layers:Nesting multiplier
Artifact clustering multiplier
Dense clusters of artifacts in a 20-rendered-line window increase local switching cost.Scaffolding credit
Well-labelled, bounded, locally explained artifacts earn credit capped at0.25 · MCC_positive. Credit
applies only when label, nearby explanation, and bounded size are all present.
Interpretation
| MCC | Meaning |
|---|---|
| 0–10 | Easy to read. |
| 11–25 | Normal. |
| 26–50 | Dense. |
| > 100 | Documentation subsystem rather than one page. |
References
- Campbell, G. A. (2018). Cognitive Complexity — A new way of measuring understandability. SonarSource white paper — the design ancestor. PDF.
- Sweller, J. (1988). Cognitive load during problem solving: Effects on learning. Cognitive Science 12(2): 257–285 — basis for the nesting and clustering multipliers. DOI.
- Mayer, R. E. (2009). Multimedia Learning, 2nd ed. Cambridge University Press — split-attention and contiguity principles behind the artifact-clustering penalty.
See also
- Cognitive complexity — the source-code analogue.
- MRPC — global reading-path complexity.
- Visual Scaffold — artifact scaffolding credit driver.