Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.68ms] Passed 4 tests
An overview of server-side resources used by NutsForPress Login Watchdog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.17 ▲0.43 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.94 ▼5.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.20 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.57 ▼4.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.48 ▼1.30 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 3.22 | 38.73 |
Login Watchdog /wp-admin/admin.php?page=nfplwd-settings | 3.64 | 37.38 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_nfplwd_failed_login_history |
wp_nfplwd_failed_login_attempts |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for NutsForPress Login Watchdog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.43 ▼0.01 | 1.78 ▲0.13 | 40.06 ▼3.62 |
Dashboard /wp-admin | 2,254 ▲54 | 5.83 ▲0.82 | 105.59 ▼11.37 | 40.58 ▼3.65 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.06 ▲0.08 | 42.32 ▲7.69 | 34.65 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.42 ▲5.90 | 619.88 ▲7.95 | 53.44 ▲3.74 |
Media Library /wp-admin/upload.php | 1,433 ▲39 | 4.29 ▲0.06 | 101.62 ▼0.12 | 41.92 ▼0.64 |
NutsForPress /wp-admin/admin.php?page=nfproot-settings | 824 | 2.08 | 24.35 | 27.89 |
Login Watchdog /wp-admin/admin.php?page=nfplwd-settings | 1,893 | 2.09 | 25.80 | 31.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 27× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/nutsforpress-login-watchdog/root/nfproot-settings.php
- > /wp-content/plugins/nutsforpress-login-watchdog/admin/includes/nfplwd-disable-xmlrpc.php
- > /wp-content/plugins/nutsforpress-login-watchdog/public/includes/ajax/nfplwd-core-difference-notification.php
- > /wp-content/plugins/nutsforpress-login-watchdog/admin/includes/nfplwd-user-login-notification.php
- > /wp-content/plugins/nutsforpress-login-watchdog/admin/nfplwd-settings-content.php
- > /wp-content/plugins/nutsforpress-login-watchdog/root/nfproot-styles-and-scripts.php
- > /wp-content/plugins/nutsforpress-login-watchdog/public/includes/nfplwd-check-two-factors-authentication.php
- > /wp-content/plugins/nutsforpress-login-watchdog/public/includes/nfplwd-hide-usernames-api.php
- > /wp-content/plugins/nutsforpress-login-watchdog/root/nfproot-settings-structure.php
- > /wp-content/plugins/nutsforpress-login-watchdog/includes/nfplwd-load-languages.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version format is invalid
- Tags: You are using too many tags: 15 tag instead of maximum 10
nutsforpress-login-watchdog/nuts-for-press-login-watchdog.php 85% from 13 tests
The primary PHP file in "NutsForPress Login Watchdog" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nutsforpress-login-watchdog.php" instead of "nuts-for-press-login-watchdog.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,130 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,650 | 383 | 2,453 |
PO File | 1 | 344 | 740 | 409 |
JavaScript | 3 | 110 | 52 | 156 |
CSS | 1 | 29 | 1 | 112 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG images were found in this plugin