78% fc-login-customizer

Code Review | FC Login Customizer

WordPress plugin FC Login Customizer scored78%from 54 tests.

About plugin

  • Plugin page: fc-login-customizer
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Sep 14, 2021
  • Latest release: Feb 3, 2022
  • Number of updates: 9
  • Update frequency: every 15.8 days
  • Top authors: campusfra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /712 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by FC Login Customizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.30 ▼2.57
Dashboard /wp-admin3.39 ▲0.0945.98 ▲1.63
Posts /wp-admin/edit.php3.51 ▲0.1548.89 ▲1.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.87 ▼1.23
Media Library /wp-admin/upload.php3.32 ▲0.0935.44 ▲3.23
Login Screen /wp-admin/themes.php?page=login-customizer3.2832.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
fcwlc-auto-logo-link
widget_theysaidso_widget
fcwlc-auto-logo-title
fcwlc-auto-logo
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for FC Login Customizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.45 ▲0.101.58 ▼0.3338.98 ▼4.60
Dashboard /wp-admin2,211 ▲345.52 ▼0.0881.82 ▼5.0638.78 ▼1.28
Posts /wp-admin/edit.php2,120 ▲201.97 ▼0.0537.92 ▲1.4036.84 ▲2.57
Add New Post /wp-admin/post-new.php1,545 ▲1023.27 ▲5.01700.53 ▲54.6657.19 ▼16.54
Media Library /wp-admin/upload.php1,416 ▲164.18 ▲0.0294.36 ▼20.6842.55 ▼4.20
Login Screen /wp-admin/themes.php?page=login-customizer8492.0422.7629.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • fcwlc-auto-logo-title
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fc-login-customizer/public/partials/fc-login-customizer-public-display.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fc-login-customizer/admin/partials/input.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fc-login-customizer/admin/partials/activation-notice.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fc-login-customizer/admin/partials/fc-login-customizer-admin-display.php:16

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 on the user side

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
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

fc-login-customizer/fc-login-customizer.php Passed 13 tests

The principal PHP file in "FC Login Customizer" v. 1.1.0 is loaded by WordPress automatically on each request
45 characters long description:
Make WP login really yours in just one click.

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
Everything looks great! No dangerous files found in this plugin502 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14129646434
PO File1161954
CSS2048
JavaScript2026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected