[NOTE: I've just come back from a 5 month downtime (couldn't afford a server after my last host went out of business), I've since moved my URL shortener off of Yourls, and moved it to Drupal, using the Shurly mod. When YOURLS advances a bit and has better spam filtering, I'll probably move back! Plugin re-posted here for your convenience, but may be out of date. I last used YOURLS 1.51-beta]
Short post, but I have thrown together a short plugin for YOURLS (using a lot of the code from http://gkurl.us/popular) that shows the most popular links created in 1,30,365, and 1000 days on a YOURLS site. It’s based on code from Mrtech, but is now in the form of a plugin.
Download here, save as plugin.php and upload to YOURLS_DIRECTORY/user/plugins/popular-links
At the bottom of the plugin, you can edit the values
1000 means the number of days you are selecting from the database
5 means the number of links you are selecting.