The 'job hopping advice' is always so one-dimensonal as if salary maxing is the only metric that counts. You should always take everything into account
- work climate and coworkers - work life balance - legal rewards for staying (This might not apply to the US but in most of Europe you get progressively harder to fire the longer you stay at one company)