93% pwd-wp-login

Code Review | PWD WP Login

WordPress plugin PWD WP Login scored 93% from 54 tests.

About plugin

  • Plugin page: pwd-wp-login
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.7
  • WordPress version: 5.8.1
  • First release: Feb 24, 2015
  • Latest release: Mar 5, 2021
  • Number of updates: 22
  • Update frequency: every 100.1 days
  • Top authors: Plateforme WP Digital (59.09%)NicolasKulka (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 10,402 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.63ms] Passed 4 tests

Server-side resources used by PWD WP Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0439.53 ▼3.04
Dashboard /wp-admin3.10 ▲0.0451.80 ▼1.94
Posts /wp-admin/edit.php3.15 ▲0.0450.40 ▼6.32
Add New Post /wp-admin/post-new.php5.45 ▲0.02100.71 ▼562.79
Media Library /wp-admin/upload.php3.04 ▲0.0436.63 ▼2.36

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for PWD WP Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲8615.67 ▼0.219.78 ▲1.0946.76 ▼8.92
Dashboard /wp-admin2,970 ▲425.97 ▼0.02145.94 ▼30.25110.51 ▼13.16
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0274.36 ▼1.1489.07 ▼12.08
Add New Post /wp-admin/post-new.php1,615 ▼6821.29 ▲2.60322.28 ▼103.77111.50 ▼8.54
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.02171.31 ▼8.98130.56 ▲6.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pwd-wp-login/pwd-wp-login.php

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

pwd-wp-login/pwd-wp-login.php 85% from 13 tests

The main PHP script in "PWD WP Login" version 1.5.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected811 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File7197223528

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods583.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin