83% password-for-wp

Code Review | Password for WP

WordPress plugin Password for WP scored83%from 54 tests.

About plugin

  • Plugin page: password-for-wp
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Feb 21, 2020
  • Latest release: Dec 8, 2022
  • Number of updates: 41
  • Update frequency: every 27.1 days
  • Top authors: get3code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.35ms] Passed 4 tests

Server-side resources used by Password for WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.24 ▲5.65
Dashboard /wp-admin3.35 ▲0.0448.68 ▲1.34
Posts /wp-admin/edit.php3.40 ▲0.0445.01 ▲1.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0698.19 ▲11.13
Media Library /wp-admin/upload.php3.27 ▲0.0434.20 ▼3.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Password for WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.76 ▼0.632.20 ▲0.2744.30 ▲0.28
Dashboard /wp-admin2,257 ▲755.08 ▼0.02115.01 ▲10.8845.92 ▲0.39
Posts /wp-admin/edit.php2,142 ▲502.32 ▲0.3340.54 ▲3.2934.94 ▲2.31
Add New Post /wp-admin/post-new.php1,547 ▲2623.25 ▲0.18619.77 ▼80.7736.82 ▼22.87
Media Library /wp-admin/upload.php1,430 ▲424.50 ▲0.3597.34 ▼6.8540.87 ▼6.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/password-for-wp/parts/get3-login.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/password-for-wp/get3-password-wp.php:157

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #3 in password-for-wp/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === password-for-wp === )
Please take inspiration from this readme.txt

password-for-wp/get3-password-wp.php 92% from 13 tests

The main file in "Password for WP" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("password-for-wp.php" instead of "get3-password-wp.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
There were no executable files found in this plugin720 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS280244
PO File47280227
PHP23310216
Markdown115029
JavaScript1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions10
▷ Named functions10100.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
No PNG images were found in this plugin