isPluginValid = (plugin) => (
  plugin
  // Check existing of main plugin function
  && typeof plugin.fn === 'function'
  // Check that plugin function accepts 0 or 1 argument
  && plugin.fn.length <= 1
)
Validate plugin module signature

@param  {Object} plugin
@return {Boolean}