Would you trust this fan? Do you know how can I tell if it's secure?

I can't see how the canopy is attached to the ceiling. No screws are visible.

I pushed up on the rod, and the ball nestled into place a centimeter higher than it was before. Something seems fishy about that.

I removed the canopy and looked under the hood.
Video clip: https://streamable.com/gyucdv
Note the frayed wire.


Two screws, connecting the socket to something above it, were loose. I tightened them as much as I could. (This took 50+ turns of the screwdriver each. They were very loose.)
The socket and canopy are now flush with the ceiling.

However, the fan still wobbles and rattles.