Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.39ms] Passed 4 tests
Analyzing server-side resources used by WordPress User Login Notifier
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 50.66 ▲4.53 |
Dashboard /wp-admin | 3.52 ▲0.22 | 53.79 ▼2.99 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 61.33 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 99.86 ▼5.69 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 42.02 ▲0.01 |
WP User Login Notifier /wp-admin/options-general.php?page=wp-user-login-notifier | 3.36 | 41.42 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
wp_user_login_notifier_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress User Login Notifier
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 14.50 ▲0.22 | 2.38 ▲0.37 | 45.07 ▼1.00 |
Dashboard /wp-admin | 2,338 ▲164 | 6.21 ▲0.63 | 116.33 ▲14.94 | 39.67 ▼6.43 |
Posts /wp-admin/edit.php | 2,266 ▲163 | 3.42 ▲1.47 | 53.18 ▲14.16 | 36.13 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 23.37 ▲5.29 | 637.84 ▼23.98 | 36.48 ▼26.16 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.12 ▼0.03 | 78.45 ▼23.81 | 43.74 ▲0.25 |
WP User Login Notifier /wp-admin/options-general.php?page=wp-user-login-notifier | 1,080 | 3.35 | 44.11 | 24.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: login, failed login, login notification, admin notification, email login notification...
wp-user-login-notifier/wp-user-login-notifier.php Passed 13 tests
This is the main PHP file of "WordPress User Login Notifier" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Notify User/Admin when a users logs in or fails to log in
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,221 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 521 | 1,154 | 2,052 |
PO File | 1 | 24 | 26 | 115 |
JavaScript | 1 | 14 | 16 | 40 |
Markdown | 1 | 6 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 5 | 3.09% |
▷ Public methods | 112 | 69.14% |
▷ Protected methods | 45 | 27.78% |
▷ Private methods | 5 | 3.09% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 57 | |
▷ Global constants | 1 | 1.75% |
▷ Class constants | 56 | 98.25% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin