78% birds-custom-login

Code Review | Birds Custom Login

WordPress plugin Birds Custom Login scored78%from 54 tests.

About plugin

  • Plugin page: birds-custom-login
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2015
  • Latest release: Apr 1, 2020
  • Number of updates: 306
  • Update frequency: every 6.1 days
  • Top authors: fredserva (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

7,000+ active /48,392 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼14.61ms] Passed 4 tests

An overview of server-side resources used by Birds Custom Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.80 ▼6.07
Dashboard /wp-admin3.26 ▼0.0427.71 ▼20.36
Posts /wp-admin/edit.php3.35 ▼0.0131.12 ▼12.75
Add New Post /wp-admin/post-new.php5.54 ▼0.3466.27 ▼19.26
Media Library /wp-admin/upload.php3.28 ▲0.0629.43 ▼3.99
Birds Custom Login /wp-admin/themes.php?page=birds_custom_login_settings3.2828.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 13 new options
New WordPress options
bcl_preview_section
bcl_login_messages_section
widget_recent-posts
widget_recent-comments
can_compress_scripts
bcl_notice_section
theysaidso_admin_options
bcl_custom_css_section
bcl_form_section
db_upgraded
...

Browser metrics Passed 4 tests

Birds Custom Login: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲14313.68 ▼0.541.61 ▼0.2338.68 ▼4.02
Dashboard /wp-admin2,211 ▲265.86 ▲0.0195.60 ▼3.6336.82 ▼8.47
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0536.27 ▼0.1231.66 ▼1.71
Add New Post /wp-admin/post-new.php1,535 ▲123.27 ▲0.08585.91 ▼103.2952.40 ▼5.04
Media Library /wp-admin/upload.php1,399 ▲174.25 ▲0.0693.63 ▼12.8941.57 ▼5.39
Birds Custom Login /wp-admin/themes.php?page=birds_custom_login_settings2,6573.96124.7795.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • widget_recent-posts
    • bcl_login_messages_section
    • theysaidso_admin_options
    • widget_recent-comments
    • bcl_custom_css_section
    • can_compress_scripts
    • bcl_notice_section
    • bcl_elements_section
    • 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
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=birds_custom_login_settings
    • > Notice in wp-content/plugins/birds-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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/birds-custom-login/admin/settings/class-settings.php:401
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/birds-custom-login/admin/settings/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/birds-custom-login/admin/settings/apply-css.php:17

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #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)
The official readme.txt is a good inspiration

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

"Birds Custom Login" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Birds 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,153 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6971271,164
PO File3372540740
JavaScript203180
CSS10069

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 2.37MB with 1.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png64.43KB38.62KB▼ 40.06%
screenshot-5.png44.83KB26.47KB▼ 40.95%
screenshot-2.png62.44KB37.71KB▼ 39.61%
screenshot-9.png48.64KB10.99KB▼ 77.41%
screenshot-7.png809.93KB247.36KB▼ 69.46%