It could be possible that multiple plugins exist, if so then this should be updating a list rather than assigning in every iteration. Then return the full list at the end.