Afraid you miss read the code...
$averagetechlvl = ($targetinfo['computer'] + $targetinfo['sensors'] + $targetinfo['beams'] + $targetinfo['torp_launchers'] + $targetinfo['shields'] + $targetinfo['jammer'] + $targetinfo['cloak']) / 7;
$doomsday = floor(($colonist_limit + ($colonist_tech_add * $averagetechlvl)) * ($doomsday_value * 0.01));
As you can see it does take into account the average tech level of each planet. Ad you raise the average tech level of the planet the top end raises as well.
But you are right about the plasma storms not being triggered. If should be <= instead of <.