LastFM Played for WordPress

/*

Clean and simple recently played Last.FM Plugin for WordPress

Author:kommers (profile at wordpress.org)
WordPress version required:6.0
WordPress version tested:6.7.4
Plugin version:1.1.0
Added to WordPress repository:22-01-2015
Last updated:10-11-2025
Rating, %:100
Rated by:4
Plugin URI:https://kommers.io
Total downloads:4 828
Active installs:100+
plugin download
Click to start download

Last.FM Recently Played is a modern, secure WordPress plugin that displays your recently played tracks from Last.FM in a beautiful widget.

Key Features:

  • ???? Display recent Last.FM scrobbles in a widget, shortcode, or template function
  • ???? Shortcode: Use [lastfm_tracks user="username"] in posts/pages
  • ???? Template Function: Use lastfm_display_tracks() in theme files
  • ???? Secure API key storage in WordPress settings
  • ⚡ Built-in caching for optimal performance
  • ???? Responsive design with mobile support
  • ???? Clean, customizable CSS
  • ????️ Modern security standards (proper escaping, validation, nonces)
  • ???? PHP 8.0+ compatible with strict types
  • ???? Translation ready with proper text domains
  • ♿ Accessible markup with proper attributes

Requirements:

  • A Last.FM account with scrobbling enabled
  • A Last.FM API key is optional – plugin includes a default shared key, but getting your own is recommended for better performance

Privacy & Security:

  • Your API key is stored securely in WordPress options
  • All API requests use HTTPS
  • Output is properly sanitized to prevent XSS attacks
  • Transient caching reduces API calls and improves performance

Third-Party Services

This plugin connects to the Last.FM API to retrieve your music listening data:
* Service: Last.FM Web Services API
* API Documentation: https://www.last.fm/api
* Terms of Service: https://www.last.fm/api/tos
* Privacy Policy: https://www.last.fm/legal/privacy

Data sent to Last.FM: Your Last.FM username (configured in widget settings)
Data received: Your user profile information and recently played tracks