So there is one very useless and memory hungry function which logs every visitor IP for I don't know what reason. By deleting that function you will free up a lot of space.

1. In functions.php find:
guestadd();
Replace with
htmlspecialchars($title);

2. Stil in functions.php find
function guestadd() {
   $ip = $_SERVER['REMOTE_ADDR'];
   $time = gmtime();
   SQL_Query_exec("INSERT INTO `guests` (`ip`, `time`) VALUES ('$ip', '$time') ON DUPLICATE KEY UPDATE `time` = '$time'");
}
                             
function getguests() {
   $past = (gmtime() - 2400);
   SQL_Query_exec("DELETE FROM `guests` WHERE `time` < $past");
   return get_row_count("guests");
}

and remove it.

3. In SQL you can run a query to remove all logged guests IPs.
DROP TABLE guests;