optimize code for zencart plugin checker
clean up plugin check