84% vpn-leaks-test

Code Review | VPN leaks test

WordPress plugin VPN leaks test scored 84% from 54 tests.

About plugin

  • Plugin page: vpn-leaks-test
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: May 31, 2021
  • Number of updates: 6
  • Update frequency: every 62.5 days
  • Top authors: macvk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.33ms] Passed 4 tests

An overview of server-side resources used by VPN leaks test
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.47 ▲3.07
Dashboard /wp-admin3.45 ▲0.1547.47 ▼0.91
Posts /wp-admin/edit.php3.56 ▲0.2145.94 ▼9.65
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.39 ▼6.32
Media Library /wp-admin/upload.php3.37 ▲0.1435.20 ▼0.42
VPN leaks test /wp-admin/options-general.php?page=vltp-admin-page3.3736.85

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 212 new files
Database: 1 new table, 6 new options
New tables
wp_vltp
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for VPN leaks test
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.031.82 ▲0.0945.46 ▼2.41
Dashboard /wp-admin2,213 ▲225.91 ▲0.09102.54 ▼8.1841.13 ▼11.97
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0533.44 ▼3.3434.76 ▼0.77
Add New Post /wp-admin/post-new.php1,536 ▲1723.12 ▼0.05588.51 ▼82.3148.77 ▼10.91
Media Library /wp-admin/upload.php1,383 ▼54.22 ▼0.00102.93 ▲6.3843.72 ▼2.26
VPN leaks test /wp-admin/options-general.php?page=vltp-admin-page1,0663.1837.8424.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vpn-leaks-test/vltp-init-admin.php
    • > /wp-content/plugins/vpn-leaks-test/vltp-init.php
    • > /wp-content/plugins/vpn-leaks-test/vpn-leaks-test.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: security, admin

vpn-leaks-test/vpn-leaks-test.php 92% from 13 tests

The entry point to "VPN leaks test" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,032 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8204187650
JavaScript210424283
CSS221099

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
196 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/flags/tl.png0.29KB0.33KB0.00%
include/flags/mw.png0.25KB0.26KB0.00%
include/flags/vn.png0.26KB0.27KB0.00%
include/flags/kn.png0.37KB0.37KB0.00%
include/flags/bt.png0.67KB0.80KB0.00%