bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Function add_script_src defined at /code/wordpress-plugin/bitfire-admin.php:313 was previously defined at /code/custom-plugin/bitfire-plugin.php:174
Open

function add_script_src(string $handle, string $src, string $optional) : string {
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \wp_enqueue_scripts()
Open

        \wp_enqueue_scripts($handle, $src, [], "1.0", true);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_register_style("dashkit-prism", plugin_dir_url(__FILE__) . "public/prism.css", [], "1.0");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_enqueue_script("dashkit-theme", plugin_dir_url(__FILE__) . "public/theme.bundle.js", ["jquery"], "1.0", true);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \update_user_meta()
Open

        update_user_meta($user_id, "bitfire_mfa_code", $code);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \admin_url()
Open

    $url = admin_url("admin.php?page=bitfire");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \add_action()
Open

add_action("admin_notices", "\BitFirePlugin\alerts");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \add_action()
Open

add_action("activated_plugin", "BitFirePlugin\bitfire_plugin_check");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Possibly zero references to use statement for constant FILE_RW (\BitFire\FILE_RW)
Open

use const BitFire\FILE_RW;
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \update_user_meta()
Open

        update_user_meta($user_id, "bitfire_last_login", time() . ":" . $browser->os . ":" . $browser->browser . ":" . $browser->ver . ":" . $country . ":" . $ip);
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Returning type ?bool but tar_read_header() is declared to return ?\ThreadFin\TarHeader
Open

        return debugN("calc checksum failed (%s) [%d] / [%d]", $header->filename, $header->checksum, $data['checksum']);
Severity: Minor
Found in firewall/src/tar.php by phan

Expression may not be PHP 7 compatible
Open

                $this->$pname[] = $value;
Severity: Minor
Found in firewall/src/util.php by phan

Possibly zero references to use statement for constant FILE_R (\BitFire\FILE_R)
Open

use const BitFire\FILE_R;
Severity: Minor
Found in firewall/src/util.php by phan

Expected @param annotation for password to be before the @param annotation for text
Open

 * @param string $text the message to encrypt
Severity: Info
Found in firewall/src/util.php by phan

Call to undeclared method \RecursiveIteratorIterator::getSubPathname
Open

            copy($item, $dest . DIRECTORY_SEPARATOR . $iterator->getSubPathname());
Severity: Critical
Found in firewall/src/util.php by phan

Argument 2 (vars) is \BitFire\Entity|\BitFire\Malware but \sprintf() takes float|int|string
Open

        $line = str_replace(array("\r","\n",":"), array(" "," ",";"), @sprintf($fmt, ...$args));
Severity: Minor
Found in firewall/src/util.php by phan

Possible attempt to access missing magic method __invoke of '\ThreadFin\MaybeI'
Open

    $path = explode("\n", decrypt_ssl(sha1(CFG::str("encryption_key")), $in)());
Severity: Info
Found in firewall/src/util.php by phan

Argument 2 (vars) is \BitFire\Entity|\BitFire\Malware but \sprintf() takes float|int|string
Open

        $line = sprintf($fmt, ...$args);
Severity: Minor
Found in firewall/src/util.php by phan

Argument 3 (data) is string but \ThreadFin\http() takes array defined at /code/firewall/src/util.php:1648
Open

function httpp(string $path, $data, array $opts = [])  { return http("POST", $path, $data, $opts); }
Severity: Minor
Found in firewall/src/util.php by phan

Doc-block of $cipher in decrypt_ssl is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

 * @param string $cipher the message encrypted with encrypt_ssl
Severity: Minor
Found in firewall/src/util.php by phan
Severity
Category
Status
Source
Language