Any data that Discourse makes available through its API or Webhooks could be displayed on an external site. The Discord widget that you’ve linked to is displaying data about how many users are online. I’m not sure if it would be possible to get that information from the Discourse API. It might be possible to use User Event or Post Event webhooks to get data about recent user activity on the site though.
Is your WordPress site connected to Discourse with the WP Discourse plugin? That plugin could be extended to create a widget similar to what you are looking for, but possibly not with the exact same type of data that you’re seeing on the Discord widget.