Same core as in the WOTLK personal GearScore calculator (GS) ( https://wago.io/9l-mHuVk3 ) - only with some events and optimization for inspecting.
It only loads and runs while opening the inspect window. The calculation is the same as in Taco-Tooltip (=Enchants are being ignored), which is based on a broken implementation of Gearscore-lite.
Same here: The code is dirty and hacked together, but it works pretty well?
_________________________________________________________________
Gearscore display for the inspect frame.
-only calculated if you open the inspect window. ("performance optimized", ignore the WAGO warning, its "kinda" false positive.)
-based on calculation from gearscore-lite (vanilla wotlk)
-same calculation as in TacoTip (enchants are not weighted / implementation is broken)