Refrigerator intermittently making loud clicks with compressor banging and shaking
That loud click is probably an overloaded compressor relay. When compressor components start going bad it can cause all kinds of issues. You can do some reasonably priced troubleshooting by installing a Hard-Start Kit. Here is a link to a video that shows in more detail how to install it.