Isn't bad thing to use stock in plugin? A friend said to me that and I stopped using stock
That's not a bad "thing", maybe just a bad habit. If you're 100% sure you're going to use the function in your plugin then it shouldn't be a stock, and if you're not going to use it - it shouldn't be there at all.