73% block-wpscan

Code Review | block-wpscan

WordPress plugin block-wpscan scored73%from 54 tests.

About plugin

  • Plugin page: block-wpscan
  • Plugin version: 0.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Jan 14, 2017
  • Number of updates: 47
  • Update frequency: every 6.7 days
  • Top authors: aihgsdhaaaa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,022 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.12MB] [CPU: ▼41.55ms] Passed 4 tests

A check of server-side resources used by block-wpscan
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6117.74 ▼21.43
Dashboard /wp-admin2.90 ▼0.4118.41 ▼26.57
Posts /wp-admin/edit.php2.90 ▼0.4617.33 ▼34.11
Add New Post /wp-admin/post-new.php2.90 ▼2.9917.98 ▼84.10
Media Library /wp-admin/upload.php2.90 ▼0.3319.73 ▼10.63

Server storage [IO: ▲9.20MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/block-wpscan/" and "wp-content/uploads/"
    • (new file) wp-content/block-wpscan/cache_status
Filesystem: 96 new files
Database: no new tables, 8 new options
New WordPress options
ownserverip
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
curl_extension

Browser metrics Passed 4 tests

Checking browser requirements for block-wpscan
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.16 ▼1.421.72 ▼0.0333.14 ▼18.05
Dashboard /wp-admin2,235 ▲475.79 ▼0.09105.29 ▲0.1375.97 ▲32.08
Posts /wp-admin/edit.php2,115 ▲261.99 ▼0.0737.60 ▲1.1037.94 ▲3.96
Add New Post /wp-admin/post-new.php1,691 ▲16922.43 ▼1.13608.06 ▼67.7440.55 ▼13.18
Media Library /wp-admin/upload.php1,414 ▲234.23 ▲0.0099.89 ▼3.0173.25 ▲26.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/block-wpscan/block-wpscan.php+826
    Undefined index: HTTP_ACCEPT_LANGUAGE
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • curl_extension
    • db_upgraded
    • can_compress_scripts
    • ownserverip
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/block-wpscan/assets/securimage/example_form.php
    • > /wp-content/plugins/block-wpscan/assets/securimage/securimage_play.php
    • > /wp-content/plugins/block-wpscan/assets/securimage/securimage_show.php
    • > /wp-content/plugins/block-wpscan/block-wpscan.php
    • > /wp-content/plugins/block-wpscan/assets/securimage/example_form.ajax.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (block wpscan) image not found
The official readme.txt is a good inspiration

block-wpscan/block-wpscan.php Passed 13 tests

This is the main PHP file of "block-wpscan" version 0.7.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
121 characters long description:
This plugin block wpscan, Proxy and Tor. * If you using cache plugin or cache system, this plugin doesn't run properly. *

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,630 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,0522,0523,882
JavaScript55433330
Markdown1690175
PO File13592121
HTML2262982
CSS11040

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity123.80
▷ Minimum class complexity1.00
▷ Maximum class complexity360.00
Average method complexity5.95
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods124
▷ Static methods97.26%
▷ Public methods7358.87%
▷ Protected methods5141.13%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants00.00%
▷ Class constants46100.00%
▷ Public constants46100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.59MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png20.70KB0.30KB▼ 98.53%
assets/securimage/images/audio_icon.png1.64KB2.04KB0.00%
assets/images/icon-256x256.png529.88KB2.20KB▼ 99.59%
assets/securimage/backgrounds/bg6.png41.88KB29.04KB▼ 30.64%
assets/securimage/images/loading.png1.11KB1.10KB0.44%