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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.76 ▲3.37 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.43 ▼3.92 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.50 ▲2.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.68 ▼19.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.01 ▲1.43 |
Force Login With E-mail /wp-admin/options-general.php?page=force_login_with_email | 3.23 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.40 | 1.68 ▲0.16 | 43.10 ▲4.08 |
Dashboard /wp-admin | 2,207 ▲15 | 5.77 ▲0.85 | 99.51 ▼26.11 | 39.22 ▼6.73 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▼0.01 | 43.22 ▲3.38 | 43.63 ▲8.21 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.39 ▲0.11 | 651.47 ▼20.44 | 52.02 ▼5.88 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.15 ▲0.02 | 92.32 ▼19.67 | 41.34 ▼5.63 |
Force Login With E-mail /wp-admin/options-general.php?page=force_login_with_email | 813 | 2.06 | 23.54 | 24.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 25 | 158 |
PO File | 1 | 12 | 12 | 52 |
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 code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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