Will have to give this a try, one Arch derivative I've always been fond of has been BBQLinux (https://bbqlinux.org/) which still runs amazingly on my 3rd Gen i5? Laptop.
I believe cyclomatic complexity is related to what you're looking for. https://en.m.wikipedia.org/wiki/Cyclomatic_complexity
There are tools/plug-ins available which try to measure this which could result in less complex and thus more readable code.