Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.29ms] Passed 4 tests
Server-side resources used by Two Factor Authentication
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 31.19 ▼10.47 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.97 ▼0.10 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.76 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.90 ▲1.39 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.64 ▲6.39 |
Tokenizer Stats /wp-admin/index.php?page=tokenizer-stats-display | 3.27 | 31.16 |
Tokenizer /wp-admin/plugins.php?page=tokenizer-key-config | 3.37 | 31.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Two Factor Authentication
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,653 ▼104 | 13.76 ▼0.82 | 1.35 ▼0.69 | 42.14 ▼6.70 |
Dashboard /wp-admin | 2,222 ▲37 | 4.81 ▼0.06 | 109.78 ▼5.00 | 39.45 ▼8.99 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▲0.02 | 39.56 ▲2.37 | 36.15 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.12 ▼0.21 | 657.59 ▲13.00 | 60.99 ▲1.77 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.18 ▼0.02 | 98.87 ▲0.50 | 42.14 ▼0.20 |
Tokenizer Stats /wp-admin/index.php?page=tokenizer-stats-display | 754 | 2.05 | 26.22 | 22.00 |
Tokenizer /wp-admin/plugins.php?page=tokenizer-key-config | 830 | 2.06 | 24.41 | 30.15 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=tokenizer-stats-display
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'tokenizer_stats_display' not found or invalid function name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=tokenizer-key-config
- > Notice in wp-content/plugins/tokenizer-two-factor-authentication/admin.php+87
Undefined variable: key_status
SRP 50% from 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tokenizer-two-factor-authentication/tokenizer.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tokenizer-two-factor-authentication/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please a description for screenshot #3 in tokenizer-two-factor-authentication/assets to your readme.txt
tokenizer-two-factor-authentication/tokenizer.php 92% from 13 tests
The primary PHP file in "Two Factor Authentication" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tokenizer-two-factor-authentication.php" instead of "tokenizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin512 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 136 | 190 | 512 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin