84% brand-my-login

Code Review | Brand My Login

WordPress plugin Brand My Login scored84%from 54 tests.

About plugin

  • Plugin page: brand-my-login
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Aug 30, 2018
  • Latest release: Mar 8, 2019
  • Number of updates: 41
  • Update frequency: every 4.6 days
  • Top authors: mnajlat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,283 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.34ms] Passed 4 tests

A check of server-side resources used by Brand My Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0243.77 ▲4.59
Dashboard /wp-admin3.41 ▲0.0752.02 ▼30.68
Posts /wp-admin/edit.php3.52 ▲0.1348.40 ▼5.29
Add New Post /wp-admin/post-new.php5.99 ▲0.0688.66 ▼7.52
Media Library /wp-admin/upload.php3.33 ▲0.0638.56 ▲2.13
Brand My Login /wp-admin/themes.php?page=brand_my_login_settings3.3035.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Brand My Login: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.71 ▼0.021.80 ▲0.1345.95 ▲2.88
Dashboard /wp-admin2,202 ▲255.61 ▼0.0581.71 ▼10.5336.72 ▼11.76
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0335.61 ▲0.8233.58 ▼4.39
Add New Post /wp-admin/post-new.php1,529 ▼623.07 ▲4.72688.28 ▲31.1954.60 ▼12.63
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0299.21 ▼9.6942.11 ▼8.68
Brand My Login /wp-admin/themes.php?page=brand_my_login_settings1,62512.87119.7543.32

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=brand_my_login_settings
    • > Notice in wp-content/plugins/brand-my-login/brand-my-login.php+87
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: brand, wordpress, wp-login, logo, customize...

brand-my-login/brand-my-login.php Passed 13 tests

The principal PHP file in "Brand My Login" v. 1.2.1 is loaded by WordPress automatically on each request
42 characters long description:
Brand and style your WordPress login page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected954 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of 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.36
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 functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings