bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Possibly zero references to use statement for function ThreadFinCuckoo_write (\ThreadFin\cuckoo_write)
Open

use function ThreadFin\cuckoo_write as ThreadFinCuckoo_write;
Severity: Minor
Found in firewall/src/cuckoo.php by phan

Call to method close from undeclared class \mysqli
Open

        if ($this->_db) { $this->_db->close(); }
Severity: Critical
Found in firewall/src/db.php by phan

Reference to undeclared constant \MYSQLI_ASSOC
Open

    protected function _qr(string $sql, $mode = MYSQLI_ASSOC) : SQL {
Severity: Minor
Found in firewall/src/db.php by phan

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

        $c = http($method, $url, $data, $optional_headers);
Severity: Minor
Found in firewall/src/util.php by phan

Argument 3 (expires) is array{expires:int,path:'/',domain:'',secure:false,httponly:true,samesite:'strict'} but \setcookie() takes int
Open

            'expires' => time() + $exp,
Severity: Minor
Found in firewall/src/util.php by phan

Argument 2 (user_string) is ?string but \hash_equals() takes string
Open

            if (hash_equals($hash, $data->at("hmac"))) { debug("db key wp match [%s]", $name); return true; }
Severity: Minor
Found in firewall/src/wordpress.php by phan

Variable $custom_err is undeclared
Open

<p class="nor"><?php echo $custom_err?></p>
Severity: Minor
Found in firewall/views/block.php by phan

Possibly zero references to use statement for function serve_dashboard (\BitFire\serve_dashboard)
Open

use function BitFire\serve_dashboard;
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

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

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

Call to undeclared function \current_user_can()
Open

    $x = (current_user_can("unfiltered_html")) ? 2 : 0;
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \add_submenu_page()
Open

    \add_submenu_page(
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_register_script("dashkit-vendor", plugin_dir_url(__FILE__) . "public/vendor.bundle.js", ["jquery"], "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-vs2015", plugin_dir_url(__FILE__) . "public/vs2015.min.css", [], "1.0");
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \esc_attr()
Open

            esc_attr($_POST["redirect_to"]));
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Function version_from_path defined at /code/wordpress-plugin/includes.php:242 was previously defined at /code/custom-plugin/includes.php:203
Open

function version_from_path(string $path, string $default_ver = "0.1") {
Severity: Minor
Found in wordpress-plugin/includes.php by phan

Call to undeclared function \plugin_dir_path()
Open

        \ThreadFin\file_recurse(plugin_dir_path(__FILE__), \ThreadFin\partial_right('chmod', FILE_EX));
Severity: Critical
Found in wordpress-plugin/uninstall.php by phan

Saw an @param annotation for timeout, but it was not found in the param list of function http(string $method, string $path, array $data, ?array $optional_headers = null) : string;
Open

 * @param integer $timeout the HTTP read timeout in seconds, default is 5 seconds
Severity: Info
Found in firewall/src/util.php by phan

Possibly zero references to use statement for classlike/namespace Effect (\ThreadFin\Effect)
Open

use ThreadFin\Effect;
Severity: Minor
Found in recovery.php by phan

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

use const BitFire\WAF_SRC;
Severity: Minor
Found in recovery.php by phan

Possibly zero references to use statement for function serve_advanced (\BitFire\serve_advanced)
Open

use function BitFire\serve_advanced;
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan
Severity
Category
Status
Source
Language