Guitar, if it's for matching one nick mode, I'll just use the isop operator instead of the $nick(#,$nick,o)
$nick(#,$nick,[user mode here]) is good for match multiple nick modes at the same time. Compared to all of your examples, my initial example only has one if statement.
Furthermore,
on *:TEXT:#:{
if ($me isop $chan) {
Can just be:
on @*:TEXT:#:{