83% dwp-loginizer

Code Review | DWP Loginizer

WordPress plugin DWP Loginizer scored 83% from 54 tests.

About plugin

  • Plugin page: dwp-loginizer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 5.8.1
  • First release: Jul 23, 2016
  • Latest release: Jul 23, 2016
  • Number of updates: 22
  • Update frequency: N/A
  • Top authors: demospalana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 845 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼142.22ms] Passed 4 tests

An overview of server-side resources used by DWP Loginizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2637.29 ▲16.33
Dashboard /wp-admin3.33 ▲0.2851.85 ▲4.44
Posts /wp-admin/edit.php3.38 ▲0.2751.50 ▲4.49
Add New Post /wp-admin/post-new.php5.60 ▲0.1789.18 ▼577.03
Media Library /wp-admin/upload.php3.19 ▲0.1833.62 ▼0.78
DWP Loginizer /wp-admin/options-general.php?page=dwp-loginizer3.1935.38

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by DWP Loginizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,060 ▲46418.63 ▲3.0114.37 ▲5.1846.51 ▲1.83
Dashboard /wp-admin3,225 ▲2947.95 ▲1.77186.49 ▲40.49139.08 ▲33.92
Posts /wp-admin/edit.php3,013 ▲2744.48 ▲1.7892.01 ▲25.1191.39 ▲4.74
Add New Post /wp-admin/post-new.php1,632 ▲1718.62 ▼2.81366.88 ▲72.2648.33 ▼52.85
Media Library /wp-admin/upload.php1,859 ▲525.45 ▲0.43130.32 ▼20.77117.89 ▲8.66
DWP Loginizer /wp-admin/options-general.php?page=dwp-loginizer3,4954.65147.0273.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dwp-loginizer/public/partials/dwp-loginizer-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dwp-loginizer/admin/partials/dwp-loginizer-admin-display.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=dwp-loginizer
    • > Javascript (severe) in unknown
    /wp-content/plugins/dwp-loginizer/admin/inc/codemirror/lib/codemirror.js?ver=5.8.1 5931:29 Uncaught TypeError: Cannot read properties of null (reading 'value')


Plugin configuration Passed 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
7 plugin tags: dwp loginizer, login customizer, loginizer, branding, login...

dwp-loginizer/dwp-loginizer.php Passed 13 tests

The main PHP file in "DWP Loginizer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
DWP Loginizer allows you to customize the default wordpress login page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,883 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.14
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods25.88%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
PNG images were not found in this plugin