Two Factor Authentication 1.14.17

Does Two Factor Authentication work with WordPress 6.5.5 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.24 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.5.5
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=67c64d0358
Aspect after-activation
HTTP status 200
Load time 0.432 s
Memory usage 3.46 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 3.45 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.181 s
Memory usage 3.53 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.229 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.384 s0.323 s-0.061 s3.44 MiB3.52 MiB+ 83.98 KiB
/wp-admin/edit.php0.215 s0.195 s-0.020 s3.46 MiB3.54 MiB+ 84.34 KiB
/wp-admin/post-new.php0.956 s0.604 s-0.352 s5.59 MiB5.68 MiB+ 88.13 KiB
/wp-admin/upload.php0.556 s0.484 s-0.072 s3.38 MiB3.45 MiB+ 66.94 KiB
/wp-admin/options-writing.php0.226 s0.215 s-0.011 s3.37 MiB3.43 MiB+ 58.9 KiB
/wp-admin/media-new.php0.308 s0.249 s-0.059 s3.35 MiB3.43 MiB+ 79.13 KiB
/wp-admin/edit-tags.php?taxonomy=category0.194 s0.205 s+0.011 s3.37 MiB3.45 MiB+ 84.3 KiB
/wp-admin/post-new.php?post_type=page0.565 s0.595 s+0.030 s5.59 MiB5.67 MiB+ 83.71 KiB
/wp-admin/options-discussion.php0.375 s0.311 s-0.064 s3.36 MiB3.42 MiB+ 67.43 KiB
/wp-admin/edit-comments.php0.262 s0.232 s-0.030 s3.39 MiB3.46 MiB+ 66.97 KiB
/0.316 s0.205 s-0.111 s3.42 MiB3.44 MiB+ 19.83 KiB
Average 0.396 s0.329 s-0.067 s3.79 MiB3.86 MiB+ 71.24 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,4081,10415
PO File23.0%9805863
JavaScript19.3%8251645
Markdown1.1%4702
CSS0.2%1011
Total 4,270 1,855 26

PHP Code Analysis | More results »

Lines of code 2,024
Total complexity 673
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 158
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

[25-Jun-2024 10:53:43 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