78% custom-wp-login-page

Code Review | Custom WP Login Page

WordPress plugin Custom WP Login Page scored 78% from 54 tests.

About plugin

  • Plugin page: custom-wp-login-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: Dec 21, 2012
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: pankajadhyapak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 7,207 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Custom WP Login Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.33 ▼5.45
Dashboard /wp-admin3.32 ▲0.0143.95 ▼2.75
Posts /wp-admin/edit.php3.37 ▲0.0148.37 ▼0.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.05 ▼16.94
Media Library /wp-admin/upload.php3.24 ▲0.0136.72 ▲4.83
Custom WP Login /wp-admin/options-general.php?page=powered-by-plugin3.1830.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Custom WP Login Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲4113.19 ▼1.431.83 ▼0.0341.19 ▲3.40
Dashboard /wp-admin2,215 ▲275.90 ▲1.0595.45 ▼6.5040.40 ▲0.68
Posts /wp-admin/edit.php2,109 ▲172.27 ▲0.2936.85 ▼8.1130.33 ▼5.60
Add New Post /wp-admin/post-new.php1,521 ▼1523.34 ▼0.09612.33 ▲25.6858.74 ▲8.11
Media Library /wp-admin/upload.php1,407 ▲254.26 ▲0.0794.69 ▼0.7442.10 ▲0.16
Custom WP Login /wp-admin/options-general.php?page=powered-by-plugin8721.9326.8657.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • powered_by_textcolor
    • powered_by_image
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • powered_by_color
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=powered-by-plugin
    • > 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=powered-by-plugin
    • > 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 | 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-wp-login-page/login.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: These screenshots do not have images: #1 (setting page), #2 (login page)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === custom-wp-login-page === )
You can take inspiration from this readme.txt

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

"Custom WP Login Page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-wp-login-page.php" instead of "login.php")

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
Success! There were no dangerous files found in this plugin891 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
login.png89.61KB41.26KB▼ 53.96%
logo5.png6.61KB2.40KB▼ 63.74%
settings.png26.23KB16.66KB▼ 36.46%