[Defender Pro] Defender file reports

Hello friends

Defender has found 2 “suspicious files” in a theme & site template created for a group I belong to by someone else
Would someone be able to tell me please, whether either of these files needs to be removed? I think they’re probably OK, but I’m not good at that kind of judgement
______________________________________-
Issue Details
We’ve uncovered suspicious code in /var/web/staging/public_html/wp-content/plugins/magic-page/src/admin/installation.php. The red highlighted code is the flagged code and the green is the cleaned up code. Note that these warnings can be false positives, so consult your developer before taking action.

Error

public function save_database_chosen_country() {
if (current_user_can(‘administrator’:wink:) {
update_option(‘_magic_page_chosen_country_db_install’, $_POST[‘chosenCountry’]);

wp_send_json_success();
} else {
Location /var/web/staging/public_html/wp-content/plugins/magic-page/src/admin/installation.php
Size 53.90 KB
——————————————————-

Error
}

function valid_syntax($code) {
return @eval(‘return true;’.$code);
}

function a_import_options($file_var) {
Location /var/web/staging/public_html/wp-content/plugins/wp-freshstart5/lib/minify.php
Size 46.92 KB
=============================

Thanks in advance for the help
best wishes Patricia