Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/value-auth-two-factor-and-access-control/lib/ValueAuthSetting.php+68
Undefined offset: 0
Server metrics [RAM: ▲0.37MB] [CPU: ▼3.98ms] Passed 4 tests
A check of server-side resources used by Value-Auth Two Factor and Access Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 38.79 ▼3.26 |
Dashboard /wp-admin | 3.68 ▲0.37 | 52.19 ▼9.84 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 53.21 ▲5.70 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 88.86 ▼2.45 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 41.70 ▼0.38 |
ログインの管理 /wp-admin/admin.php?page=vauth_twofactor_admin | 3.51 | 34.54 |
認証設定 /wp-admin/admin.php?page=vauth_setting | 3.51 | 35.16 |
2段階認証 /wp-admin/admin.php?page=vauth_twofactor_setting | 3.51 | 34.88 |
Server storage [IO: ▲7.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 945 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_value_auth_users |
wp_value_auth_settings |
New WordPress options |
---|
can_compress_scripts |
va_db_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Value-Auth Two Factor and Access Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲129 | 18.72 ▲4.32 | 69.36 ▲67.24 | 38.02 ▼8.27 |
Dashboard /wp-admin | 2,262 ▲74 | 7.42 ▲2.51 | 188.90 ▲72.68 | 48.32 ▲4.19 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 4.47 ▲2.46 | 58.71 ▲19.27 | 34.82 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 20.63 ▼2.56 | 514.16 ▼174.66 | 26.57 ▼30.88 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 7.24 ▲3.03 | 116.52 ▲11.07 | 45.86 ▲1.10 |
ログインの管理 /wp-admin/admin.php?page=vauth_twofactor_admin | 797 | 4.51 | 46.26 | 48.31 |
認証設定 /wp-admin/admin.php?page=vauth_setting | 891 | 4.36 | 47.43 | 57.41 |
2段階認証 /wp-admin/admin.php?page=vauth_twofactor_setting | 806 | 4.40 | 45.85 | 36.99 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/value-auth-two-factor-and-access-control/lib/elements/views/code_input.php
- > /wp-content/plugins/value-auth-two-factor-and-access-control/lib/elements/views/management_console.php
- > /wp-content/plugins/value-auth-two-factor-and-access-control/lib/elements/views/2fa_setting.php
- 514× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ValueAuth\\ApiResult\\ApiResult' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/digirock/value-auth-php/src/ValueAuth/ApiResult/IpAddressRestrictionListResult.php:5
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\DocBlock\\TagFactory' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php:38
- > PHP Fatal error
Uncaught Error: Class 'Tebru\\Gson\\TypeAdapter' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/tebru/gson-php/tests/Mock/TypeAdapterMock.php:21
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/guzzlehttp/psr7/src/BufferStream.php:15
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\TagWithType' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php:25
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/symfony/cache/Adapter/MemcachedAdapter.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Tebru\\Gson\\Internal\\SetterStrategy' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/tebru/gson-php/src/Internal/AccessorStrategy/SetByClosure.php:21
- > PHP Fatal error
Uncaught Error: Class 'ValueAuth\\ApiResult\\Model' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/digirock/value-auth-php/src/ValueAuth/ApiResult/CountryRestriction.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Tebru\\Gson\\TypeAdapterFactory' not found in wp-content/plugins/value-auth-two-factor-and-access-control/vendor/tebru/gson-php/src/TypeAdapter/Factory/WrappedTypeAdapterFactory.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vauth_twofactor_setting
- > Javascript (severe) in unknown
/wp-content/plugins/value-auth-two-factor-and-access-control/lib/public/dist/js/managementConsole.js?ver=6.3.1 88428:59 Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: 2fa, login, wordpress sso, security, two factor auth
value-auth-two-factor-and-access-control/valueauth.php 85% from 13 tests
The principal PHP file in "Value-Auth Two Factor and Access Control" v. 2.0.5 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("value-auth-two-factor-and-access-control.php" instead of "valueauth.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin176,065 lines of code in 899 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 27,608 | 19,480 | 127,842 |
PHP | 790 | 9,680 | 24,771 | 38,696 |
Markdown | 49 | 1,818 | 0 | 5,604 |
JSON | 31 | 0 | 0 | 2,794 |
YAML | 12 | 80 | 1 | 492 |
reStructuredText | 4 | 210 | 329 | 237 |
XML | 9 | 21 | 12 | 230 |
CSS | 1 | 40 | 14 | 161 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 111 | |
Interfaces | 105 | |
Traits | 18 | |
Classes | 650 | |
▷ Abstract classes | 24 | 3.69% |
▷ Concrete classes | 626 | 96.31% |
▷ Final classes | 151 | 24.12% |
Methods | 3,357 | |
▷ Static methods | 600 | 17.87% |
▷ Public methods | 2,919 | 86.95% |
▷ Protected methods | 122 | 3.63% |
▷ Private methods | 316 | 9.41% |
Functions | 257 | |
▷ Named functions | 84 | 32.68% |
▷ Anonymous functions | 173 | 67.32% |
Constants | 240 | |
▷ Global constants | 4 | 1.67% |
▷ Class constants | 236 | 98.33% |
▷ Public constants | 199 | 84.32% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin