This game leans on visual short-term memory, the brief snapshot your brain keeps of what you just saw. Researchers usually describe it as small, often a few objects at a time. That's why most people start to wobble once the pattern gets busy.
Squares are easier than you'd expect, though, because you don't have to remember each one separately. You can see the lit squares as a shape, like a letter, an arrow or a constellation, and remember that instead. Splitting the grid into halves helps too.
Your score is the highest level you cleared. It depends on focus, lighting, screen size and plain luck with the pattern, so expect it to move around from game to game. Compare it with your own past tries rather than with anyone else's.