84% hello-login

Code Review | Hellō Login

WordPress plugin Hellō Login scored84%from 54 tests.

About plugin

  • Plugin page: hello-login
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Nov 14, 2023
  • Number of updates: 59
  • Update frequency: every 6.2 days
  • Top authors: marius1hello (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Hellō Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.12 ▼4.31
Dashboard /wp-admin3.43 ▲0.1345.36 ▼6.24
Posts /wp-admin/edit.php3.48 ▲0.1248.68 ▲1.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.10 ▼0.83
Media Library /wp-admin/upload.php3.29 ▲0.0635.97 ▲4.06
Hellō Login /wp-admin/options-general.php?page=hello-login-settings3.2632.45

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
hello-login-plugin-version
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Hellō Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5614.25 ▲0.101.67 ▼0.1240.81 ▼3.22
Dashboard /wp-admin2,204 ▲275.63 ▲0.0191.80 ▼7.8840.16 ▼2.72
Posts /wp-admin/edit.php2,112 ▲121.97 ▲0.0040.25 ▲3.7236.68 ▲0.39
Add New Post /wp-admin/post-new.php1,537 ▲1023.21 ▲0.02672.55 ▲40.9271.80 ▲17.23
Media Library /wp-admin/upload.php1,415 ▲154.25 ▲0.05100.03 ▼8.6041.09 ▼4.23
Hellō Login /wp-admin/options-general.php?page=hello-login-settings8392.0026.7131.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • hello-login-plugin-version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-login/includes/functions.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hello-login/includes/hello-login-option-settings.php:101

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: apps, security, authentication, oauth2, sso...

hello-login/hello-login.php 92% from 13 tests

"Hellō Login" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

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
No dangerous file extensions were detected2,522 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP126261,8452,426
CSS38063
JavaScript16133

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.35
Average class complexity32.45
▷ Minimum class complexity8.00
▷ Maximum class complexity93.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods157
▷ Static methods2918.47%
▷ Public methods13082.80%
▷ Protected methods63.82%
▷ Private methods2113.38%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin