Check the plugin names here, before adding them to the list. Check for invalid characters (alphanum plus underscore sounds good) and also for empty names - they might mess up in unexpected ways. And you might also want to check for duplicate names - it might be difficult to figure out what happens if you apply the same plugin twice.