Prepare the Cake Pan: Preheat the oven to 350°F. Grease a 9×9-inch cake pan and line it with parchment paper. Pro Tip: To fit the parchment paper neatly, cut a square slightly larger than your pan, fold it in half, then fold again into quarters. Cut an angled notch at the open corners, just deeper than the pan’s height. Unfold the paper, press it into the greased pan, and it’s ready for baking.
Mix the Dry Ingredients: In a medium bowl, whisk together the flour, baking powder, and salt until evenly combined. Set aside.
Cream the Butter and Sugars: In a large bowl, use a hand mixer on medium speed to beat the butter, white sugar, and brown sugar until creamy, about 2 minutes.
Add the Wet Ingredients: Lower the mixer speed to low and add the mashed bananas, milk, maple syrup, and egg. Mix until smooth and fully combined.
Combine the Dry Ingredients: Add the dry ingredients on low speed until just combined and the batter is smooth. Be careful not to overmix.
Pour the Batter into the Pan: Pour the batter into the prepared baking pan, spreading it evenly.
Bake the Cake: Bake for 40–50 minutes, or until a toothpick inserted into the center comes out clean. Ovens can vary, so start checking for doneness at the 40-minute mark. If the top browns too quickly, loosely cover it with aluminum foil to prevent over-browning.
Cool the Cake: Remove the cake from the oven and place it on a wire rack to cool completely. After about 45 minutes, you can transfer it to the refrigerator to speed up the cooling process.
Prepare the Frosting: While the cake cools, beat the room-temperature cream cheese and butter in a medium bowl until smooth and creamy. Add the confectioners’ sugar, vanilla, and salt, and beat on low speed for 30 seconds. Increase to high speed and continue beating for 2 minutes until the frosting is smooth and reaches your desired consistency.
Frost the Cake: Spread the frosting evenly over the cooled cake. Refrigerate for 30 minutes to set the frosting, making it easier to slice before serving.
Store the Cake: Cover any leftovers tightly and store them in the refrigerator for up to 5 days.