bitslip6/bitfire

View on GitHub

Showing 749 of 749 total issues

Doc-block of $name in path_to_source 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 $name 
Severity: Minor
Found in wordpress-plugin/includes.php by phan

Returning type bool but http() is declared to return string
Open

        return debugF("http_resp [%s] fail", $path);
Severity: Minor
Found in firewall/src/util.php by phan

Reference to undeclared constant \XHPROF_FLAGS_CPU
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 serve_settings (\BitFire\serve_settings)
Open

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

Call to undeclared function \content_url()
Open

        update_ini_value("cms_content_url", \content_url())->run();
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \wp_add_inline_script()
Open

    \wp_add_inline_script($handle, $code);
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

Call to undeclared function \plugin_dir_url()
Open

    \wp_register_script("dashkit-diff", plugin_dir_url(__FILE__) . "public/difflib.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_script("dashkit-underscore", plugin_dir_url(__FILE__) . "public/underscore.min.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("dashkit", plugin_dir_url(__FILE__) . "public/dashkit.min.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_enqueue_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 \wp_enqueue_style()
Open

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

Call to undeclared function \wp_add_dashboard_widget()
Open

    wp_add_dashboard_widget('custom_help_widget', 'BitFire Security Notices', 'BitFirePlugin\dashboard_content');
Severity: Critical
Found in wordpress-plugin/bitfire-admin.php by phan

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

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

Call to undeclared function \BitFirePRO\wp_render_user_form()
Open

        function mfa_field($user) { echo \BitFirePRO\wp_render_user_form($user); }
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \register_deactivation_hook()
Open

\register_deactivation_hook(__FILE__, 'BitFirePlugin\deactivate_bitfire');
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Call to undeclared function \BitFirePRO\wp_requirement_check()
Open

if (function_exists('BitFirePRO\wp_requirement_check') && !wp_requirement_check()) {
Severity: Critical
Found in wordpress-plugin/bitfire-plugin.php by phan

Function file_type defined at /code/wordpress-plugin/includes.php:49 was previously defined at /code/custom-plugin/includes.php:55
Open

function file_type(string $path) : string {
Severity: Minor
Found in wordpress-plugin/includes.php by phan

Function path_to_source defined at /code/wordpress-plugin/includes.php:104 was previously defined at /code/custom-plugin/includes.php:92
Open

function path_to_source(string $rel_path, string $type, string $ver, ?string $name=null) : string {
Severity: Minor
Found in wordpress-plugin/includes.php by phan

Call to undeclared function \wp_mail()
Open

    \wp_mail(CFG::str("email"), $subject, $message);
Severity: Critical
Found in wordpress-plugin/includes.php by phan

Argument 1 (data) is ?array but \ThreadFin\uncompress() takes array defined at /code/firewall/src/util.php:2335
Open

    $result = un_json(uncompress($decoded));
Severity: Minor
Found in firewall/src/cms.php by phan
Severity
Category
Status
Source
Language