Two Factor Authentication 1.8.7

Does Two Factor Authentication work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
1Unrecognized messages in the PHP error log
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 49.44 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version5.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 20,000+
WordPress.org page https://wordpress.org/plugins/two-factor-authentication/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=two-factor-authentication%2Ftwo-factor-login.php&plugin_status=all&paged=1&s&_wpnonce=463688230a
Aspect after-activation
HTTP status 200
Load time 0.366 s
Memory usage 2.97 MiB
JS errors None
Resource errors None

Two Factor Auth

Page screenshot: Two Factor Auth
URL /wp-admin/admin.php?page=two-factor-auth-user
Aspect menu-item
HTTP status 200
Load time 0.214 s
Memory usage 2.8 MiB
JS errors None
Resource errors None

Settings → Two Factor Authentication

Page screenshot: Settings → Two Factor Authentication
URL /wp-admin/options-general.php?page=two-factor-auth
Aspect menu-item
HTTP status 200
Load time 0.150 s
Memory usage 2.84 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.219 s
Memory usage 2.68 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.267 s0.272 s+0.005 s2.82 MiB2.88 MiB+ 61.45 KiB
/wp-admin/edit.php0.184 s0.193 s+0.009 s2.86 MiB2.92 MiB+ 61.45 KiB
/wp-admin/post-new.php0.898 s0.938 s+0.040 s5.02 MiB5.1 MiB+ 74.57 KiB
/wp-admin/upload.php0.482 s0.277 s-0.205 s2.7 MiB2.75 MiB+ 56.31 KiB
/wp-admin/options-writing.php0.263 s0.265 s+0.002 s2.71 MiB2.73 MiB+ 24.29 KiB
/wp-admin/media-new.php0.220 s0.221 s+0.001 s2.67 MiB2.73 MiB+ 56.48 KiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.190 s+0.010 s2.77 MiB2.83 MiB+ 57.39 KiB
/wp-admin/post-new.php?post_type=page1.158 s0.712 s-0.446 s5.01 MiB5.07 MiB+ 66.16 KiB
/wp-admin/options-discussion.php0.299 s0.287 s-0.012 s2.67 MiB2.73 MiB+ 57.11 KiB
/wp-admin/edit-comments.php0.233 s0.237 s+0.004 s2.78 MiB2.83 MiB+ 56.34 KiB
/0.257 s0.205 s-0.052 s2.71 MiB2.68 MiB- 27.67 KiB
Average 0.404 s0.345 s-0.059 s3.16 MiB3.2 MiB+ 49.44 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
PO File
JavaScript
Language % Lines of code Comment lines Files
PHP56.4%2,13658011
PO File24.5%9295504
JavaScript18.1%6851413
Markdown0.7%2801
CSS0.3%1011
Total 3,788 1,272 20

PHP Code Analysis | More results »

Lines of code 1,810
Total complexity 533
Median class complexity 14.0
Median method complexity 3.0
Most complex class Simba_Two_Factor_Authentication
Most complex function Simba_Two_Factor_Authentication::tfaVerifyCodeAndUser()
Classes 7
Methods 112
Functions 0

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 1

User Metadata wp_usermeta 2

PHP Error Log 1 lines

[10-Mar-2021 07:09:45 UTC] TFA: Beginning attempt to port private key encryption over to openssl
See also: All tests for this plugin, How to Hide Two Factor Authentication Admin Menus