I did the same a couple of years ago.
The reason for the hard-wire install was because when sailing with my 3-yr old granddaughter, she got fascinated by the pretty red and black knobs on the back. They were sized just right for curious little fingers, and she managed to get the red one off and found a shiny silver ring terminal. It just seemed like the right thing to do to move that ring over to the black to see if it would fit.

At the time, I was in the middle of enjoying some "quality time" in the head compartment when I hear a lightning bolt, screams all around and the yell "FIRE!" Needless to say, everyone saw more than they should have

as I bolted out of the head. Did I mention that the alligator clips were connected directly to a Lifeline 4D?
What I found was a crying granddaughter, a screaming wife and a cabin full of smoke, and the smoldering charred remains of two wires disappearing under sittee cushion. The ring terminal had welded itself to the post and then both wires went white hot and vaporized. Fortunately, nobody got burned and nothing was actually on fire although the cabin was full of smoke and the sittee cushion now had a fashionable 1" deep black groove burned into the face.
It is now properly installed with nuts and lock washers and 8-AWG wire which is protected with a 40A fuse. I mounted the unit to the underside of my chart table using nylon standoff sleeves and fender washers that fit into the outermost cooling fins at four locations which held it quite well. It is standalone and does not have any AC connection to the boat which eliminates all of the grounding issues. The only output is the two built-in plugs on the face.