01 - Preheat oven to 350°F (175°C). Grease and flour a 9x13-inch (23x33 cm) cake pan or line with parchment paper.
02 - In a medium bowl, whisk together the flour, baking powder, baking soda, and salt until evenly distributed.
03 - In a large bowl, beat together the sugar and oil (or melted butter) until well combined. Add eggs one at a time, mixing well after each addition. Stir in vanilla extract.
04 - Fold in the mashed bananas and buttermilk (or yogurt) until just combined.
05 - Add the dry ingredients to the wet mixture, mixing gently just until no flour spots remain. Do not overmix.
06 - If using, fold in the chopped nuts or chocolate chips until evenly distributed throughout the batter.
07 - Pour the batter into the prepared pan, smoothing the top with a spatula for an even surface.
08 - Bake for 35–40 minutes, or until a toothpick inserted in the center comes out clean.
09 - Allow the cake to cool in the pan for 15 minutes, then turn out onto a wire rack to cool completely. Serve plain or with your favorite frosting.