A few things come to mind.
1. I would pull the spark plugs and see what they look like.
2. Did you buy the car used? regardless I would give her a "tune-up": New spark plugs, oil change, throttle body cleaning, injector cleaning and new fuel filter.
3. Check for a vacuum leak.
A p0300 is not a specific code so you will have to investigate.