Fix intelli_plug for 3.4.94: refactor stats calculation code to be less intrusive

Signed-off-by: Carlos Jesús <xxx.reptar.rawrr.xxx@gmail.com>