Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼140.18ms] Passed 4 tests
This is a short check of server-side resources used by Login, Logout and Registration Redirects manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.47 | 37.58 ▲15.74 |
Dashboard /wp-admin | 3.42 ▲0.37 | 52.69 ▲9.14 |
Posts /wp-admin/edit.php | 3.47 ▲0.36 | 48.94 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 88.99 ▼571.45 |
Media Library /wp-admin/upload.php | 3.36 ▲0.36 | 36.62 ▼1.83 |
Login/Register/Logout redirects /wp-admin/options-general.php?page=login-register-redirects-manager | 3.37 | 35.92 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login, Logout and Registration Redirects manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,759 ▲163 | 15.87 ▲0.29 | 7.92 ▼0.04 | 49.34 ▲4.60 |
Dashboard /wp-admin | 3,029 ▲95 | 6.10 ▲0.09 | 141.82 ▲4.96 | 121.66 ▲13.86 |
Posts /wp-admin/edit.php | 2,790 ▲54 | 2.83 ▲0.14 | 70.68 ▲8.07 | 102.10 ▲9.99 |
Add New Post /wp-admin/post-new.php | 1,699 ▲27 | 18.89 ▲0.19 | 364.34 ▲8.71 | 107.45 ▲1.06 |
Media Library /wp-admin/upload.php | 1,858 ▲54 | 5.06 ▲0.05 | 171.24 ▲26.19 | 124.99 ▲3.55 |
Login/Register/Logout redirects /wp-admin/options-general.php?page=login-register-redirects-manager | 1,503 | 2.98 | 67.80 | 93.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/login-registration-redirects-manager/views/admin/settings-section/compatible-with.php
- > /wp-content/plugins/login-registration-redirects-manager/views/admin/settings-section/go-to-pro.php
- > /wp-content/plugins/login-registration-redirects-manager/views/admin/settings-section/useful_plugins.php
- > /wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/views/admin-footer.php
- > /wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/class-admin-dismissible-notice.php
- > /wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/class-admin-notice-helper.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function lrr_is_pro() in wp-content/plugins/login-registration-redirects-manager/views/admin/settings-section/support.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/views/public-notice.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/views/admin-notice.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/login-registration-redirects-manager/vendor/underdev/settings/views/settings-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/login-registration-redirects-manager/vendor/max-kk/wp-notice-lib/views/admin-dismissible-notice.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: login, register, redirect, registration, redirects
login-registration-redirects-manager/login-registration-logout-redirects-manager.php 92% from 13 tests
This is the main PHP file of "Login, Logout and Registration Redirects manager" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("login-registration-redirects-manager.php" instead of "login-registration-logout-redirects-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,657 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 514 | 896 | 2,606 |
PHP | 48 | 940 | 1,311 | 2,057 |
Sass | 5 | 38 | 0 | 839 |
JSON | 3 | 0 | 0 | 63 |
CSS | 2 | 10 | 2 | 48 |
Markdown | 1 | 19 | 0 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 26 | 16.67% |
▷ Public methods | 150 | 96.15% |
▷ Protected methods | 4 | 2.56% |
▷ Private methods | 2 | 1.28% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin