I/S: Calculate commission on executed and unexecuted shares?

Just reading this site (https://sites.google.com/site/cfalevel3examprep/portfolio-performance-evaluation/ss16/reading-30/30g) and it says that you calculate the commission number based on the total share quantity, not just realised commission/executed shares… Seems odd to me so just wanted to check, here is the table:

Explicit cost(Fee/share / BP) x total shares in order

Delay/Slippage cost[(DP - BP) / BP] x % of order filled

Realized profit/loss[(EP - DP) / BP] x % of order filled

Missed opportunity cost[(CP - BP) / BP] x % of order NOT filled