Two Factor Authentication 1.14.23

Does Two Factor Authentication work with WordPress 6.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: 91.27 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.6.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=32d5d2ee8a
Aspect after-activation
HTTP status 200
Load time 0.211 s
Memory usage 3.57 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.150 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.133 s
Memory usage 3.57 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.169 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.295 s0.264 s-0.031 s3.47 MiB3.56 MiB+ 85.49 KiB
/wp-admin/edit.php0.170 s0.151 s-0.019 s3.54 MiB3.62 MiB+ 85.75 KiB
/wp-admin/post-new.php0.634 s0.523 s-0.111 s5.75 MiB5.84 MiB+ 89.64 KiB
/wp-admin/upload.php0.442 s0.309 s-0.133 s3.49 MiB3.56 MiB+ 68.34 KiB
/wp-admin/options-writing.php0.183 s0.322 s+0.139 s3.41 MiB3.54 MiB+ 131.15 KiB
/wp-admin/media-new.php0.199 s0.199 s+0.000 s3.4 MiB3.54 MiB+ 144.53 KiB
/wp-admin/edit-tags.php?taxonomy=category0.165 s0.151 s-0.014 s3.47 MiB3.56 MiB+ 91.2 KiB
/wp-admin/post-new.php?post_type=page0.496 s0.495 s-0.001 s5.75 MiB5.83 MiB+ 85.23 KiB
/wp-admin/options-discussion.php0.183 s0.204 s+0.021 s3.41 MiB3.54 MiB+ 132.84 KiB
/wp-admin/edit-comments.php0.188 s0.175 s-0.013 s3.49 MiB3.56 MiB+ 68.34 KiB
/0.254 s0.184 s-0.070 s3.45 MiB3.47 MiB+ 21.52 KiB
Average 0.292 s0.271 s-0.021 s3.88 MiB3.96 MiB+ 91.27 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,4221,11115
PO File39.7%2,2001,2407
JavaScript15.1%8401675
Markdown0.8%4702
JSON0.5%2701
CSS0.2%1011
Total 5,546 2,519 31

PHP Code Analysis | More results »

Lines of code 2,037
Total complexity 681
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 159
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

[11-Sep-2024 04:06:54 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