78% wp-custom-login-register-page

Code Review | wp Custom Login

WordPress plugin wp Custom Login scored78%from 54 tests.

About plugin

  • Plugin page: wp-custom-login-r...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: Dec 19, 2013
  • Number of updates: 11
  • Update frequency: every 1.5 days
  • Top authors: niaj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.72ms] Passed 4 tests

A check of server-side resources used by wp Custom Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.63 ▼0.94
Dashboard /wp-admin3.31 ▲0.0154.13 ▲1.56
Posts /wp-admin/edit.php3.36 ▲0.0150.10 ▼0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.79 ▼19.39
Media Library /wp-admin/upload.php3.24 ▲0.0134.63 ▼2.39
Custom Login /wp-admin/options-general.php?page=custom-login3.1830.24

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for wp Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲2813.23 ▼1.535.91 ▲3.8345.50 ▲0.47
Dashboard /wp-admin2,210 ▲224.87 ▼0.99115.66 ▲5.9644.41 ▲5.29
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0136.16 ▲0.3738.25 ▲3.64
Add New Post /wp-admin/post-new.php1,537 ▲422.97 ▼0.12699.89 ▲40.4548.53 ▼21.25
Media Library /wp-admin/upload.php1,389 ▲14.17 ▼0.11100.09 ▼2.8246.15 ▲1.87
Custom Login /wp-admin/options-general.php?page=custom-login7942.0323.4924.86

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=custom-login
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=custom-login
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-login-register-page/index.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

wp-custom-login-register-page/index.php 92% from 13 tests

The main PHP file in "wp Custom Login" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-login-register-page.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1115125
PHP1141374

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png7.20KB4.20KB▼ 41.64%
images/login-bg.png0.16KB0.12KB▼ 20.13%
images/bannerwd70.png2.75KB0.10KB▼ 96.34%