Long level with checkpoint or single short levels?

Hello folks, I have a quick question for you. What do you think is better? One long level with checkpoints or rather several small levels? (Platformer)

I like to learn how to improve my games and workflows and would like to know the general opinion.

I have been made aware of this in my game and I think it is justified to make small levels. But I would also like to know the pros and cons.