PATTY CORNER: Donovan's Pub in Woodside, Queens, has been closed down by the Health Department for violations.NY Post: Victoria Will

For burgers they get an A — but for cleanliness, it’s an F.

Donovan’s Pub, the beloved Queens bar that attracts people from all over the city for what critics have lauded as one of the best burgers in the five boroughs, has been closed by the Department of Health for a sickening list of violations, The Post has learned.

Inspectors went to the Woodside watering hole on Thursday and found a host of problems, including food that wasn’t cooked or stored properly — and was possibly contaminated — according to the Health Department’s Web site.

The infractions — which the agency said also included roaches in the restaurant, thermometers not available or used, and plumbing problems — added up to a stomach-churning 66 points, according to the site.

About a month earlier, on May 21, the Health Department slapped Donovan’s with 67 points.

The agency’s restaurant grading system gives any eatery with 28 points or above a C. It temporarily closes establishments for “serious and persistent violations or an uncorrected public health hazard.”

The Health Department did not return requests for comment.

The traditional Irish pub, with a no-frills atmosphere, opened more than 45 years ago and is a staple on the city’s best-burger rankings. A 2005 ranking by Time Out New York magazine rated it the top patty.

Its juicy half-pound burger, which goes for just $7 with steak fries, is made with bits of New York strip steak mixed in with the chuck and is charbroiled.

Disappointed Donovan’s loyalists showed up yesterday — and vowed to return as soon as the doors reopen.

Thomas Hogan, 67, desperately tried to get the locked door to open, then started laughing at himself when he saw the city notice.

“I thought old age was catching up to me or the door just got heavier,” he said.

“I’m disappointed that it’s not open. I want to go back. I do,” Hogan said. “Woodside isn’t Woodside without Donovan’s.”

The bar’s owner, Joe Donovan, did not immediately return a call for comment.