78% wip-custom-login

Code Review | WIP Custom Login

WordPress plugin WIP Custom Login scored78%from 54 tests.

About plugin

  • Plugin page: wip-custom-login
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: Sep 16, 2023
  • Number of updates: 55
  • Update frequency: every 49.3 days
  • Top authors: alexvtn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /61,185 total downloads

Benchmarks

Plugin footprint 83% from 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.19MB] [CPU: ▼7.17ms] Passed 4 tests

Analyzing server-side resources used by WIP Custom Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.72 ▲0.74
Dashboard /wp-admin3.50 ▲0.2053.13 ▲0.84
Posts /wp-admin/edit.php3.61 ▲0.2648.97 ▼2.35
Add New Post /wp-admin/post-new.php6.08 ▲0.2091.80 ▼22.71
Media Library /wp-admin/upload.php3.42 ▲0.1939.16 ▼4.35
Custom Login /wp-admin/admin.php?page=wip_custom_login_panel5.0944.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WIP Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.39 ▲0.021.67 ▲0.0636.36 ▼11.83
Dashboard /wp-admin2,262 ▲594.95 ▼0.00115.50 ▼3.0986.44 ▲42.59
Posts /wp-admin/edit.php2,139 ▲362.15 ▲0.1835.62 ▼6.3541.28 ▲4.14
Add New Post /wp-admin/post-new.php1,572 ▲2722.98 ▼0.18693.10 ▼26.5367.49 ▼14.37
Media Library /wp-admin/upload.php1,429 ▲324.16 ▼0.09103.51 ▼21.2889.00 ▲31.29
Custom Login /wp-admin/admin.php?page=wip_custom_login_panel1,1613.4050.88156.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wip_custom_login_panel
    • > Notice in wp-content/plugins/wip-custom-login/core/includes/class-panel.php+764
    Undefined variable: classe

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wip-custom-login/init.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wip-custom-login/core/admin/panel.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The default custom login page), #2 (Alternative custom login page), #3 (Option panel)
You can look at the official readme.txt

wip-custom-login/init.php 85% from 13 tests

The main file in "WIP Custom Login" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wip-custom-login.php" instead of "init.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

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
Everything looks great! No dangerous files found in this plugin18,110 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON10016,198
PHP66601331,085
CSS310424585
PO File17101,553137
JavaScript35018105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity30.25
▷ Minimum class complexity3.00
▷ Maximum class complexity109.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png34.69KB12.19KB▼ 64.85%
screenshot-1.png31.56KB12.93KB▼ 59.02%
core/assets/images/subparent.png0.95KB0.11KB▼ 88.16%
screenshot-3.png33.38KB13.83KB▼ 58.58%
assets/images/logo.png6.46KB3.00KB▼ 53.49%