How can replace this url

Do you mean you want to create a php string that will output the first code example?
If yes than you can do this

echo '<td><a href="' . $this->get_user_link($user->ID) . '">' . esc_html__('View Profile', 'wpuf-pro' ) . '</a></td>';