Through three games, the 49ers have one of the worst offenses in the NFL.

It ranks 24th out of 32 teams in yards gained, and 28th in points scored. Quite a surprise, considering the 49ers offense performed well last season, and most of the players are still here.

One key person is gone, though -- former offensive coordinator Mike McDaniel. He now is the head coach of the Miami Dolphins, who are 3-0, and whose offense currently ranks 13th in yards and 8th in points.

What exactly did McDaniel do for the 49ers the past five seasons, and why has his absence hurt the 49ers offense so much?

Joe Staley explained McDaniel's role on the team last year on a podcast with Rob Guerrera, who's part of the Niners Nation Podcast Network:

"He is the Wizard of Oz for the run game," Staley said of McDaniel. "And not just the run game -- the offense. His genius comes in the construction of the plays, utilizing different players' skill sets in different situations. Kyle is an unbelievable play caller. He can piece everything together really quickly and understand the overall concept, whereas Mike McDaniel is the one who's making the picture. He's the artist that's constructing this jigsaw puzzle, and then gives it to Kyle and says, 'You're welcome.'"

Translation: McDaniel designed the plays, and Shanahan called them. Which means this season, Shanahan has an inferior menu of plays to choose from, because McDaniel is gone.

I always considered Shanahan an elite play designer, but an inconsistent play caller -- see his collapses in two Super Bowls and last season's NFC Championship. Now it seems like he isn't even an elite play designer -- McDaniel is.

So what does Shanahan do well?

I guess we'll find out as this season unfolds.

More must-reads:

TODAY'S BEST
Oilers star will be game-time decision for Game 2
Former MLB infielder Sean Burroughs dies at 43 years old
Angels superstar explains why he chose not to play through knee injury
Cardinals catcher's injury timeline revealed
Suns hire ex-NBA champion as new head coach
Frank Vogel fell victim to a Suns ownership group eager to win
Luka Doncic hands OKC first playoff loss with gutsy Game 2 effort
Three takeaways as Rangers take commanding 3-0 series lead on Hurricanes
Rams make surprising move with former team captain
Ohio State AD is wrong for thinking Michigan wins deserve asterisk
Padres OF Jurickson Profar is a legitimate MVP candidate
Steelers' Cameron Heyward comments on controversial Justin Fields idea
Pacers coach claims officials are biased against 'small market' teams
14-year-old phenom signs unprecedented MLS deal that includes future Man City transfer
Tiger Woods, Rory McIlroy's 'soured' relationship paints murky future for PGA Tour
Stars almost blow another lead, even series with Avalanche
Auburn's Hugh Freeze uncomfortable with 'bidding wars' for top players in transfer portal
Cavaliers punch back, blow out Celtics in Game 2
Coach: Oilers star center could miss Game 2 vs. Canucks
Watch: Cavaliers' Evan Mobley turns defense into offense in Game 2 vs. Celtics

Want more sports news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.