72% easy-custom-login

Code Review | Easy Custom Login

WordPress plugin Easy Custom Login scored72%from 54 tests.

About plugin

  • Plugin page: easy-custom-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2
  • WordPress version: 6.3.1
  • First release: May 1, 2015
  • Latest release: May 2, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: duogeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.18MB] [CPU: ▼17.18ms] Passed 4 tests

A check of server-side resources used by Easy Custom Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0224.01 ▼28.12
Dashboard /wp-admin3.16 ▼0.1434.54 ▼14.45
Posts /wp-admin/edit.php3.24 ▼0.1234.60 ▼14.83
Add New Post /wp-admin/post-new.php5.48 ▼0.4178.72 ▼11.30
Media Library /wp-admin/upload.php3.19 ▼0.0435.80 ▲0.48
DuoGeek /wp-admin/admin.php?page=duogeek-panel3.1528.12
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses3.1527.36
Help /wp-admin/admin.php?page=duogeek-panel-help3.1526.65
Easy Custom Login /wp-admin/admin.php?page=ecl-settings3.1530.30

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 176 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
recovery_mode_email_last_sent
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Custom Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲27215.11 ▲0.742.68 ▲0.8238.75 ▼4.99
Dashboard /wp-admin2,410 ▲2226.75 ▲0.84129.68 ▲14.8636.20 ▼7.11
Posts /wp-admin/edit.php2,319 ▲2273.63 ▲1.6656.65 ▲16.4234.07 ▲0.79
Add New Post /wp-admin/post-new.php1,729 ▲20123.01 ▲4.84562.62 ▼71.2032.88 ▼28.72
Media Library /wp-admin/upload.php1,453 ▲654.39 ▲0.2788.69 ▼15.6743.43 ▲1.17
DuoGeek /wp-admin/admin.php?page=duogeek-panel7851.709.4924.43
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses1,0063.3640.4323.12
Help /wp-admin/admin.php?page=duogeek-panel-help1,0223.4644.1825.02
Easy Custom Login /wp-admin/admin.php?page=ecl-settings1,8717.80154.9685.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ecl-settings
    • > Notice in wp-content/plugins/easy-custom-login/duogeek/duogeek-panel.php+147
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=duogeek-panel
    • > Error in wp-content/plugins/easy-custom-login/duogeek/duogeek-panel.php+413
    Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/easy-custom-login/duogeek/duogeek-panel.php:413
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): DuoGeekPlugins->duogeek_panel_cb()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown

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 items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'EasyCustomLogin' not found in wp-content/plugins/easy-custom-login/ecl-files/modules/class.login.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/easy-custom-login/duogeek/duogeek-panel.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/easy-custom-login/duogeek/helper.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-custom-login/ecl-files/includes/login-internal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/easy-custom-login/duogeek/class.customPostType.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=ecl-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=ecl-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === easy-custom-login === )
You can take inspiration from this readme.txt

easy-custom-login/easycustomlogin.php 92% from 13 tests

The main file in "Easy Custom Login" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-custom-login.php" instead of "easycustomlogin.php")

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
Good job! No executable or dangerous file extensions detected17,947 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
CSS559133009,894
JavaScript55639322,790
Sass1326241,352
LESS1326331,343
SVG3001,314
PHP72861311,254

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity32.25
▷ Minimum class complexity3.00
▷ Maximum class complexity59.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods3888.37%
▷ Protected methods511.63%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
66 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
duogeek/inc/icheck/skins/minimal/pink@2x.png1.38KB2.66KB0.00%
duogeek/inc/icheck/skins/flat/blue@2x.png3.14KB2.79KB▼ 11.25%
duogeek/inc/icheck/skins/polaris/polaris.png6.25KB3.23KB▼ 48.38%
duogeek/inc/icheck/skins/minimal/aero@2x.png1.38KB2.66KB0.00%
duogeek/inc/icheck/skins/flat/blue.png1.48KB1.65KB0.00%