WP 2FA - Two-factor authentication for WordPress 1.6.2

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: 194.25 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=61b8b95f21
Aspect after-activation
HTTP status 200
Load time 0.625 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.238 s
Memory usage 2.74 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.233 s
Memory usage 2.9 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.112 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.479 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.280 s0.433 s+0.153 s2.82 MiB2.98 MiB+ 161.79 KiB
/wp-admin/edit.php0.186 s0.228 s+0.042 s2.86 MiB3.07 MiB+ 215.34 KiB
/wp-admin/post-new.php1.041 s1.531 s+0.490 s5.02 MiB5.24 MiB+ 222.6 KiB
/wp-admin/upload.php0.502 s0.546 s+0.044 s2.7 MiB2.91 MiB+ 224.44 KiB
/wp-admin/options-writing.php0.259 s0.207 s-0.052 s2.71 MiB2.9 MiB+ 195.54 KiB
/wp-admin/media-new.php0.226 s0.237 s+0.011 s2.67 MiB2.89 MiB+ 226.8 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.216 s+0.026 s2.77 MiB2.93 MiB+ 163.34 KiB
/wp-admin/post-new.php?post_type=page1.326 s0.794 s-0.532 s5.01 MiB5.22 MiB+ 218.19 KiB
/wp-admin/options-discussion.php0.340 s0.221 s-0.119 s2.67 MiB2.9 MiB+ 228.36 KiB
/wp-admin/edit-comments.php0.242 s0.223 s-0.019 s2.78 MiB2.93 MiB+ 161.05 KiB
/0.282 s0.238 s-0.044 s2.65 MiB2.77 MiB+ 119.26 KiB
Average 0.443 s0.443 s+0.000 s3.15 MiB3.34 MiB+ 194.25 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,8802,09528
Total 6,880 2,095 28

PHP Code Analysis | More results »

Lines of code 6,929
Total complexity 1,338
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 24
Methods 242
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 3

User Metadata wp_usermeta 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