@bagder Great accomplishment. Another heuristic I find useful to guide is minimize the number of functions with more than two nested levels of flow control....probably a graph for that already...lol.
@Spoofer3 we have another graph for "complexity" and we've worked on reducing that for several years as well. It is similar to limiting nested levels but not exactly.