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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.81ms] Passed 4 tests
Analyzing server-side resources used by Token2 Two Factor Authentication
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.12 ▼0.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.87 ▼6.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.58 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.19 ▼15.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.56 ▲1.19 |
token2 /wp-admin/options-general.php?page=token2 | 3.19 | 32.63 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Token2 Two Factor Authentication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.74 ▲0.45 | 1.69 ▲0.02 | 41.83 ▲0.52 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.02 | 87.05 ▼2.29 | 38.56 ▼4.45 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.11 | 40.93 ▼1.11 | 36.00 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▼0.52 | 638.96 ▼74.44 | 59.21 ▲3.28 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.18 ▼0.01 | 93.93 ▼5.52 | 45.43 ▲2.85 |
token2 /wp-admin/options-general.php?page=token2 | 891 | 2.01 | 23.05 | 26.45 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=token2
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=token2
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/token2-two-factor-authentication/token2.php:161
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
token2-two-factor-authentication/token2.php 85% from 13 tests
The entry point to "Token2 Two Factor Authentication" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("token2-two-factor-authentication.php" instead of "token2.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,335 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 359 | 507 | 1,239 |
CSS | 1 | 0 | 0 | 52 |
JavaScript | 2 | 6 | 0 | 26 |
Markdown | 1 | 15 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 80.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 43 | 78.18% |
▷ Protected methods | 8 | 14.55% |
▷ Private methods | 4 | 7.27% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
3 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/phone-icon.png | 1.11KB | 0.35KB | ▼ 68.68% |
assets/images/step1-image.png | 73.79KB | 10.85KB | ▼ 85.30% |
assets/screenshot-1.png | 66.65KB | 8.50KB | ▼ 87.24% |