90% wp-easy-login

Code Review | WP Easy Login - Remember Recent Usernames

WordPress plugin WP Easy Login - Remember Recent Usernames scored 90% from 54 tests.

About plugin

  • Plugin page: wp-easy-login
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: May 29, 2018
  • Latest release: Sep 2, 2020
  • Number of updates: 9
  • Update frequency: every 92.0 days
  • Top authors: 5um17 (88.89%)Ankit K Gupta (22.22%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,371 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP Easy Login - Remember Recent Usernames
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.10 ▼6.89
Dashboard /wp-admin3.40 ▲0.1046.81 ▼2.53
Posts /wp-admin/edit.php3.52 ▲0.1647.12 ▼1.12
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.75 ▲8.97
Media Library /wp-admin/upload.php3.33 ▲0.1032.34 ▼0.70
WP Easy Login /wp-admin/options-general.php?page=wpel3.2932.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WP Easy Login - Remember Recent Usernames: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.331.70 ▼0.1241.52 ▼7.71
Dashboard /wp-admin2,210 ▲224.86 ▼1.03107.21 ▼9.5141.70 ▼5.65
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0839.09 ▲4.1935.81 ▼1.25
Add New Post /wp-admin/post-new.php1,531 ▼1118.35 ▲0.09604.87 ▲11.5453.48 ▼6.62
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0696.27 ▲0.2739.16 ▼3.45
WP Easy Login /wp-admin/options-general.php?page=wpel8442.0326.8428.26

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: remember username, login, recent logins, easy login

wp-easy-login/wp-el.php 92% from 13 tests

The main PHP file in "WP Easy Login - Remember Recent Usernames" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-easy-login.php" instead of "wp-el.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected705 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP485192346
JavaScript453112266
PO File1313372
CSS20521

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity23.50
▷ Minimum class complexity6.00
▷ Maximum class complexity41.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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