84% custom-login

Code Review | Custom Login

WordPress plugin Custom Login scored84%from 54 tests.

About plugin

  • Plugin page: custom-login
  • Plugin version: 4.1.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4.0
  • WordPress version: 6.3.1
  • First release: Aug 13, 2009
  • Latest release: Nov 16, 2023
  • Number of updates: 339
  • Update frequency: every 15.4 days
  • Top authors: austyfrosty (100%)

Code review

54 tests

User reviews

98 reviews

Install metrics

30,000+ active /1,292,290 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.00MB] [CPU: ▼3.02ms] Passed 4 tests

This is a short check of server-side resources used by Custom Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.07 ▼7.26
Dashboard /wp-admin3.31 ▲0.0046.81 ▲1.79
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.17 ▼3.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.33 ▲0.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 625 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.37 ▼0.011.74 ▲0.0336.27 ▼8.01
Dashboard /wp-admin2,198 ▲245.61 ▼0.0691.74 ▼5.9337.84 ▼3.32
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0341.57 ▼1.9334.79 ▼4.17
Add New Post /wp-admin/post-new.php1,526 ▼1023.45 ▲0.43658.26 ▲36.8257.49 ▲5.64
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.0597.58 ▼1.5542.07 ▼0.82

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 311× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'TheFrosty\\WpUtilities\\Plugin\\TemplateLoaderInterface' not found in wp-content/plugins/custom-login/vendor/thefrosty/wp-utilities/src/Plugin/TemplateLoader.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/custom-login/vendor/composer/installers/src/Composer/Installers/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/custom-login/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Dwnload\\WpSettingsApi\\Api\\SettingSection' not found in wp-content/plugins/custom-login/config/import-export.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/custom-login/vendor/symfony/http-foundation/Test/Constraint/RequestAttributeValueSame.php:17
    • > PHP Parse error
      syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE) in wp-content/plugins/custom-login/src/Extensions/AddOn.php on line 41
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/custom-login/vendor/symfony/http-foundation/JsonResponse.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'TheFrosty\\WpUtilities\\Plugin\\AbstractContainerProvider' not found in wp-content/plugins/custom-login/src/WpAdmin/SettingsUpgrades.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/custom-login/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException' not found in wp-content/plugins/custom-login/vendor/symfony/http-foundation/File/Exception/FormSizeFileException.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: error, login error, admin, logo, custom login...

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

This is the main PHP file of "Custom Login" version 4.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
A simple way to customize your WordPress wp-login.php screen! A Frosty Media plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected35,177 lines of code in 600 files:
LanguageFilesBlank linesComment linesLines of code
PHP4365,47514,98424,834
CSS108741725,815
JSON17001,782
Markdown1838501,195
JavaScript697292588
PO File1140244306
Bourne Shell65337277
YAML4371150
XML31640133
reStructuredText19613997

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.61
▷ Minimum class complexity1.00
▷ Maximum class complexity245.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces63
Interfaces37
Traits27
Classes333
▷ Abstract classes247.21%
▷ Concrete classes30992.79%
▷ Final classes299.39%
Methods1,612
▷ Static methods1479.12%
▷ Public methods1,20474.69%
▷ Protected methods28917.93%
▷ Private methods1197.38%
Functions210
▷ Named functions9545.24%
▷ Anonymous functions11554.76%
Constants484
▷ Global constants91.86%
▷ Class constants47598.14%
▷ Public constants45094.74%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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