bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Suspicious type bool of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

    trace("file2:".count($files).":".$block->empty());
Severity: Minor
Found in firewall/src/webfilter.php by phan

Call to undeclared function \plugin_dir_url()
Open

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

Call to undeclared function \get_user_meta()
Open

            $mfa = get_user_meta($user_id, "bitfire_mfa_tel", true);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

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

use function ThreadFin\find_const_arr;
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Function find_cms_root defined at /code/wordpress-plugin/bitfire-plugin.php:177 was previously defined at /code/custom-plugin/bitfire-plugin.php:166
Open

function find_cms_root() : ?string {
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \get_home_path()
Open

    if (function_exists('get_home_path')) { trace("HOME_PATH"); $root = \get_home_path(); }
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \esc_html()
Open

    echo \login_header("MFA Code Required", "<p class='message'>".esc_html($msg)."</p>");
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \login_header()
Open

    echo \login_header("MFA Code Required", "<p class='message'>".esc_html($msg)."</p>");
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Parameter $user has undeclared type \WP_User
Open

function check_user_cap(?array $all_caps = null, ?array $caps = null, ?array $args = null, $user = null) : array {
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan
Severity
Category
Status
Source
Language