Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.51ms] Passed 4 tests
Server-side resources used by LoginTC Two Factor Authentication
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 43.73 ▲2.93 |
Dashboard /wp-admin | 3.53 ▲0.18 | 49.50 ▼15.06 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.05 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.01 ▼19.09 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.83 ▲3.32 |
LoginTC Two-Factor /wp-admin/options-general.php?page=logintc_wordpress | 3.36 | 35.05 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
LoginTC Two Factor Authentication: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.33 ▼0.03 | 1.75 ▼0.34 | 40.91 ▲1.66 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.04 | 88.28 ▼7.91 | 40.98 ▼1.04 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.04 | 39.48 ▼3.06 | 34.91 ▼9.92 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.03 ▼4.97 | 605.51 ▼12.45 | 66.45 ▲11.66 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.02 | 100.28 ▼4.46 | 45.23 ▲0.57 |
LoginTC Two-Factor /wp-admin/options-general.php?page=logintc_wordpress | 893 | 2.03 | 25.24 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/logintc-authentication/logintc-authentication.php:99
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== logintc-authentication ===
)
logintc-authentication/logintc-authentication.php Passed 13 tests
The main PHP script in "LoginTC Two Factor Authentication" version 1.0.0 is automatically included on every request by WordPress
51 characters long description:
Two-factor authentication for WordPress by LoginTC.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected827 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 246 | 246 | 794 |
Markdown | 2 | 12 | 0 | 19 |
CSS | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 4 | 7.84% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 2 | 3.92% |
▷ Private methods | 2 | 3.92% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
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 are no PNG files in this plugin