Two Factor Authentication 1.14.14

Does Two Factor Authentication work with WordPress 6.2 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: 67.85 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.2
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=91427c87ad
Aspect after-activation
HTTP status 200
Load time 0.234 s
Memory usage 3.08 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.207 s
Memory usage 3.08 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.156 s
Memory usage 3.16 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.186 s
Memory usage 3.09 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.716 s0.230 s-0.486 s3.07 MiB3.14 MiB+ 71.49 KiB
/wp-admin/edit.php0.191 s0.189 s-0.002 s3.1 MiB3.17 MiB+ 71.49 KiB
/wp-admin/post-new.php0.756 s0.566 s-0.190 s5.02 MiB5.09 MiB+ 75.64 KiB
/wp-admin/upload.php0.531 s0.391 s-0.140 s3.02 MiB3.07 MiB+ 54.09 KiB
/wp-admin/options-writing.php0.148 s0.159 s+0.011 s3.01 MiB3.05 MiB+ 40.84 KiB
/wp-admin/media-new.php0.262 s0.235 s-0.027 s2.99 MiB3.06 MiB+ 66.27 KiB
/wp-admin/edit-tags.php?taxonomy=category0.249 s0.177 s-0.072 s3.01 MiB3.08 MiB+ 71.45 KiB
/wp-admin/post-new.php?post_type=page0.594 s0.603 s+0.009 s5.01 MiB5.08 MiB+ 71.23 KiB
/wp-admin/options-discussion.php0.198 s0.218 s+0.020 s3 MiB3.05 MiB+ 54.89 KiB
/wp-admin/edit-comments.php0.198 s0.198 s+0.000 s3.03 MiB3.08 MiB+ 54.12 KiB
/0.319 s0.203 s-0.116 s2.97 MiB3.08 MiB+ 114.88 KiB
Average 0.378 s0.288 s-0.090 s3.38 MiB3.45 MiB+ 67.85 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.

PO File
PHP
JavaScript
Language % Lines of code Comment lines Files
PO File50.3%3,0791,5339
PHP35.5%2,17699814
JavaScript13.2%8071644
Markdown0.8%4702
CSS0.2%1011
JSON0.1%501
Total 6,124 2,696 31

PHP Code Analysis | More results »

Lines of code 1,816
Total complexity 606
Median class complexity 22.0
Median method complexity 3.0
Most complex class Simba_Two_Factor_Authentication_1
Most complex function Simba_Two_Factor_Authentication_1::tfaVerifyCodeAndUser()
Classes 8
Methods 142
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

[30-Mar-2023 19:06: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