01 - Preheat oven to 350°F. Grease and flour a 9-inch round or square cake pan, ensuring even coverage on all surfaces.
02 - In a large mixing bowl, beat the mashed bananas, vegetable oil, granulated sugar, eggs, and vanilla extract together until the mixture is smooth and well blended.
03 - In a separate bowl, whisk together the all-purpose flour, baking soda, baking powder, salt, and ground cinnamon if using, until evenly distributed.
04 - Gradually fold the dry ingredient mixture into the wet ingredients using a spatula, mixing until just combined. Be careful not to overmix to keep the cake tender.
05 - Gently stir in chopped walnuts, pecans, or chocolate chips if desired, distributing them evenly throughout the batter.
06 - Pour the batter into the prepared cake pan and use a spatula to smooth the surface into an even layer.
07 - Bake for 35 to 40 minutes, or until a toothpick inserted into the center of the cake comes out clean. Check at the 35-minute mark to avoid overbaking.
08 - Let the cake cool in the pan for 10 minutes, then carefully transfer it to a wire rack to cool completely before slicing and serving.