overall property
int
get
overall
Weighted average across all categories.
Implementation
int get overall {
// Security and memory weighted higher because they cause crashes/breaches.
final weighted =
(architecture * 1.0) +
(performance * 1.2) +
(memory * 1.5) +
(ui * 0.8) +
(api * 1.2) +
(security * 1.5) +
(quality * 0.8);
final totalWeight = 1.0 + 1.2 + 1.5 + 0.8 + 1.2 + 1.5 + 0.8;
return (weighted / totalWeight).round().clamp(0, 100);
}