How to have Function of a plugin using global vars into a shortcode?

add_shortcode('userpro_author_link', 'wpse_152910');
function wpse_152910( $attr ){
    if( ! is_singular() )
        return '';

    $post = get_post();
    global $userpro;
    $userpro->permalink( $post->post_author );
}

You will be using [userpro_author_link] on your post content to display this.