72% bobs-custom-login

Code Review | Bobs Custom Login

WordPress plugin Bobs Custom Login scored72%from 54 tests.

About plugin

  • Plugin page: bobs-custom-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Jun 4, 2016
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: travispluse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Bobs Custom Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2141.14 ▼1.64
Dashboard /wp-admin3.44 ▲0.1033.23 ▼16.81
Posts /wp-admin/edit.php3.51 ▲0.1233.26 ▼16.03
Add New Post /wp-admin/post-new.php5.70 ▼0.2270.58 ▼16.44
Media Library /wp-admin/upload.php3.45 ▲0.1831.19 ▼3.65
bobs Custom Login /wp-admin/themes.php?page=bobs_custom_login_settings3.4531.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 13 new options
New WordPress options
db_upgraded
bcl_notice_section
bcl_form_section
theysaidso_admin_options
bcl_custom_css_section
widget_recent-comments
bcl_elements_section
bcl_below_form_section
widget_recent-posts
bcl_login_messages_section
...

Browser metrics Passed 4 tests

A check of browser resources used by Bobs Custom Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.77 ▼0.791.87 ▲0.0742.86 ▲1.53
Dashboard /wp-admin2,217 ▲294.88 ▼0.9899.26 ▼3.7037.88 ▼4.39
Posts /wp-admin/edit.php2,097 ▲82.01 ▲0.0033.66 ▼6.1234.77 ▼3.99
Add New Post /wp-admin/post-new.php1,546 ▲1823.25 ▲4.91669.44 ▲52.0449.37 ▼9.31
Media Library /wp-admin/upload.php1,396 ▲54.18 ▼0.0292.62 ▼3.6541.02 ▼2.31
bobs Custom Login /wp-admin/themes.php?page=bobs_custom_login_settings2,6113.97125.6094.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 13 options
    • bcl_preview_section
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • bcl_elements_section
    • can_compress_scripts
    • bcl_notice_section
    • widget_recent-posts
    • bcl_form_section
    • bcl_custom_css_section
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=bobs_custom_login_settings
    • > Notice in wp-content/plugins/bobs-custom-login/admin/settings/apply-css.php+104
    Trying to access array offset on value of type bool

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bobs-custom-login/admin/settings/apply-css.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bobs-custom-login/admin/settings/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bobs-custom-login/admin/settings/class-settings.php:401

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/themes.php?page=bobs_custom_login_settings
    • > Network (severe)
    wp-content/plugins/bobs-custom-login/admin/js/jquery.backstretch.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (Settings are under the Appearance menu.), #2 (Custom Login Settings - Tab 1 - Logo & Background), #3 (Custom Login Settings - Tab 2 - Form), #4 (Custom Login Settings - Tab 3 - Below Form Links), #5 (Custom Login Settings - Tab 4 - Message Boxes), #6 (Custom Login Settings - Tab 5 - Preview), #7 (Demo Login Page #1), #8 (Demo Login Page #2), #9 (Demo Login Page #3)
Please take inspiration from this readme.txt

bobs-custom-login/bobs-custom-login.php Passed 13 tests

"Bobs Custom Login" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Bobs Custom Login allows you to easily customize your admin login page according to your needs.

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
Good job! No executable or dangerous file extensions detected2,139 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6981271,151
PO File3372540740
JavaScript100179
CSS10069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity42.00
▷ Minimum class complexity2.00
▷ Maximum class complexity82.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods519.23%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 1.95MB with 1.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-8.png538.01KB242.73KB▼ 54.88%
screenshot-5.png90.30KB31.70KB▼ 64.89%
screenshot-4.png118.69KB42.68KB▼ 64.04%
admin/images/w-logo-blue.png19.01KB2.67KB▼ 85.98%
screenshot-2.png130.96KB44.03KB▼ 66.38%