Improve port testing and plugin verification