68% security-malware-firewall

Code Review | Security & Malware scan by CleanTalk

WordPress plugin Security & Malware scan by CleanTalk scored68%from 54 tests.

About plugin

  • Plugin page: security-malware-...
  • Plugin version: 2.123
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 24, 2016
  • Latest release: Nov 20, 2023
  • Number of updates: 1,234
  • Update frequency: every 2.1 days
  • Top authors: Safronik (68.48%)shagimuratov (18.23%)glomberg (6.16%)sartemd174 (2.92%)artemacleantalk (2.43%)

Code review

54 tests

User reviews

275 reviews

Install metrics

20,000+ active /1,034,367 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.40MB] [CPU: ▲12.80ms] Passed 4 tests

An overview of server-side resources used by Security & Malware scan by CleanTalk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1844.11 ▲3.49
Dashboard /wp-admin3.78 ▲0.4863.61 ▲8.72
Posts /wp-admin/edit.php3.82 ▲0.4767.05 ▲20.16
Add New Post /wp-admin/post-new.php6.37 ▲0.49115.15 ▲24.52
Media Library /wp-admin/upload.php3.70 ▲0.4755.34 ▲18.82
Security by CleanTalk /wp-admin/options-general.php?page=spbc4.5659.95

Server storage [IO: ▲7.22MB] [DB: ▲0.03MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.58KB) outside of "wp-content/plugins/security-malware-firewall/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/0security-malware-firewall-mu.php
Filesystem: 950 new files
Database: 19 new tables, 10 new options
New tables
wp_spbc_bfp_blocked
wp_spbc_backuped_files
wp_spbc_sessions
wp_spbc_traffic_control_logs
wp_spbc_scan_signatures
wp_spbc_auth_logs
wp_spbc_important_files
wp_spbc_scan_results
wp_spbc_monitoring_users
wp_spbc_firewall_data
...
New WordPress options
spbc_counter__security
spbc_data
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
spbc_cron_last_start
spbc_cron
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Security & Malware scan by CleanTalk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,204 ▲45714.97 ▲0.654.74 ▲3.0439.77 ▼4.08
Dashboard /wp-admin2,503 ▲3236.39 ▲0.74141.27 ▲43.5194.46 ▲47.62
Posts /wp-admin/edit.php2,331 ▲2312.06 ▲0.0947.68 ▲6.6137.51 ▲1.15
Add New Post /wp-admin/post-new.php1,743 ▲21723.06 ▼0.51665.80 ▼13.8054.13 ▲7.63
Media Library /wp-admin/upload.php1,627 ▲2274.24 ▲0.03103.54 ▲2.2043.01 ▼2.52
Security by CleanTalk /wp-admin/options-general.php?page=spbc2,3103.2684.9766.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.34MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 19 tables
    • wp_spbc_monitoring_users
    • wp_spbc_sessions
    • wp_spbc_backuped_files
    • wp_spbc_firewall_data
    • wp_spbc_important_files
    • wp_spbc_firewall_logs
    • wp_spbc_scan_links_logs
    • wp_spbc_firewall__personal_countries
    • wp_spbc_cure_log
    • wp_spbc_scan_signatures
    • ...
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • spbc_cron
    • spbc_counter__security
    • spbc_data
    • widget_recent-posts
    • db_upgraded
    • spbc_cron_id
    • theysaidso_admin_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/textarea.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/radio.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/hidden.php
    • > /wp-content/plugins/security-malware-firewall/security-malware-firewall.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/select.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/checkbox.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/number.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/time.php
    • > /wp-content/plugins/security-malware-firewall/install/security-malware-firewall-mu.php
    • > /wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/text.php
  • 208× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/number.php on line 22
    • > PHP Fatal error
      Trait 'CleantalkSP\\Templates\\Singleton' not found in wp-content/plugins/security-malware-firewall/lib/CleantalkSP/Common/Helpers/HTTP.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'CleantalkSP\\SpbctWP\\AdminBannersModule\\AdminBanners\\AdminBannerAbstract' not found in wp-content/plugins/security-malware-firewall/lib/CleantalkSP/SpbctWP/AdminBannersModule/AdminBanners/AdminBannerRenew.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/text.php on line 17
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/text.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/time.php on line 7
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/textarea.php on line 25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/checkbox.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'CleantalkSP\\SpbctWP\\Scanner\\ScanningStagesModule\\Stages\\ScanningStageAbstract' not found in wp-content/plugins/security-malware-firewall/lib/CleantalkSP/SpbctWP/Scanner/ScanningStagesModule/Stages/GetDeniedHashes.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/security-malware-firewall/inc/admin-templates/field-templates/text.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: firewall, malware, brute force, security, wordpress security

security-malware-firewall/security-malware-firewall.php 92% from 13 tests

"Security & Malware scan by CleanTalk" version 2.123's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected45,699 lines of code in 891 files:
LanguageFilesBlank linesComment linesLines of code
PHP2035,7138,50931,684
JavaScript4087602,39611,123
PO File13173311,003
Markdown61290636
CSS2571081,233585
JSON800245
HTML173147
SVG11140126
XML51014123
YAML17027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity19.99
▷ Minimum class complexity1.00
▷ Maximum class complexity342.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces40
Interfaces1
Traits2
Classes159
▷ Abstract classes106.29%
▷ Concrete classes14993.71%
▷ Final classes10.67%
Methods1,116
▷ Static methods43238.71%
▷ Public methods91782.17%
▷ Protected methods1019.05%
▷ Private methods988.78%
Functions304
▷ Named functions27791.12%
▷ Anonymous functions278.88%
Constants86
▷ Global constants5867.44%
▷ Class constants2832.56%
▷ Public constants28100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/att_triangle.png0.54KB0.49KB▼ 8.99%
images/yes.png0.56KB0.55KB▼ 1.91%
js/lib/highlight/styles/brown-papersq.png17.77KB9.92KB▼ 44.16%
images/logo_small.png6.40KB2.49KB▼ 61.14%
css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%