Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/dh-rename-login-url/dh-rename-login-url.php+35
Non-static method DRenameLoginURL\Base\DRLU_Activate::activate() should not be called statically
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.38ms] Passed 4 tests
A check of server-side resources used by DH Rename Login URL and Two Factor Authentication
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.16 ▼2.85 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.95 ▼16.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.13 ▼2.20 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.91 ▼16.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.32 ▼2.28 |
Server storage [IO: ▲0.21MB] [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: 82 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
dh_login |
Browser metrics Passed 4 tests
A check of browser resources used by DH Rename Login URL and Two Factor Authentication
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 13.37 ▼1.01 | 1.96 ▼0.18 | 31.40 ▼14.71 |
Dashboard /wp-admin | 2,241 ▲41 | 5.87 ▼0.15 | 110.76 ▲2.07 | 46.78 ▲7.32 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.01 ▲0.01 | 36.74 ▼1.27 | 39.40 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,543 ▼2 | 23.22 ▲0.24 | 676.04 ▲31.34 | 61.60 ▲5.14 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.25 ▼0.03 | 101.49 ▼6.24 | 46.20 ▲1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/login-error.php
- > /wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/ask-for-otp.php
- > /wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/tests/bootstrap.php
- > /wp-content/plugins/dh-rename-login-url/dh-rename-login-url.php
- > /wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/login.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sonata\\GoogleAuthenticator\\GoogleAuthenticatorInterface' not found in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/src/GoogleAuthenticator.php:19
- > PHP Notice
Undefined variable: debug in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/ask-for-otp.php on line 15
- > PHP Fatal error
Uncaught Error: Call to a member function getUsername() on null in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/loggedin.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/tests/GoogleQrUrlTest.php:18
- > PHP Notice
Undefined variable: debug in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/ask-for-otp.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Sonata\\GoogleAuthenticator\\GoogleAuthenticatorInterface' not found in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/src/GoogleAuthenticator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dh-rename-login-url/templates/index.php:6
- > PHP Notice
Undefined variable: user in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/loggedin.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/tests/FixedBitNotationTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Sonata\\GoogleAuthenticator\\GoogleQrUrl' not found in wp-content/plugins/dh-rename-login-url/vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php:7
- > 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 79% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: tfa, rename-login-url, two-factor-authentication, login-url, security
dh-rename-login-url/dh-rename-login-url.php 54% from 13 tests
The principal PHP file in "DH Rename Login URL and Two Factor Authentication" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.6")
- Git Repository: A Git repository was detected inside this plugin
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.6")
- 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 detected3,657 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 521 | 695 | 1,922 |
Markdown | 12 | 285 | 0 | 762 |
CSS | 2 | 37 | 2 | 375 |
YAML | 7 | 54 | 11 | 188 |
JavaScript | 2 | 43 | 18 | 154 |
JSON | 3 | 0 | 0 | 129 |
make | 1 | 14 | 3 | 50 |
XML | 1 | 6 | 4 | 28 |
Bourne Shell | 5 | 12 | 1 | 26 |
Python | 1 | 69 | 167 | 23 |
PHP code Passed 2 tests
This is a very shot review 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.36 |
Average class complexity | 10.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 5 | 25.00% |
Methods | 125 | |
▷ Static methods | 16 | 12.80% |
▷ Public methods | 121 | 96.80% |
▷ Protected methods | 1 | 0.80% |
▷ Private methods | 3 | 2.40% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 32.27KB | 14.09KB | ▼ 56.34% |