89% easy-login-logout

Code Review | Easy Login Logout

WordPress plugin Easy Login Logout scored89%from 54 tests.

About plugin

  • Plugin page: easy-login-logout
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 11, 2021
  • Latest release: May 25, 2022
  • Number of updates: 13
  • Update frequency: every 26.8 days
  • Top authors: ashrafulsarkar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.83ms] Passed 4 tests

Server-side resources used by Easy Login Logout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.17 ▼4.37
Dashboard /wp-admin3.37 ▲0.0745.96 ▼4.92
Posts /wp-admin/edit.php3.42 ▲0.0746.08 ▲0.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.31 ▼2.69
Media Library /wp-admin/upload.php3.30 ▲0.0736.79 ▲1.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Easy Login Logout: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.32 ▼0.911.73 ▼0.3238.87 ▼7.74
Dashboard /wp-admin2,202 ▲145.87 ▲1.02107.20 ▼34.7638.84 ▼20.93
Posts /wp-admin/edit.php2,091 ▲22.10 ▲0.0940.40 ▲3.0034.70 ▲1.51
Add New Post /wp-admin/post-new.php1,530 ▲1623.16 ▲5.55655.29 ▲2.4253.55 ▼0.64
Media Library /wp-admin/upload.php1,390 ▲24.34 ▲0.11108.56 ▲9.2346.29 ▼0.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in easy-login-logout/assets to your readme.txt
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

easy-login-logout/easy-login-logout.php 92% from 13 tests

"Easy Login Logout" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected287 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22856265
JavaScript15020
Markdown1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected