WordPress plugin intelligence profile

SimpleTwit

Everything a developer or designer needs to pull in a Twitter feed. All in a slim package that won't get in the way of your creativity.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.5
Current version1.3
WordPress coverageTested up to WordPress 3.5
Minimum stackWP 3.3 · PHP —
Directory statusactive
Last directory update17 Oct 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records SimpleTwit version 1.3 as active, updated 12y ago and tested up to WordPress 3.5.

Overview

About this plugin

1 REST API. It’s all that a developer needs to incorporate a Twitter feed on their site, the OAuth handling, caching to avoid rate limiting, and utilities to easily format Tweets correctly without predefined styles to work around. For designers, the plugin creates a widget that can be used to easily display and style Tweets in your theme.

Features

  • Provides access to a user’s Tweets for both designers and developers
  • Creates a widget for easy display of the latest Tweets in your theme’s sidebar
  • Clearly designates Retweets and Replies to allow easy styling and manipulation
  • Easily set Username and OAuth credentials
  • Caches Tweets to prevent rate limiting problems
  • Hooks into WP_Cron for easy installation and automatic API calls
  • Uses OAuth and the v1.1 Twitter REST API

Usage

There are two main ways to access the Tweets, one aimed at developers and one aimed at designers.

For Designers

This plugin creates a widget that allows display of the most recent Tweets in any sidebar in your theme. When adding the widget you can customize how many Tweets and what information is displayed, choosing from content, time, author, and source. The widget outputs HTML5 which with classes to style on every element, including flagging Tweets as Retweets and Replies.

You will be able to style this widget to look exactly as you need it it to.

For Developers

For those with something special in mind and willing to get their hands dirty, this plugin provides powerful access to the DB of Tweets. Tweets can be grabbed through a template tag and are provided in a special object jam packed with features:

STF_Tweet

An array of these objects is returned by the template tag instead of the WP_Post object, or an individual can be constructed by passing the post ID of the Tweet to the object constructor.

The object provides a number of useful methods when working with Tweets. This object has the following accessible properties:

  • is_retweet – This boolean will be true when the Tweet is a Retweet
  • is_reply – This boolean will be true when the Tweet is a Reply to another Tweet
  • content – The content of the Tweet, this will be automatically formatted to link other referenced Twitter users, hashtags, and inline links
  • time – A timestamp of the Tweet, timezoned to the WP install, in Y-m-d H:i:s format
  • time_gmt – A timestamp of the Tweet, timezoned to GMT, in Y-m-d H:i:s format
  • time_str – The string that represents how long it’s been since the Tweet, in the way that Twitter usually dates its Tweets, good for an international audience since this isn’t timezone specicific

The object has the following methods:

  • get_source() – Returns the string representing the device used to Tweet this status
  • get_raw_tweet() – Returns the cached raw response from the API as an object, this should rarely be used as almost all information on the Tweet is accessible without loading this object
  • get_author_link() – Returns a string that is the link to the Tweet’s author’s page on Twitter
  • get_retweet_info() – Returns the info on the original Tweet of a Retweet, or false if the Tweet is not a Retweet, the object returned contains:
  • username – The Twitter username of the original Tweet
  • screenname – The Twitter screenname of the original Tweet
  • content – The unformatted content of the original Tweet
  • time_gmt – The GMT time of the Retweet
  • url – A direct link to the original Tweet
  • user_url – A direct link to the profile of the original Twitter user
  • get_reply_info() – Returns the info on the original status that this Tweet is replying to, the info is as follows:
  • url – The direct link to the original status
  • in_reply_to_name – The screenname of the original Twitter user
  • in_reply_to_user_url – The direct link to the original Twitter user’s profile
  • get_author_info() – Gets the raw object response from the Twitter API scrape, there are a lot of variables in the raw object, but here’s the main attributes:
  • id_str – The id of the user
  • name – The nice name of the author account
  • screen_name – The username of the author account
  • description – The self-provided description of the author on Twitter
  • created_at – The creation date of the Twitter author account
  • profile_image_url – Link to the profile image of the Twitter author account
  • profile_image_url_https – Secure link to the profile image of the Twitter author account

stf_get_tweets($args)

This will be the main function used to get Tweets from the DB. This function takes an array of parameters as follows:

  • $args['num'] – This tells us how many Tweets to get from the DB, defaults to 5
  • $args['offset'] – This tells us how many Tweets to skip over when selecting our Tweets, defaults to 0
  • $args['retweets'] – This tells us whether or not to get Retweets, defaults to true
  • $args['replies'] – This tells us whether or not to get Replies, defaults to true

This function returns an array of STF_Tweet objects, the use of these objects is described above

Contributors

  • George Yates III
  • alexsomeoddpilot

Future Development

  • Database Functions (Delete, Rescrape)
  • Multiple Twitter Streams
  • Define the interval between feed scrapes
  • Allow users to Retweet and Reply with their own accounts right from your site
  • Add in shortcode support for recent Tweet display
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • twitter feed
  • designer
  • developer
  • simple
  • widget
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.5

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.5.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.5
Minimum requirementsWordPress 3.3 · PHP not listed
Update activity17 Oct 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.