Clean up parsing extras in get_plugins() and add a test