84% customize-wp-login

Code Review | Customize WP-Login

WordPress plugin Customize WP-Login scored84%from 54 tests.

About plugin

  • Plugin page: customize-wp-login
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 6.3.1
  • First release: May 16, 2015
  • Latest release: May 7, 2016
  • Number of updates: 15
  • Update frequency: every 23.8 days
  • Top authors: Bigbabert (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Customize WP-Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.30 ▲1.39
Dashboard /wp-admin3.33 ▼0.0149.74 ▼18.12
Posts /wp-admin/edit.php3.44 ▲0.0947.57 ▼0.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.39 ▼23.06
Media Library /wp-admin/upload.php3.25 ▲0.0338.32 ▲5.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Customize WP-Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.28 ▼0.081.88 ▲0.2046.20 ▲4.61
Dashboard /wp-admin2,207 ▲305.62 ▲0.0888.41 ▼8.7145.89 ▲6.59
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0136.15 ▼0.4535.43 ▼0.98
Add New Post /wp-admin/post-new.php1,538 ▲1023.00 ▼0.01633.60 ▲13.4348.22 ▼4.10
Media Library /wp-admin/upload.php1,406 ▲34.30 ▲0.1199.81 ▼2.1443.51 ▲0.18

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customize-wp-login/public/customize-wp-login-class.php:375
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customize-wp-login/public/views/customize-wp-login-page.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/customize-wp-login/admin/views/admin.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (This screen shot is of the graphic settings section.), #2 (This screen shot is of the advanced settings section.)
Please take inspiration from this readme.txt

customize-wp-login/customize-wp-login.php 92% from 13 tests

The primary PHP file in "Customize WP-Login" version 1.2.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)

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
Everything looks great! No dangerous files found in this plugin3,090 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP93606621,188
JavaScript52928799
SVG103540
CSS44121396
Markdown1740133
Sass18234

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.10
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods79
▷ Static methods810.13%
▷ Public methods6886.08%
▷ Protected methods00.00%
▷ Private methods1113.92%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png133.58KB35.64KB▼ 73.32%
screenshot-1.png110.98KB29.48KB▼ 73.44%
admin/views/img/alter-tech-logo.png5.66KB3.10KB▼ 45.19%