Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wp-login-attempt-log/login-attempt-log.php+21
Undefined variable: wpdb
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.97ms] Passed 4 tests
Server-side resources used by WP Login Attempt Log
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.94 ▼0.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.31 ▼3.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.46 ▼7.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.15 ▼7.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.12 ▲4.79 |
Log /wp-admin/admin.php?page=lal_log_show | 3.26 | 35.74 |
Settings /wp-admin/admin.php?page=lal-settings | 3.25 | 33.74 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_login_attempt_log |
New WordPress options |
---|
widget_recent-posts |
lal_db_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Login Attempt Log
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.35 ▼0.18 | 1.77 ▲0.14 | 43.77 ▼3.97 |
Dashboard /wp-admin | 2,221 ▲41 | 5.62 ▲0.06 | 88.39 ▼4.24 | 38.54 ▼5.96 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.05 | 35.18 ▼0.95 | 34.33 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,545 ▲20 | 23.14 ▼0.62 | 654.04 ▲15.55 | 52.52 ▼7.59 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.12 ▼0.09 | 104.85 ▼5.07 | 43.25 ▲1.18 |
Log /wp-admin/admin.php?page=lal_log_show | 1,004 | 1.77 | 27.38 | 42.28 |
Settings /wp-admin/admin.php?page=lal-settings | 875 | 1.71 | 25.71 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- lal_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant LOGIN_ATTEMPT_LOG - assumed 'LOGIN_ATTEMPT_LOG' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-login-attempt-log/lal-settings-init.php on line 3
- > PHP Warning
Use of undefined constant LOGIN_ATTEMPT_LOG - assumed 'LOGIN_ATTEMPT_LOG' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-login-attempt-log/lal-log-init.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-login-attempt-log/templates/lal-settings.tpl.php:116
- > PHP Notice
Undefined variable: counts in wp-content/plugins/wp-login-attempt-log/templates/lal-settings.tpl.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-attempt-log/lal-settings-init.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-attempt-log/lal-log-init.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-login-attempt-log/templates/lal-log.tpl.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
4 plugin tags: log, security, attempt, login
wp-login-attempt-log/login-attempt-log.php 85% from 13 tests
The entry point to "WP Login Attempt Log" version 1.3 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 ("wp-login-attempt-log.php" instead of "login-attempt-log.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected916 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 104 | 25 | 480 |
JavaScript | 1 | 1 | 9 | 351 |
CSS | 1 | 14 | 4 | 79 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.43MB with 0.32MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 267.52KB | 71.47KB | ▼ 73.28% |
assets/screenshot-1.png | 177.85KB | 49.79KB | ▼ 72.00% |