At least one of your screws should be in a stud if you are installing cat wall shelves. This is to securely fasten the shelf to the wall and ensure it doesn't fall out. Mounting to a stud ensures they remain stable. The best cat shelf will be designed with this in mind, and be the proper length so that you can mount the shelf in two studs for maximum security.