Two Factor Authentication 1.14.26

Does Two Factor Authentication work with WordPress 6.7.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: 71.35 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.7.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=39e733f134
Aspect after-activation
HTTP status 200
Load time 0.265 s
Memory usage 3.58 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.178 s
Memory usage 3.54 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.160 s
Memory usage 3.58 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.182 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.275 s0.270 s-0.005 s3.48 MiB3.56 MiB+ 84.59 KiB
/wp-admin/edit.php0.182 s0.185 s+0.003 s3.54 MiB3.63 MiB+ 85.22 KiB
/wp-admin/post-new.php0.708 s0.605 s-0.103 s5.92 MiB6.01 MiB+ 89.1 KiB
/wp-admin/upload.php0.508 s0.298 s-0.210 s3.49 MiB3.56 MiB+ 67.81 KiB
/wp-admin/options-writing.php0.197 s0.171 s-0.026 s3.47 MiB3.54 MiB+ 71.8 KiB
/wp-admin/media-new.php0.246 s0.296 s+0.050 s3.46 MiB3.54 MiB+ 80 KiB
/wp-admin/edit-tags.php?taxonomy=category0.161 s0.175 s+0.014 s3.48 MiB3.56 MiB+ 90.66 KiB
/wp-admin/post-new.php?post_type=page0.528 s0.555 s+0.027 s5.92 MiB6 MiB+ 84.32 KiB
/wp-admin/options-discussion.php0.295 s0.257 s-0.038 s3.47 MiB3.54 MiB+ 68.3 KiB
/wp-admin/edit-comments.php0.179 s0.205 s+0.026 s3.49 MiB3.56 MiB+ 67.8 KiB
/0.280 s0.199 s-0.081 s3.48 MiB3.47 MiB- 4.72 KiB
Average 0.324 s0.292 s-0.031 s3.93 MiB4 MiB+ 71.35 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.7%2,4251,11415
PO File39.6%2,2001,2407
JavaScript15.1%8401675
Markdown0.8%4702
JSON0.5%2701
CSS0.2%1011
Total 5,549 2,522 31

PHP Code Analysis | More results »

Lines of code 2,040
Total complexity 682
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

[22-Nov-2024 03:56:52 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