WP 2FA - Two-factor authentication for WordPress 1.6.0

Does "WP 2FA - Two-factor authentication for WordPress" work with WordPress 5.7.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
1Page failed to load
  • 1 404 Not Found
No resource errors
Performance

Memory usage: 189.67 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 version5.7.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 70,000+
WordPress.org page https://wordpress.org/plugins/wp-2fa/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

WP 2FA › Setup Wizard

Page screenshot: WP 2FA › Setup Wizard
URL /wp-admin/user-edit.php?page=wp-2fa-setup&is_initial_setup=true
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-2fa%2Fwp-2fa.php&plugin_status=all&paged=1&s&_wpnonce=de7eb7c453
Aspect after-activation
HTTP status 200
Load time 0.573 s
Memory usage N/A
JS errors None
Resource errors None

Dashboard →

Page screenshot: Dashboard →
URL /wp-admin/wp-2fa-setup
Aspect menu-item
HTTP status 404
Load time 0.258 s
Memory usage 2.73 MiB
JS errors None
Resource errors None

Settings → Two-factor Authentication

Page screenshot: Settings → Two-factor Authentication
URL /wp-admin/options-general.php?page=wp-2fa-settings
Aspect menu-item
HTTP status 200
Load time 0.209 s
Memory usage 2.89 MiB
JS errors None
Resource errors None

Settings → Two-factor Authentication → Email Settings & Templates

Page screenshot: Settings → Two-factor Authentication → Email Settings & Templates
URL /wp-admin/admin.php?page=wp-2fa-settings&tab=email-settings
Aspect menu-item-tab
HTTP status 200
Load time 1.003 s
Memory usage 2.95 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.258 s
Memory usage 2.77 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.444 s0.325 s-0.119 s2.82 MiB2.97 MiB+ 157.28 KiB
/wp-admin/edit.php0.199 s0.217 s+0.018 s2.86 MiB3.07 MiB+ 210.52 KiB
/wp-admin/post-new.php0.994 s1.053 s+0.059 s5.02 MiB5.24 MiB+ 217.78 KiB
/wp-admin/upload.php0.525 s0.513 s-0.012 s2.7 MiB2.91 MiB+ 219.62 KiB
/wp-admin/options-writing.php0.268 s0.195 s-0.073 s2.71 MiB2.9 MiB+ 190.72 KiB
/wp-admin/media-new.php0.273 s0.269 s-0.004 s2.67 MiB2.89 MiB+ 221.98 KiB
/wp-admin/edit-tags.php?taxonomy=category0.225 s0.221 s-0.004 s2.77 MiB2.93 MiB+ 158.52 KiB
/wp-admin/post-new.php?post_type=page1.224 s0.713 s-0.511 s5.01 MiB5.22 MiB+ 213.37 KiB
/wp-admin/options-discussion.php0.331 s0.237 s-0.094 s2.67 MiB2.89 MiB+ 223.54 KiB
/wp-admin/edit-comments.php0.238 s0.246 s+0.008 s2.78 MiB2.93 MiB+ 156.23 KiB
/0.300 s0.224 s-0.076 s2.65 MiB2.77 MiB+ 116.85 KiB
Average 0.456 s0.383 s-0.073 s3.15 MiB3.34 MiB+ 189.67 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
Language % Lines of code Comment lines Files
PHP100.0%6,5831,92527
Total 6,583 1,925 27

PHP Code Analysis | More results »

Lines of code 6,632
Total complexity 1,247
Median class complexity 17.0
Median method complexity 3.0
Most complex class WP2FA\Admin\SettingsPage
Most complex function WP2FA\Admin\SettingsPage::validate_and_sanitize()
Classes 23
Methods 217
Functions 16

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

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide WP 2FA - Two-factor authentication for WordPress Admin Menus