93% fc-login-customizer

Code Review | FC Login Customizer

WordPress plugin FC Login Customizer scored 93% from 53 tests.

About plugin

  • Plugin page: fc-login-customizer
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 14, 2021
  • Latest release: Sep 15, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: campusfra (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 56 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼289.39ms] Passed 4 tests

A check of server-side resources used by FC Login Customizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.84 ▲20.39
Dashboard /wp-admin3.07 ▲0.0241.94 ▼13.95
Posts /wp-admin/edit.php3.12 ▲0.0247.13 ▲10.40
Add New Post /wp-admin/post-new.php5.43 ▲0.0092.35 ▼1,146.29
Media Library /wp-admin/upload.php3.01 ▲0.0130.20 ▼7.71
Login /wp-admin/themes.php?page=fcwlc3.0127.60

Server storage [IO: ▲0.01MB] [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: 9 new files
Database: no new tables, 2 new options
New WordPress options
fcwlc-auto-logo-link
fcwlc-auto-logo

Browser metrics Passed 4 tests

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 /3,703 ▲12115.88 ▲0.328.29 ▲0.2344.96 ▼0.76
Dashboard /wp-admin2,957 ▲1075.97 ▲0.13140.61 ▲6.16104.78 ▲8.37
Posts /wp-admin/edit.php2,736 ▲302.69 ▼0.0167.36 ▲0.6292.29 ▼1.16
Add New Post /wp-admin/post-new.php1,671 ▼18218.66 ▼0.44364.43 ▼14.14106.01 ▼3.65
Media Library /wp-admin/upload.php1,802 ▲275.01 ▲0.00149.41 ▼0.77119.53 ▼0.73
Login /wp-admin/themes.php?page=fcwlc1,0482.0857.8177.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/fc-login-customizer/includes/fcwlc-helpers.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fc-login-customizer/includes/fcwlc-page-content.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fc-login-customizer/includes/fcwlc-activation.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

fc-login-customizer/fc-login-customizer.php 85% from 13 tests

"FC Login Customizer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

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
Success! There were no dangerous files found in this plugin200 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP767236200

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin