1 whole pineapple
1/2 c. (1 stick) unsalted butter, melted, plus more for pan
3 c. all-purpose flour, spooned and leveled, plus more for pan
1 c. granulated sugar
1 c. packed light brown sugar
1 tsp. ground cinnamon
1 tsp. baking soda
1 tsp. kosher salt
3 large eggs
2 c. coarsely mashed ripe bananas (from 4 to 6 bananas)
1 (8-ounce) can crushed pineapple in juice, undrained
1/2 c. vegetable oil
2 tsp. pure vanilla extract
1 c. chopped pecans, toasted
4 oz. cream cheese, at room temperature
1/4 c. (1/2 stick) unsalted butter, at room temperature
2 c. confectioners’ sugar
1 tsp. pure vanilla extract
2 to 4 tablespoons milk
Small fresh flowers, for garnish