WP 2FA - Two-factor authentication for WordPress 1.5.2

Does "WP 2FA - Two-factor authentication for WordPress" work with WordPress 5.7.1 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: 155.74 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.1
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=88277d0e2a
Aspect after-activation
HTTP status 200
Load time 0.454 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.241 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.186 s
Memory usage 2.86 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 0.980 s
Memory usage 2.93 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.253 s
Memory usage 2.76 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.268 s0.301 s+0.033 s2.82 MiB2.94 MiB+ 125.12 KiB
/wp-admin/edit.php0.181 s0.228 s+0.047 s2.86 MiB2.99 MiB+ 130.98 KiB
/wp-admin/post-new.php0.934 s1.181 s+0.247 s5.02 MiB5.23 MiB+ 210.35 KiB
/wp-admin/upload.php0.512 s0.468 s-0.044 s2.7 MiB2.88 MiB+ 188.77 KiB
/wp-admin/options-writing.php0.230 s0.219 s-0.011 s2.71 MiB2.87 MiB+ 159.14 KiB
/wp-admin/media-new.php0.217 s0.220 s+0.003 s2.67 MiB2.86 MiB+ 190.09 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.220 s+0.024 s2.77 MiB2.89 MiB+ 126.94 KiB
/wp-admin/post-new.php?post_type=page1.204 s0.751 s-0.453 s5.01 MiB5.21 MiB+ 205.94 KiB
/wp-admin/options-discussion.php0.279 s0.212 s-0.067 s2.67 MiB2.86 MiB+ 191.96 KiB
/wp-admin/edit-comments.php0.220 s0.206 s-0.014 s2.78 MiB2.9 MiB+ 124.65 KiB
/0.257 s0.210 s-0.047 s2.71 MiB2.76 MiB+ 59.25 KiB
Average 0.409 s0.383 s-0.026 s3.16 MiB3.31 MiB+ 155.74 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%5,7801,65324
Total 5,780 1,653 24

PHP Code Analysis | More results »

Lines of code 5,831
Total complexity 1,067
Median class complexity 18.0
Median method complexity 2.0
Most complex class WP2FA\Admin\SettingsPage
Most complex function WP2FA\Admin\SettingsPage::validate_and_sanitize()
Classes 20
Methods 195
Functions 15

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