Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.04MB] [CPU: ▲7.66ms] Passed 4 tests
An overview of server-side resources used by Two Factor Authentication (2FA , MFA, OTP SMS and Email)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 53.55 ▲11.24 |
Dashboard /wp-admin | 4.35 ▲1.04 | 65.76 ▲9.69 |
Posts /wp-admin/edit.php | 4.40 ▲1.04 | 59.83 ▲12.06 |
Add New Post /wp-admin/post-new.php | 6.95 ▲1.06 | 105.85 ▼2.34 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 53.54 ▲16.14 |
Two Factor /wp-admin/admin.php?page=mo_2fa_two_fa | 4.45 | 67.37 |
/wp-admin/users.php?page=reset | 4.23 | 58.23 |
Troubleshooting /wp-admin/admin.php?page=mo_2fa_troubleshooting | 4.21 | 47.32 |
Account /wp-admin/admin.php?page=mo_2fa_account | 4.34 | 50.12 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 130 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mo2f_user_details |
wp_mo2f_user_login_info |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Two Factor Authentication (2FA , MFA, OTP SMS and Email)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.60 ▼0.69 | 8.80 ▲7.10 | 44.86 ▲3.63 |
Dashboard /wp-admin | 2,229 ▲41 | 4.89 ▲0.04 | 107.44 ▲3.41 | 69.29 ▲26.52 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.03 ▲0.03 | 34.93 ▼3.66 | 34.44 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,697 ▲177 | 22.45 ▼1.09 | 708.59 ▲96.94 | 46.72 ▼11.85 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.10 ▼0.12 | 98.34 ▲0.14 | 44.16 ▲1.92 |
Two Factor /wp-admin/admin.php?page=mo_2fa_two_fa | 3,486 | 13.38 | 274.05 | 94.75 |
/wp-admin/users.php?page=reset | 689 | 1.18 | 8.33 | 20.31 |
Troubleshooting /wp-admin/admin.php?page=mo_2fa_troubleshooting | 1,181 | 2.08 | 29.03 | 39.58 |
Account /wp-admin/admin.php?page=mo_2fa_account | 1,117 | 2.07 | 26.97 | 37.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 46 tag instead of maximum 10
miniorange-login-security/miniorange_2_factor_settings.php 85% from 13 tests
"Two Factor Authentication (2FA , MFA, OTP SMS and Email)" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("miniorange-login-security.php" instead of "miniorange_2_factor_settings.php")
- Description: The description should be shorter than 140 characters (currently 289 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin15,751 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 1,049 | 1,674 | 8,178 |
CSS | 15 | 779 | 169 | 5,511 |
JavaScript | 9 | 492 | 248 | 2,006 |
Markdown | 2 | 24 | 0 | 56 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 144)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 144.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 29 | 21.17% |
▷ Public methods | 118 | 86.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 13.87% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 49 | |
▷ Global constants | 4 | 8.16% |
▷ Class constants | 45 | 91.84% |
▷ Public constants | 45 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 PNG files occupy 0.57MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/authmethods/SecurityQuestions.png | 17.75KB | 7.58KB | ▼ 57.32% |
includes/images/authmethods/EmailVerification.png | 11.27KB | 4.95KB | ▼ 56.09% |
includes/images/support3.png | 2.49KB | 2.11KB | ▼ 15.28% |
(invalid) includes/images/bank-transfer.png | 42.97KB | 0.00KB | ▼ 100.00% |
includes/images/miniOrange2.png | 3.94KB | 2.26KB | ▼ 42.53% |