Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/redirect-on-first-login/lib/rofl-redirect.php+2
Undefined variable: settings
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.94ms] Passed 4 tests
Analyzing server-side resources used by Redirect On First Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 8.81 ▼34.61 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.60 ▼43.29 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.61 ▼42.68 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.93 ▼87.19 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.09 ▼32.37 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redirect On First Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.17 ▼0.18 | 1.66 ▼0.40 | 42.24 ▼6.37 |
Dashboard /wp-admin | 2,210 ▲42 | 5.63 ▲0.08 | 89.49 ▼10.27 | 39.73 ▼5.52 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.02 ▲0.00 | 35.63 ▼1.88 | 37.92 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 23.25 ▲0.09 | 669.42 ▼19.11 | 62.97 ▲6.50 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.22 ▲0.00 | 109.01 ▼4.53 | 51.13 ▲2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/redirect-on-first-login/lib/rofl-redirect.php+2
Undefined variable: settings
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-on-first-login/lib/rofl-menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-on-first-login/lib/rofl-setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/redirect-on-first-login/lib/rofl-redirect.php:2
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
redirect-on-first-login/redirect-on-first-login.php Passed 13 tests
The entry point to "Redirect On First Login" version 1.0.0 is a PHP file that has certain tags in its header comment area
84 characters long description:
Standalone functionality to redirect users to a special page on their first login(s)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin105 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 16 | 31 | 105 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.50KB | 0.50KB | 0.20% |
images/screenshot-1.png | 65.96KB | 18.08KB | ▼ 72.59% |
screenshot-1.png | 65.96KB | 18.08KB | ▼ 72.59% |