An evil entity haunts a small Maine town every 27 years in the form of a killer clown in the horror film ‘It.’
Warner Bros.

Filmmakers have been adapting Stephen King books for decades now, which means there have been some classics and some clunkers.

Last month, The Dark Tower crashed and burned, but a new version of It (in theaters Friday) is poised to scare up some dough and turn around a flagging box office.

Here’s how those two movies rank with the best and worst of King’s theatrical releases, starting with the bad:

5. Cell (2016)

At least the concept gets an A: Cellphones turn a large percentage of the population into mindless rage monsters. Execution, though? Well, that’s a big fail, even for a faux zombie flick.

4. Graveyard Shift (1990)

Insane stuff happens at a reopened textile mill, people start dying and it’s all because of … a ginormous rat. Even if the monstrous rodent wasn’t a special-effects fumble, the film is Z-grade across the board.

3. The Dark Tower (2017)

The biggest sin here isn’t the filmmaking — which is certainly bad — but the complete whiff on creating an expansive fantasy world. Although Idris Elba does what he can as gunslinger Roland Deschain, everything around him is a miss.

2. The Mangler (1995)

The late director Tobe Hooper is a horror staple, but this travesty isn’t. Hooper rounds up another genre legend, Robert Englund, for this awful movie about a possessed laundry press, which cleans up in the competition for worst King movie villain.

1. Dreamcatcher (2003)

A good cast (Morgan Freeman, Damian Lewis and Timothy Olyphant) and ace director (Lawrence Kasdan) are completely wasted in an abhorrent mishmash of lifelong bromance, alien invasion and government conspiracy.

And now for the good:

5. (tie) Carrie (1976)

Sissy Spacek exudes quiet, tortured grace as a teenager just blossoming into womanhood, leading to bullying from classmates and her abusively religious mom (Piper Laurie). The last 30 minutes is a…