What is the global $wp object used for?

In the wordpress documentation for Global Variables, I did not find information about the $wp global variable.

I found a plugin which declares the global $wp variable as follows:

But this variable is never used inside the declared function, so I wonder what is going on.

The entire function can be found here (links to the exact line in the GitHub WordPress Frontend Profile plugin)