Two Factor Authentication 1.13.0

Does Two Factor Authentication work with WordPress 5.9 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: 67.61 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.9
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=8115f44dd8
Aspect after-activation
HTTP status 200
Load time 0.388 s
Memory usage 3.32 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.176 s
Memory usage 3.32 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.142 s
Memory usage 3.37 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.222 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.385 s0.274 s-0.111 s3.36 MiB3.43 MiB+ 64.74 KiB
/wp-admin/edit.php0.177 s0.181 s+0.004 s3.39 MiB3.46 MiB+ 64.03 KiB
/wp-admin/post-new.php0.951 s1.108 s+0.157 s6.14 MiB6.21 MiB+ 68.93 KiB
/wp-admin/upload.php0.408 s0.347 s-0.061 s3.24 MiB3.31 MiB+ 71.61 KiB
/wp-admin/options-writing.php0.324 s0.138 s-0.186 s3.24 MiB3.29 MiB+ 55.46 KiB
/wp-admin/media-new.php0.237 s0.279 s+0.042 s3.22 MiB3.29 MiB+ 71.78 KiB
/wp-admin/edit-tags.php?taxonomy=category0.166 s0.248 s+0.082 s3.25 MiB3.32 MiB+ 72.69 KiB
/wp-admin/post-new.php?post_type=page0.873 s0.925 s+0.052 s6.14 MiB6.2 MiB+ 64.52 KiB
/wp-admin/options-discussion.php0.356 s0.220 s-0.136 s3.22 MiB3.29 MiB+ 72.41 KiB
/wp-admin/edit-comments.php0.202 s0.212 s+0.010 s3.26 MiB3.39 MiB+ 127.63 KiB
/0.274 s0.198 s-0.076 s3.4 MiB3.41 MiB+ 9.89 KiB
Average 0.396 s0.375 s-0.020 s3.81 MiB3.87 MiB+ 67.61 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
PHP44.0%2,00872213
PO File40.7%1,8598795
JavaScript14.5%6631373
Markdown0.6%2801
CSS0.2%1011
Total 4,568 1,739 23

PHP Code Analysis | More results »

Lines of code 1,663
Total complexity 530
Median class complexity 21.0
Median method complexity 3.0
Most complex class Simba_Two_Factor_Authentication
Most complex function Simba_Two_Factor_Authentication::tfaVerifyCodeAndUser()
Classes 8
Methods 113
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

[26-Jan-2022 07:56:04 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