With the rapid advancement of renewable energy sources, the incorporation of distributed resources is increasingly impacting the stable operation of the power system. As a result, virtual power plants, which aggregate these distributed resources, have emerged as an essential research subject. However, the existing research has insufficiently addressed the capability of virtual power plants for flexibility potential. In an attempt to bridge this research gap, this paper proposes an optimal dispatch strategy for virtual power plant, accounting for flexibility potential and grid-friendliness. The viability of this strategy will be tested through its application to a representative virtual power plant. Simulation results indicate that the proposed strategy enhances the flexibility of the virtual power plant, underscoring the potential efficacy of this approach.