REPLACE the Alternator and clean the battery terminals if they have not been cleaned.
A vacuum leak or a slight crack in a vacuum line can cause this too
Have the IAC contoller cleaned & or replaced.
IAC = Idle Air Control valve its located inline after the throttle body
this unit can...
HAVE THE (MAP) SENSOR = (MANIFOLD ABSOLUTE PRESSURE SENSOR) CHECK AND REPLACED
HAVE THE ( T P) = THROTTLE POSITION SENSOR CHECKED & REPLACED
THE ARE NOT EXPENSIVE AND WILL CAUSE THAT PERFORMANCE ISSUE
NEXT CHECK THE SPARK PLUGS AND WIRES ( ALL IGNITION COMPONENTS ) = COIL / MODULES, CAP &...