A few things that help make these secure:
1. More rotors. SIGABA has 5 cipher rotors, while Fialka has 10.
2. Irregular stepping, instead of odometer-style stepping.
3. A letter can encrypt to itself.
4. Better operational protocols.
And what nazi germany could have done back then, to not have it broken would have been very simple: not using prussian style of communication, meaning all the messages followed a certain pattern with certain keywords. Since the british knew those keywords and pattern, they had something of an angle to break it. (Parts of it are covered in the article)
Or of course use another layer of encryption (but that requires a simple redesign) which would have made the decryption not useful in a timely manner.
1. Weather reports that were encrypted with Enigma for the High Command and then sent again encrypted with a much weaker cipher for (if I recall correctly) merchant fleet.
2. “Keine besondere Nachrichten” or “Keine besondere Ereignesse” - depending on sources. It means “no important news” or “no important events”.
3. “Heil Hitler” at the end of the message. This one is maybe an anecdote. If something like that would be sent I suspect the radio operators would send “HH” at most.
Better training for the operators would also have helped, e.g. don't start every message with "Heil Hitler". Some of the services were much better than the others IIRC.
The Luftwaffe were far more lax in their procedures, and Hermann Goring sent many trivial messages that made it easy for Bletchley Park to decrypt.[1] From early 1940 to the end of the war, air force messages were routinely read.
[1] From https://en.wikipedia.org/wiki/Cryptanalysis_of_the_Enigma: "Luftwaffe chief Hermann Göring was known to use it for trivial communications, including informing squadron commanders to make sure the pilots he was going to decorate had been properly deloused."