Two Factor Authentication 1.14.27

Does Two Factor Authentication work with WordPress 6.8.1 and PHP 8.1.12? 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: 83.02 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 version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
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=d3d174938c
Aspect after-activation
HTTP status 200
Load time 0.275 s
Memory usage 3.61 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.186 s
Memory usage 3.57 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.206 s
Memory usage 3.61 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.174 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.380 s0.306 s-0.074 s3.51 MiB3.59 MiB+ 85.82 KiB
/wp-admin/edit.php0.204 s0.190 s-0.014 s3.57 MiB3.66 MiB+ 86.02 KiB
/wp-admin/post-new.php0.773 s0.641 s-0.132 s6.06 MiB6.17 MiB+ 109.97 KiB
/wp-admin/upload.php0.560 s0.486 s-0.074 s3.52 MiB3.59 MiB+ 68.62 KiB
/wp-admin/options-writing.php0.222 s0.196 s-0.026 s3.5 MiB3.57 MiB+ 72.61 KiB
/wp-admin/media-new.php0.293 s0.243 s-0.050 s3.49 MiB3.57 MiB+ 80.8 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.195 s+0.003 s3.5 MiB3.59 MiB+ 91.48 KiB
/wp-admin/post-new.php?post_type=page0.597 s0.575 s-0.022 s6.05 MiB6.15 MiB+ 105.49 KiB
/wp-admin/options-discussion.php0.452 s0.264 s-0.188 s3.5 MiB3.57 MiB+ 69.11 KiB
/wp-admin/edit-comments.php0.419 s0.183 s-0.236 s3.52 MiB3.59 MiB+ 68.61 KiB
/0.309 s0.166 s-0.143 s3.43 MiB3.51 MiB+ 74.64 KiB
Average 0.400 s0.313 s-0.087 s3.97 MiB4.05 MiB+ 83.02 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
PHP43.8%2,4311,11715
PO File39.6%2,2001,2407
JavaScript15.1%8401675
Markdown0.8%4702
JSON0.5%2701
CSS0.2%1011
Total 5,555 2,525 31

PHP Code Analysis | More results »

Lines of code 2,046
Total complexity 683
Median class complexity 17.0
Median method complexity 3.0
Most complex class Simba_Two_Factor_Authentication_1
Most complex function Simba_Two_Factor_Authentication_1::tfaVerifyCodeAndUser()
Classes 9
Methods 160
Functions 1

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

[01-May-2025 04:53:09 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