10% wp-login-template

Code Review | Wordpress Login Template

WordPress plugin Wordpress Login Template scored10%from 54 tests.

About plugin

  • Plugin page: wp-login-template
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.9
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jul 15, 2014
  • Number of updates: 13
  • Update frequency: every 3.2 days
  • Top authors: raju_ahmed (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /3,389 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-login-template/hook-plug.php+246
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.78MB] [CPU: ▼54.29ms] Passed 4 tests

Server-side resources used by Wordpress Login Template
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.255.12 ▼40.36
Dashboard /wp-admin2.23 ▼1.0711.41 ▼36.26
Posts /wp-admin/edit.php2.23 ▼1.136.48 ▼46.30
Add New Post /wp-admin/post-new.php2.23 ▼3.665.78 ▼94.23
Media Library /wp-admin/upload.php2.23 ▼1.006.77 ▼28.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Login Template
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲6713.34 ▼1.241.83 ▼0.2438.79 ▼3.70
Dashboard /wp-admin2,242 ▲545.99 ▲0.10112.97 ▲3.0084.07 ▲44.61
Posts /wp-admin/edit.php2,133 ▲412.33 ▲0.3238.77 ▼0.4935.52 ▼8.90
Add New Post /wp-admin/post-new.php1,543 ▲2423.26 ▼0.08782.42 ▲120.0238.09 ▼28.97
Media Library /wp-admin/upload.php1,424 ▲394.49 ▲0.27105.18 ▲2.6778.21 ▲35.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wordpress-custom-login-template handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-login-template/hook-plug.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-login-template/inc/custom-feature.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-login-template/hook-plug.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 need to be fixed: You can look at the official readme.txt

wp-login-template/hook-plug.php 92% from 13 tests

The main file in "Wordpress Login Template" v. 2.1 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 ("wp-login-template.php" instead of "hook-plug.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin733 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP217758647
CSS19083
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/outer.png0.12KB0.09KB▼ 21.77%
images/logo-m.png0.83KB1.07KB0.00%