Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.25ms] Passed 4 tests
This is a short check of server-side resources used by Kaya Login Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.13 ▲1.98 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.39 ▼4.38 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.42 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.71 ▼17.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.29 ▲5.45 |
Kaya Studio /wp-admin/admin.php?page=kayastudio-plugins-admin-main-page | 3.27 | 31.77 |
Login Notification /wp-admin/admin.php?page=wpkln-kaya-login-notification-admin-settings-page | 3.32 | 29.30 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Kaya Login Notification: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 13.35 ▼1.21 | 1.74 ▲0.04 | 42.71 ▼0.33 |
Dashboard /wp-admin | 2,310 ▲125 | 5.88 ▼0.08 | 104.38 ▲1.53 | 37.90 ▼6.37 |
Posts /wp-admin/edit.php | 2,200 ▲111 | 2.04 ▼0.02 | 41.95 ▲6.74 | 34.77 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,541 ▲20 | 23.34 ▲0.05 | 667.19 ▼8.45 | 55.10 ▼1.69 |
Media Library /wp-admin/upload.php | 1,499 ▲111 | 4.25 ▲0.03 | 96.33 ▼11.23 | 43.22 ▼5.26 |
Kaya Studio /wp-admin/admin.php?page=kayastudio-plugins-admin-main-page | 1,038 | 1.67 | 23.97 | 40.82 |
Login Notification /wp-admin/admin.php?page=wpkln-kaya-login-notification-admin-settings-page | 1,340 | 1.71 | 22.44 | 39.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: administration, dashboard, admin login notification, sign-in, login notification...
kaya-login-notification/kaya-login-notification.php Passed 13 tests
The principal PHP file in "Kaya Login Notification" v. 1.5.2 is loaded by WordPress automatically on each request
79 characters long description:
Sends email notification on successful login, with fully customizable settings.
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 plugin3,618 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 345 | 861 | 2,869 |
CSS | 2 | 90 | 23 | 544 |
PO File | 1 | 76 | 102 | 205 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 63.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 15 | 12.20% |
▷ Public methods | 45 | 36.59% |
▷ Protected methods | 68 | 55.28% |
▷ Private methods | 10 | 8.13% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 6 | 6.19% |
▷ Class constants | 91 | 93.81% |
▷ Public constants | 91 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin