10% vigilantor

Code Review | VigilanTor

WordPress plugin VigilanTor scored10%from 54 tests.

About plugin

  • Plugin page: vigilantor
  • Plugin version: 1.3.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2015
  • Latest release: Oct 19, 2023
  • Number of updates: 63
  • Update frequency: every 46.3 days
  • Top authors: drew010 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

700+ active /9,190 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/vigilantor/vigilantor.php+34
    Undefined variable: wp_version

Server metrics [RAM: ▲0.26MB] [CPU: ▲2.26ms] Passed 4 tests

Server-side resources used by VigilanTor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2741.98 ▲3.87
Dashboard /wp-admin3.57 ▲0.2647.54 ▼1.04
Posts /wp-admin/edit.php3.68 ▲0.3253.37 ▲6.49
Add New Post /wp-admin/post-new.php6.15 ▲0.2695.29 ▼0.05
Media Library /wp-admin/upload.php3.49 ▲0.2639.78 ▲6.24
VigilanTor Settings /wp-admin/options-general.php?page=vigilantor3.8041.85

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
vitor_exit_list
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
vitor_exit_list_last_updated
db_upgraded

Browser metrics Passed 4 tests

VigilanTor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.121.53 ▼0.0735.92 ▼5.02
Dashboard /wp-admin2,202 ▲275.62 ▲0.0190.47 ▼4.3741.76 ▼0.87
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0639.69 ▲3.1736.86 ▲3.84
Add New Post /wp-admin/post-new.php1,529 ▲123.85 ▲0.94646.73 ▼26.7153.36 ▼7.29
Media Library /wp-admin/upload.php1,404 ▲44.10 ▼0.07101.38 ▲0.9145.11 ▼2.01
VigilanTor Settings /wp-admin/options-general.php?page=vigilantor1,3321.6926.2350.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • vitor_exit_list_last_updated
    • vitor_exit_list

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vigilantor/vigilantor.php:32

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: registration, block, comments, security, spam...

vigilantor/vigilantor.php Passed 13 tests

The main PHP file in "VigilanTor" ver. 1.3.12 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Provides protections from Tor users visiting your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,579 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63172621,579

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity101.50
▷ Minimum class complexity39.00
▷ Maximum class complexity164.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods64
▷ Static methods69.38%
▷ Public methods3960.94%
▷ Protected methods23.12%
▷ Private methods2335.94%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected