If you enjoy airport amenities, JFK is tops in the nation – but if you’re seeking on-time flights and a short commute, you’re out of luck in the New York metro area, according to a new study.

JFK, La Guardia and Newark Liberty airports range from about average to decidedly bad, according to the study conducted by travel news website The Points Guy.

The site compiled data from the 50 busiest US airports by number of passengers, focusing on 34 factors including delays and cancellations; TSA wait times; commute, which includes drive time and parking fees; and amenities such as lounges and eateries.

Despite its sky-high score in amenities, JFK landed near the bottom for long commute time (No. 49) and poor record for on-time flights (No. 47), which brought its overall rank to just above average at No. 22.

Newark, meanwhile, fell flat on the tarmac in the 50th spots for commute time and on-time flights – but came in at No. 34 overall thanks to its strong amenities showing in the fourth place.

And La Guardia, which former Vice President Joe Biden once referred to as a “Third World country,” didn’t fare much better, notching the No. 48 spot for commute time and No. 49 for on-time flights.

It came in at No. 12 for amenities, boosting its overall score to a still lowly No. 45, according to the study.

“Previous last-place airport New York-JFK is now No. 22 and Newark Liberty (EWR) No. 34. What happened?” the report said.

“In a word, lounges. Our increased emphasis on amenities meant that JFK’s 23 lounges — more than any other airport could boast — and Newark’s respectable 13 lounges offset both airports’ terrible records of on-time flights and painful commute times.”

On the other end of the spectrum, San Diego International Airport was awarded the top spot because of its high grades for amenities (No. 11), a great record of timeliness (No. 16) and the top score for commute time.

Phoenix Sky Harbor clinched second place, followed by Portland (Oregon) International, Hartsfield-Jackson Atlanta and Sacramento.

The worst airport was Chicago Midway, which only has one lounge and a few restaurants, with Fort Lauderdale-Hollywood and Orlando International coming in at 48 and 49, respectively.

“Frequent travelers aren’t likely to move to be near the best airports,” said Scott Mayerowitz, executive news director of The Points Guy.

“However, knowing the pros and cons of each airport is a helpful guide when planning your trip. If you know the airport you’re traveling through lacks amenities, pack a meal. Leave early if commute times are unpredictable, and try to schedule connecting flights through more-reliable airports,” he said.