I don't buy that this is the total change in entropy because he doesn't account for any entropy created due to work being done by the engine. I'm assuming that something is wrong with my reasoning, but what?
The equation is the total change in entropy (system + surroundings) and does account for the possibility that the engine creates entropy.
The entropy change of the system is always zero for any complete cycle (reversible or not) because entropy is a state function of the system and does not depend on the path. Consequently, any entropy created by the system is transferred to the surroundings. If a heat engine creates entropy, the cycle is irreversible, and
$$\Delta S_{tot}>0$$
On the other hand, if a heat engine operates between two thermal reservoirs in a reversible cycle (Carnot cycle) the heat engine will not create entropy and
$$\Delta S_{tot}=0$$
Efficiency-
For any heat engine operating between two thermal reservoirs the cycle efficiency is the net work done divided by the gross heat added, or
$$e=\frac {Q_{h}-Q_{c}}{Q_h}$$
Or
$$e=1-\frac{Q_c}{Q_h}$$
If the cycle is reversible (Carnot Cycle)
$$\Delta S_{tot}=\frac{Q_c}{T_c}-\frac{Q_h}{T_h}=0$$
$$\frac {Q_c}{T_c}=\frac {Q_h}{T_h}$$
$$\frac{Q_c}{Q_h}=\frac {T_c}{T_h}$$
And therefore
$$e=1-\frac{T_c}{T_h}$$
Which is the Carnot efficiency.
If the cycle is irreversible,
$$\Delta S_{tot}=\frac{Q_c}{T_c}-\frac{Q_h}{T_h}>0$$
$$\frac {Q_c}{T_c}>\frac {Q_h}{T_h}$$
$$\frac {Q_c}{Q_h}>\frac {T_c}{T_h}$$
$$e=1-\frac{Q_c}{Q_h}<1-\frac{T_c}{T_h}$$
ADDENDUM
In response to your follow up comment
Yes, they should be included in the calculation, but they don't account for the change in entropy due to work being done.
Any entropy generated in the system (due to irreversible work, or otherwise) in a cycle needs to be transferred to the surrounding in order that the change in entropy of the system is zero. There are two ways to transfer entropy between the system and the surroundings; heat and mass flow. Mass flow because entropy is a property of matter so if matter moves out of the system it takes its entropy with it. For a closed system (defined as one that does not permit mass transfer) that leaves only heat.
So for our example, any entropy generated in the system will increase the amount of heat rejected and lower the efficiency of the cycle.
Hope this helps.
ADDENDUM 2
This will respond to your following comment:
Why would that be the case? (that entropy transfer is heat or mass flow)
Chester Miller has given you a rigorous mathematical basis for irreversible processes generating entropy and reduction in efficiency. I will give a couple of examples to show that entropy generation (whether it involves work or not) in a cycle requires heat transfer to the surroundings even if the irreversible process itself does not involve heat transfer.
EXAMPLE 1 (irreversible adiabatic expansion not involving work):
A classic example of an irreversible process not involving heat transfer is the free adiabatic expansion of an ideal gas.
A rigid insulated chamber is partitioned into two equal parts. Half the chamber contains an ideal gas. The other half is a vacuum. An opening is created in the partition allowing the gas to freely expand into the evacuated half. Since the chamber is insulated, there is no heat transfer ($Q=0$). Since the expansion of the gas does not expand the boundaries of the chamber, there is no boundary work ($W=0$). Consequently, per the first law, the change in internal energy is zero ($\Delta U=0$). Being an ideal gas, where a change in internal energy depends only on a change in temperature, there is therefore no change in temperature.
The end result is the volume has doubled the pressure has halved and the temperature is unchanged.
Although no heat transfer has occurred, the process is obviously irreversible (you would not expect the gas to spontaneously return to its original half of the chamber). But we can determine the entropy generated by taking any convenient reversible process to return the gas to its initial conditions. The obvious choice here is to remove the insulation and perform a reversible isothermal compression. To do that requires heat transfer to the surroundings. That amount of heat represents “lost work”, that is, the work that could have been done if the free expansion of the gas was replaced by a reversible adiabatic expansion.
EXAMPLE 2 (an irreversible adiabatic expansion doing work):
This is a bit more complicated. It’s based on an exercise that Chester Miller and I are working on. I will summarize part of it without going into the details.
We have an insulated cylinder containing an ideal gas with a weighted piston sitting on top, so that the initial pressure on the gas is $P_{1}=10 atm$. Refer to curve 1 below. We suddenly remove weight so that the external pressure is halved, or $P_{2a}=5 atm$. This results in a non quasi-static (irreversible) adiabatic expansion against a constant external pressure. Using the ideal gas laws we can determine the final volume and temperature (point 2a) when equilibrium is reached, assuming the initial volumes and temperatures are as indicated for point 1. The work done is simply the external pressure times the change in volume.
We can compare the irreversible process to a reversible adiabatic expansion where the final pressure ends up being the same as the final pressure of the irreversible expansion. See curve 2 below. What we will find is the final volume and final temperature of the reversible adiabatic expansion (point 2 on the curve) is less than the irreversible expansion, and that the work done (area under the P-V graph) is greater than the irreversible expansion.
Now we wish to return the system that underwent the irreversible expansion (curve 1) to its original state to give us a complete cycle. To do this we can perform an isobaric (constant pressure) compression of the gas from point 2a to point 2 to decrease its volume and temperature to match the final volume at the end of the reversible expansion. This will put us back on the reversible adiabatic curve. But it will also require heat transfer out of the gas to the surroundings. Once again, that heat transfer will be the equivalent of the “lost work” of the irreversible process. We complete the process by now doing a reversible adiabatic compression from point 2 to 1 to return the system to its original state.
For both cases the end result of entropy generation is transfer of heat to the surroundings.
Hope these examples help.