These metrics were done using the built-in analysis tools in Visual Studio 2008 and serve as a reference to the various stats for Terrarium.
General Stats
| Total lines of code: | 52,472 |
| Highest Maintainability Index: | 100 |
| Lowest Maintainability Index: | 9 |
| Highest Cyclomatic Complexity: | 1540 |
| Lowest Cyclomatic Complexity: | 0 |
| Highest Depth of Inheritance: | 8 |
| Lowest Depth of Inheritance: | 0 |
| Highest Class Coupling Score: | 270 |
| Lowest Class Coupling Score: | 0 |
- Maintainability Index: Measures ease of code maintenance. Higher values are better.
- Cyclomatic Complexity: Measures number of branches. Lower values are better.
- Depth of Inheritance: Measures length of object inheritance heirachy. Lower values are better.
- Class Coupling: Measures number of classes that are referenced. Lower values are better.
Project Stats
| Project Name | Maintainability Index | Cyclomatic Complexity | Depth of Inheritance | Class Coupling | Lines of Code |
| Game | 80 | 1,540 | 3 | 270 | 3,652 |
| OrganismBase | 91 | 707 | 4 | 102 | 1,166 |
| Terrarium (client) | 72 | 557 | 8 | 198 | 3,022 |
| HttpListener | 78 | 547 | 3 | 55 | 1,132 |
| Renderer | 86 | 533 | 6 | 91 | 1,321 |
| Controls | 81 | 238 | 7 | 83 | 1,631 |
| Glass | 79 | 204 | 6 | 61 | 537 |
| Configuration | 74 | 185 | 7 | 74 | 475 |
| Services | 88 | 69 | 6 | 16 | 182 |