Here's a report card you should be paying attention to. And you may want to think twice about living in a place that was graded with a D+.

Niche has come out with its new 2018 rankings of the "Best Places to Live" in New Jersey, but for at least second year in row, it took a bit of a unique approach: The consumer rankings service assigned a grade, on an A+-to-D+ scale, to almost every town in the state. Nearly 80 communities received A+ grades, topped with towns such as Princeton, Bedminster, Westfield and East Brunswick. Four communities received D+ grades: Irvington, Harmony, the Brookfield section of White Township and the Port Norris section of Commercial Township in Cumberland County. The list included sections of towns and city neighborhoods.

"I grew up in this city suburb and it is a terrible place to live," one person wrote about Irvington. "Crime was once highest per capita in the country. There is no night life as to everything has to shut down at night." To arrive at the rankings, Niche.com took several factors into consideration, such as the quality of local schools, crime rates, housing trends, employment statistics and access to amenities.

Niche created a standardized score for each factor, and after weighting each factor, an overall score was calculated, which was again given a new standardized score. Finally, Niche.com created a numerical ranking and assigned grades for each place. Click here to read more about the methodology.

Here are the New Jersey towns, and how they were graded:

A+

Allendale

Alpine

Bedminster Township

Berkeley Heights Township

Bernards Township

Bernardsville

Bradley Gardens (section of Bridgewater)

Branchburg Township

Bridgewater Township

Chatham

Chatham Township

Clinton Township

Closter

Cranbury

Cranbury Township

Dayton (section of South Brunswick)

Demarest

East Brunswick

Edgewater

Edison

Fair Lawn

Fanwood

Fort Lee

Glen Ridge

Glen Rock

Greentree (section of Cherry Hill)

Haddonfield

Hanover Township

Haworth

Heathcote (section of South Brunswick)

Highland Park

Hillsborough

Ho-Ho-Kus

Hoboken

Holmdel Township

Hopewell

Hopewell Township

Kendall Park (section of South Brunswick)

Lambertville

Lawrenceville

Leonia

Livingston

Long Hill Township

Madison

Maplewood

Mendham Township

Metuchen

Millburn Township

Monmouth Junction (section of South Brunswick)

Montclair Township

Montgomery Township

Moorestown

Morris Township

Mountain Lakes

New Providence

North Caldwell

Oradell

Parsippany-Troy Hills Township

Plainsboro

Princeton

Princeton Junction (section of West Windsor)

Princeton Meadows (section of Plainsboro)

Randolph Township

Ridgewood

River Edge

River Vale

Rocky Hill

Scotch Plains

Short Hills

Society Hill

South Brunswick Township

South Orange

Springdale (section of Cherry Hill)

Summit

Tenafly

Upper Montclair

Warren Township

Wayne

West Windsor Township

Westfield

Woodcliff Lake A Annandale

Ashland (section of Cherry Hill)

Avon-by-the-Sea

Bay Head

Beckett (section of Logan Township)

Bergenfield

Boonton Township

Brielle

Chester

Chester Township

Chesterfield Township

Clinton

Colts Neck Township

Cranford Township

Cresskill

Delaware Township

Denville Township

Dumont

Englewood Cliffs

Essex Fells

Fair Haven

Fairview

Far Hills

Finderne (section of Bridgewater)

Florham Park

Franklin Lakes

Franklin Park

Green Brook Township

Haddon Heights

Harding Township

Harrington Park

Iselin (section of Woodbridge)

Kinnelon

Little Silver

Mahwah

Manasquan

Martinsville

Medford Township

Mendham

Midland Park

Montvale

Montville

Morganville (section of Marlboro)

Morris Plains

Morristown

North Brunswick

Northvale

Oakland

Old Tappan

Paramus

Park Ridge

Peapack and Gladstone

Pennington

Ramblewood (section of Mount Laurel)

Ramsey

Raritan

Raritan Township

Readington Township

Robbinsville

Robertsville

Rumson

Saddle River

Sea Girt

Secaucus

Shrewsbury

Spring Lake

Springfield Township (Union County)

Teaneck

Ten Mile Run (unincorporated territory near South Brunswick)

Tewksbury Township

Union Township

Upper Saddle River

Verona

Washington Township (Bergen County)

Watchung

Weehawken

West Orange Township

Westwood

White Meadow Lake (section of Rockaway)

Wyckoff A-