Is it good or bad practise writing plugins this way(using class and prototypes), what are disadvatages of this code?
function PluginName(jqueryObject, options) {
The easiest way to write jQuery plugins (especially if they have some internal state) is to use jQuery UI Widget Factory.
I wouldn't recommend to reinvent the wheel and write lots of boilerplate code by yourself.
https://learn.jquery.com/jquery-ui/widget-factory/why-use-the-widget-factory/ https://learn.jquery.com/plugins/stateful-plugins-with-widget-factory/