When I was less experienced in scripting, I used to take make items from the toolbox, including scripts. I have never really understood the plugin() function, though.
plugin()
Any explanation or thoughts would be greatly appreciated!