code: function pluginType(plugin) {
      var name = plugin.getName();
      return (name && name.indexOf(THEME_PREFIX) === 0) ? TYPE_THEME : TYPE_PLUGIN;
  }
docs: Returns the type of a plugin given its name
  @param {Plugin} plugin
  @return {String}