77% webriti-custom-login-page

Code Review | Webriti Custom Login

WordPress plugin Webriti Custom Login scored77%from 54 tests.

About plugin

  • Plugin page: webriti-custom-lo...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 6, 2013
  • Latest release: Feb 21, 2014
  • Number of updates: 16
  • Update frequency: every 5.1 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /11,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by Webriti Custom Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.56 ▲4.74
Dashboard /wp-admin3.35 ▲0.0547.50 ▼5.35
Posts /wp-admin/edit.php3.40 ▲0.0545.48 ▼2.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.85 ▼9.46
Media Library /wp-admin/upload.php3.27 ▲0.0533.68 ▲0.96
Webriti Custom Login /wp-admin/options-general.php?page=webriti-login3.2229.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
wp_login_logo_settings
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webriti Custom Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.58 ▼0.721.57 ▼0.0337.92 ▼1.93
Dashboard /wp-admin2,207 ▲155.76 ▲0.8595.44 ▼11.1741.11 ▼3.84
Posts /wp-admin/edit.php2,096 ▲101.99 ▼0.0239.64 ▲3.7934.95 ▼1.46
Add New Post /wp-admin/post-new.php1,552 ▲3818.07 ▲0.61601.33 ▼107.0886.32 ▲22.99
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.09100.16 ▼0.9642.52 ▼4.57
Webriti Custom Login /wp-admin/options-general.php?page=webriti-login1,36014.20144.1940.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • wp_login_logo_settings
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=webriti-login
    • > Notice in wp-content/plugins/webriti-custom-login-page/wp-login-logo.php+195
    Undefined index: tab

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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/webriti-custom-login-page/install-script.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/webriti-custom-login-page/wp-login-logo.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/webriti-custom-login-page/login_pro.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Customization & Settings), #2 (Demo Login Page - 1), #3 (Demo Login Page - 2), #4 (Demo Login Page - 3), #5 (Demo Login Page - 4), #6 (Demo Login Page - 5), #7 (Demo Login Page - 6)
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

webriti-custom-login-page/wp-login-logo.php 92% from 13 tests

This is the main PHP file of "Webriti Custom Login" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("webriti-custom-login-page.php" instead of "wp-login-logo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,084 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS128421,538
PHP38438448
PO File2222272
JavaScript29826

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.57MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) other-snaps/rambo.png40.04KB0.00KB▼ 100.00%
other-snaps/star.png0.65KB0.72KB0.00%
spasalon.png176.27KB56.92KB▼ 67.71%
other-snaps/arrow_down.png8.21KB4.31KB▼ 47.54%
screenshot-5.png21.68KB8.59KB▼ 60.35%