humanmade/wordpress-github-stats-widget — pull request #4 by javorszky (2014-03-02 02:35:32+00:00)
Title: Gabor trial

There are a few gotchas that have a number of ways to work around
* aggregate repository statistics might fail if a large part of commit history is still incoming, and tlc is still in lock status for those values (possible workaround is to add a scheduled event half an hour from "now" and hope that Github gets back by that time. Another possible workaround is to check on each pageload whether the array for that section has finished loading (none of the elements are empty (except for the repository that was just created)))
* wasn't sure whether to provide a separate Plugin page for this. Currently it attaches itself to the user profile of user #1
* I kept the styling to an absolute minimum for the widget expecting people to style it. Possible enhancements: a variety of pre-made css styles. This also meant that the canvas element is not present, instead the bars are divs with inline styles for height. Embedding canvas with a separate and unique localized script that would be picked up by a javascript that'd be included once isn't straightforward.
* The plugin doesn't yet handle situations where authorization would be revoked.
* Moved everything to within a class.
* Included tlc-transients along the plugin files. It's a nice wrapper. Love the chaining.
* One thing that might be missing is personal repositories. Currently they're left out, but can be added easily.

This is a 0.8, eyes are welcome on this.

I kept the old functions in a separate file.