Two Factor Authentication 1.10.0

Does "Two Factor Authentication (Premium)" work with WordPress 5.7.2 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: 56.62 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.2
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=36dcd50f3d
Aspect after-activation
HTTP status 200
Load time 0.406 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.260 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.157 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.217 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.264 s0.277 s+0.013 s2.82 MiB2.88 MiB+ 63.6 KiB
/wp-admin/edit.php0.215 s0.210 s-0.005 s2.86 MiB2.93 MiB+ 63.6 KiB
/wp-admin/post-new.php1.424 s1.041 s-0.383 s5.02 MiB5.1 MiB+ 76.73 KiB
/wp-admin/upload.php0.580 s0.288 s-0.292 s2.7 MiB2.75 MiB+ 58.47 KiB
/wp-admin/options-writing.php0.273 s0.260 s-0.013 s2.71 MiB2.74 MiB+ 26.45 KiB
/wp-admin/media-new.php0.257 s0.214 s-0.043 s2.67 MiB2.73 MiB+ 58.64 KiB
/wp-admin/edit-tags.php?taxonomy=category0.224 s0.207 s-0.017 s2.77 MiB2.83 MiB+ 59.55 KiB
/wp-admin/post-new.php?post_type=page1.101 s0.768 s-0.333 s5.01 MiB5.08 MiB+ 68.31 KiB
/wp-admin/options-discussion.php0.314 s0.302 s-0.012 s2.67 MiB2.73 MiB+ 59.27 KiB
/wp-admin/edit-comments.php0.245 s0.229 s-0.016 s2.78 MiB2.83 MiB+ 58.49 KiB
/0.323 s0.250 s-0.073 s2.65 MiB2.68 MiB+ 29.71 KiB
Average 0.475 s0.368 s-0.107 s3.15 MiB3.21 MiB+ 56.62 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
PHP46.6%2,13762513
PO File40.6%1,8598795
JavaScript12.0%5501282
Markdown0.6%2801
CSS0.2%1011
Total 4,584 1,633 22

PHP Code Analysis | More results »

Lines of code 1,812
Total complexity 535
Median class complexity 15.0
Median method complexity 3.0
Most complex class Simba_Two_Factor_Authentication
Most complex function Simba_Two_Factor_Authentication::tfaVerifyCodeAndUser()
Classes 9
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

[17-Jun-2021 17:21:58 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