Is dumb as a box of rocks an example of a synecdoche?

No, it's a simile. An example of a synechdoche would be "All hands on deck," except in those rare cases when one is playing bridge on the deck of a ship and you want everyone to put all of their cards down.