90% force-login-with-email

Code Review | Force Login With Email

WordPress plugin Force Login With Email scored90%from 54 tests.

About plugin

  • Plugin page: force-login-with-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Jul 14, 2020
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: MarcosAlexandre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,694 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by Force Login With Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.76 ▲3.37
Dashboard /wp-admin3.34 ▲0.0443.43 ▼3.92
Posts /wp-admin/edit.php3.39 ▲0.0348.50 ▲2.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.68 ▼19.27
Media Library /wp-admin/upload.php3.26 ▲0.0337.01 ▲1.43
Force Login With E-mail /wp-admin/options-general.php?page=force_login_with_email3.2330.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
db_upgraded
force-login-with-email-username-admin
widget_theysaidso_widget
force-login-with-email-username
theysaidso_admin_options
widget_recent-comments
force-login-with-email-emailuser
widget_recent-posts

Browser metrics Passed 4 tests

Force Login With Email: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼1.401.68 ▲0.1643.10 ▲4.08
Dashboard /wp-admin2,207 ▲155.77 ▲0.8599.51 ▼26.1139.22 ▼6.73
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0143.22 ▲3.3843.63 ▲8.21
Add New Post /wp-admin/post-new.php1,535 ▲1623.39 ▲0.11651.47 ▼20.4452.02 ▼5.88
Media Library /wp-admin/upload.php1,395 ▲74.15 ▲0.0292.32 ▼19.6741.34 ▼5.63
Force Login With E-mail /wp-admin/options-general.php?page=force_login_with_email8132.0623.5424.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • force-login-with-email-emailuser
    • force-login-with-email-username
    • force-login-with-email-username-admin
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: authentication, email, username, login

force-login-with-email/force-login-with-email.php Passed 13 tests

This is the main PHP file of "Force Login With Email" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Enable login in WordPress only with user e-mail address.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected210 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21625158
PO File1121252

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin