> WP Github Gist wordpress plugin resources analysis

WP Github Gist wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name WP Github Gist
Version 0.4
Author Sudar
Rating 0
Last updated 2014-07-11 11:56:00
Downloads
1556
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
WP Github Gist plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

WP Github Gist plugin added 13 bytes of resources to the Home page and 27 bytes of resources to the sample Post page.

WP Github Gist plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! WP Github Gist plugin ads no tables to your Wordpress blog database.

WP Github Gist WordPress Plugin, provides the ability to embed gist and files from Github in your blog posts or pages. Even though Github doesn't provide a way to embed files, this Plugin still works by using the gist-it service.

Features

Embed Gist

To embed a gist you have to use the following shortcode

[gist id = "{GIST_ID}" file = "{GIST_FILE}" width = "{WIDTH}"]

The following are the different attributes that you can use in the shortcode

  • id - Id of your gist.
  • file - File inside gist that you want to display. If there is only one file in the gist, then you can ignore this.
  • width - Width of the code wrapper. Default is 100%.

eg: [gist id = "12345" file = "myfile" width = "100%"]

Embed Github files

To embed a github file you have to use the following shortcode

[github file = "{GITHUB_FILE}" start_line = "{START_LINE}" end_line = "{END_LINE}"]
  • {GITHUB_FILE} - full path to your github file. eg: If you want to embed https://github.com/sudar/MissileLauncher/blob/master/MissileLauncher.cpp then {GITHUB_FILE} would be /sudar/MissileLauncher/blob/master/MissileLauncher.cpp
  • {START_LINE} - If you want to embed only part of the file, then you can specify the starting line number (optional)
  • {END_LINE} - If you want to embed only part of the file, then you can specify the ending line number (optional)

eg: [github file = "/sudar/MissileLauncher/blob/master/MissileLauncher.cpp"]

if you want to embed only part of the file, then you can specify the start and end line as well

[github file = "/sudar/MissileLauncher/blob/master/MissileLauncher.cpp" start_line = "10" end_line = "20"]

Changing Gist-it server

By default, this Plugin uses my own gist-it server which is hosted on a free Google App Engine account. If you expect significant amount of traffic to your blog, then do consider using your own gist-it server. You can follow the instructions to deploy your own gist-it server and then go to the settings page to change the url.

Translation

The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.

Support

Support for the Plugin is available from the Plugin's home page. If you have any questions or suggestions, do leave a comment there or contact me in twitter.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
THBusiness screenshot

THBusiness

by: Pubudu Malalasekara

20327
100%
Spacious screenshot

Spacious

by: ThemeGrill

326970
98%