Preheat your oven to 350°F (175°C). Grease and flour a 9x5-inch loaf pan.
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
In a large bowl, cream the butter and sugar until light and fluffy.
Add the eggs one at a time, beating well after each addition.
Mix in the mashed bananas and vanilla extract until well combined.
Gradually add the dry ingredients to the wet ingredients, mixing just until incorporated.
If using, fold in the nuts or chocolate chips.
Pour the batter into the prepared loaf pan and smooth the top.
Bake for 50–60 minutes, or until a toothpick inserted into the center comes out clean.
Allow the bread to cool in the pan for 10 minutes, then transfer to a wire rack to cool completely.