Define "perfect photo". The questions are what are you shooting, what are you trying to capture, and what are you trying to convey? And regardless of any of this, there isn't a best all around custom setting. Each situation stands on it's own merit. I would tell you to set everything manually every time. The perfect picture is not created by having s general setting that just captures an image. The perfect image is created by the right depth of field, the right lighting, the right shutter speed, and the proper framing; all for the subject at hand. You may even need auxiliary light sources, or at least to bounce light onto the subject. You may need to create a background, say for a macro image of a flower or insect, and you may want to imbibe motion into your photograph.
You may want to use a large aperture and need to freeze the image, but you may also want some blur. For example, a race car in a frame can be blurred as it passes through the image, or you can pan with the car using a low shutter speed and blur the background. You may want a landscape photo where the trees and flowers are in focus, but the stream is blurred; again, giving a sense of motion.
You really can't pick an all around setting to do all of these things. Fast shutter speed to freeze the action, slow shutter speed to blur it. Large aperture to minimize depth of field and small aperture to increase it. I would suggest that you take multiple photos of the same subject matter with each photo running the gamut of slow to fast shutter speeds with minimal depth of field to maximum depth of field. Also try to experiment with various ISO settings. You may also want to try exposures that a a few stops above and a few stops below. When you set those photos up; use the same lens and same filters (experiment with those later). Try to set up with the same focal length and the same image in the shots. Then compare the differences and find the photo that conveys what you felt when you saw the scene. That to me is what defines the perfect photo.