52% very-simple-password

Code Review | Very Simple Password for Wordpress

WordPress plugin Very Simple Password for Wordpress scored52%from 54 tests.

About plugin

  • Plugin page: very-simple-password
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2017
  • Latest release: Mar 6, 2017
  • Number of updates: 21
  • Update frequency: every 1.9 days
  • Top authors: lucasbustamante (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

400+ active /9,877 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.21MB] [CPU: ▼39.72ms] Passed 4 tests

A check of server-side resources used by Very Simple Password for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7120.93 ▼14.63
Dashboard /wp-admin2.81 ▼0.5319.83 ▼36.89
Posts /wp-admin/edit.php2.81 ▼0.5418.58 ▼32.65
Add New Post /wp-admin/post-new.php2.81 ▼3.0718.96 ▼72.68
Media Library /wp-admin/upload.php2.81 ▼0.4118.78 ▼16.67
Very Simple Password for Wordpress /wp-admin/options-general.php?page=very_simple_password_for_wordpress2.8117.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 22 new options
New tables
wp_vspfw
New WordPress options
vspfw_logo_url
vspfw_website_domain
vspfw_brute_force_protection_interval
VSPFW_db_version
vspfw_brute_force_protection_tries
theysaidso_admin_options
vspfw_default_logo_changed_once
vspfw_brute_force_protection_message
vspfw_background_image
vspfw_default_background_changed_once
...

Browser metrics Passed 4 tests

A check of browser resources used by Very Simple Password for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲17615.07 ▲0.651.79 ▼0.1942.52 ▲0.97
Dashboard /wp-admin2,353 ▲1656.44 ▲1.53127.08 ▲25.4236.95 ▼4.09
Posts /wp-admin/edit.php2,259 ▲1703.33 ▲1.2849.05 ▲13.3532.64 ▼1.11
Add New Post /wp-admin/post-new.php1,537 ▼523.10 ▲5.01638.54 ▲16.7635.49 ▼19.08
Media Library /wp-admin/upload.php1,401 ▲194.11 ▼0.1680.98 ▼15.3640.18 ▼5.62
Very Simple Password for Wordpress /wp-admin/options-general.php?page=very_simple_password_for_wordpress1,3533.0540.0265.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/very-simple-password/very-simple-password-for-wordpress.php+462
    Undefined index: vspfw_user_entered_password_wpnonce
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_vspfw
  • This plugin does not fully uninstall, leaving 22 options in the database
    • vspfw_brute_force_protection_interval
    • vspfw_background_image
    • vspfw_default_background_changed_once
    • can_compress_scripts
    • widget_recent-posts
    • vspfw_show_contact_info
    • vspfw_days
    • VSPFW_db_version
    • vspfw_submit
    • vspfw_brute_force_protection_message
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=very_simple_password_for_wordpress
    • > Notice in wp-content/plugins/very-simple-password/very-simple-password-for-wordpress.php+462
    Undefined index: vspfw_user_entered_password_wpnonce

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/very-simple-password/very-simple-password-for-wordpress.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/very-simple-password/VSPFW_view.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === very-simple-password === )
Please take inspiration from this readme.txt

very-simple-password/very-simple-password-for-wordpress.php 92% from 13 tests

"Very Simple Password for Wordpress" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("very-simple-password.php" instead of "very-simple-password-for-wordpress.php")

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
Success! There were no dangerous files found in this plugin570 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36769570

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/lock.png14.95KB5.28KB▼ 64.68%