WP 2FA - Two-factor authentication for WordPress 1.6.1

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=11236243d1
Aspect after-activation
HTTP status 200
Load time 0.590 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.246 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.193 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.024 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.261 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.274 s0.312 s+0.038 s2.82 MiB2.97 MiB+ 157.28 KiB
/wp-admin/edit.php0.190 s0.230 s+0.040 s2.86 MiB3.07 MiB+ 210.52 KiB
/wp-admin/post-new.php0.969 s1.004 s+0.035 s5.02 MiB5.24 MiB+ 217.78 KiB
/wp-admin/upload.php0.525 s0.496 s-0.029 s2.7 MiB2.91 MiB+ 219.62 KiB
/wp-admin/options-writing.php0.171 s0.198 s+0.027 s2.71 MiB2.9 MiB+ 190.72 KiB
/wp-admin/media-new.php0.207 s0.214 s+0.007 s2.67 MiB2.89 MiB+ 221.98 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.267 s+0.068 s2.77 MiB2.93 MiB+ 158.52 KiB
/wp-admin/post-new.php?post_type=page0.965 s0.645 s-0.320 s5.01 MiB5.22 MiB+ 213.37 KiB
/wp-admin/options-discussion.php0.335 s0.232 s-0.103 s2.67 MiB2.89 MiB+ 223.54 KiB
/wp-admin/edit-comments.php0.267 s0.240 s-0.027 s2.78 MiB2.93 MiB+ 156.23 KiB
/0.281 s0.227 s-0.054 s2.65 MiB2.77 MiB+ 116.85 KiB
Average 0.398 s0.370 s-0.029 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,6091,93327
Total 6,609 1,933 27

PHP Code Analysis | More results »

Lines of code 6,658
Total complexity 1,253
Median class complexity 17.0
Median method complexity 2.5
Most complex class WP2FA\Admin\SettingsPage
Most complex function WP2FA\Admin\SettingsPage::validate_and_sanitize()
Classes 23
Methods 218
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