bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Doc-block of standalone_to_wordpress contains declared return type \ThreadFin\Effect which is incompatible with the return type void declared in the signature
Open

 * @return Effect
Severity: Minor
Found in firewall/src/server.php by phan

Argument 1 (shm_identifier) is false but \shm_remove() takes resource
Open

        @shm_remove(self::$ctx);
Severity: Minor
Found in firewall/src/shmop.php by phan

Reference to undeclared constant \DB_HOST
Open

        $credentials = new Credentials(DB_USER, DB_PASSWORD, DB_HOST, DB_NAME);
Severity: Minor
Found in firewall/src/wordpress.php by phan

Variable $uuid is undeclared
Open

let e=window.event; let data={"uuid":'<?php echo $uuid;?>',"x":e.clientX,"y":e.clientY}; console.log(data);
Severity: Minor
Found in firewall/views/block.php by phan

Reference to undeclared constant \XHPROF_FLAGS_MEMORY
Open

    xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
Severity: Minor
Found in startup.php by phan

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

use function ThreadFin\partial_right as BINDR;
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

Function add_script_inline defined at /code/wordpress-plugin/bitfire-admin.php:320 was previously defined at /code/custom-plugin/bitfire-plugin.php:178
Open

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

Call to undeclared function \plugin_dir_url()
Open

        \wp_enqueue_script("bitfire", plugin_dir_url(__FILE__) . "public/plugin-monitor.js", "1.0", false);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \wp_enqueue_script()
Open

        \wp_enqueue_script("bitfire", plugin_dir_url(__FILE__) . "public/plugin-monitor.js", "1.0", false);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

When fetching an array index from a value of type array|array<int default auth verification to off>|array<int>|array<int false>|array<int>&gt;|array<int>,</int></int></int></int></int> found an array index of type 'malware', but expected the index to be of type int
Open

            echo "<div style='border-left: 5px solid #d63638; padding-left: 1rem;'><span class='dashicons dashicons-warning'></span> Malware Scan: <a href='$url' style='float:right'>{$malware_data['malware']} possible malware files detected </a></div>";
Severity: Minor
Found in wordpress-plugin/bitfire-admin.php by phan

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

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

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

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

Call to undeclared function \get_current_user_id()
Open

        $my_id = get_current_user_id();
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Function activate_bitfire defined at /code/wordpress-plugin/bitfire-plugin.php:218 was previously defined at /code/custom-plugin/bitfire-plugin.php:204
Open

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

Reference to undeclared constant \WP_CONTENT_DIR
Open

    if (defined('WP_CONTENT_DIR') && file_exists('WP_CONTENT_DIR') && !file_exists(WP_CONTENT_DIR . "/bitfire")) {
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan

Function deactivate_bitfire defined at /code/wordpress-plugin/bitfire-plugin.php:287 was previously defined at /code/custom-plugin/bitfire-plugin.php:228
Open

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

Call to undeclared function \esc_url()
Open

            esc_url($_GET["redirect_to"])),
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \esc_attr()
Open

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

Call to undeclared function \login_footer()
Open

    echo \login_footer("bitfire_mfa");
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

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

 * @param array<string> $caps 
Severity: Minor
Found in wordpress-plugin/bitfire-plugin.php by phan
Severity
Category
Status
Source
Language