name: "⏱️ Website performances"
category: social
index: 1
supports:
  - user
  - organization
  - repository
scopes: []
inputs:

  # Enable or disable plugin
  plugin_pagespeed:
    description: Display a website Google PageSpeed metrics
    type: boolean
    default: no

  # Website to audit with PageSpeed
  plugin_pagespeed_url:
    description: Audited website
    type: string
    default: .user.website

  # Display the following additional metrics from audited website:
  # First Contentful Paint, Speed Index, Largest Contentful Paint, Time to Interactive, Total Blocking Time, Cumulative Layout Shift
  # See https://web.dev/performance-scoring/ and https://googlechrome.github.io/lighthouse/scorecalc/ for more informations
  plugin_pagespeed_detailed:
    description: Detailed audit result
    type: boolean
    default: no

  # Display a screenshot of audited website
  # May increases significantly filesize
  plugin_pagespeed_screenshot:
    description: Display a screenshot of your website
    type: boolean
    default: no

  # PageSpeed API token
  # This is optional, but providing it will avoid hitting rate-limiter
  # See https://developers.google.com/speed/docs/insights/v5/get-started for more informations
  plugin_pagespeed_token:
    description: PageSpeed token
    type: token
    default: ""