why don't you are not using the unaltered version of the plugin ?
Also calulating so much thing in prethink is not a good idea .
You just take one global variable like
g_dFpsCount[33]
and put
g_dFpsCount[id]++
in prethink and start one more task each second which will check how much value the variable g_dFpsCount holds after one secods and will compare it with the thresold ( also it will reset it to 0 )
In this was it will require less resource and will be a better developer detector .. Hope you the idea