Definition: Realized P/L
Realized P/L is calculated on a FIFO basis. It does include commissions, fees, and dividends.
This may not align exactly with what your brokerage shows, as brokerages purposely exclude commissions, fees, and dividends from Realized P/L. But in reality, all traders would consider these three factors to be a part of the true P/L.