Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/login-alert-notification/class.nma.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; NotifyMyAndroid has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼57.45ms] Passed 4 tests
Server-side resources used by Login Alert Notification
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.28 ▼38.09 |
Dashboard /wp-admin | 2.09 ▼1.21 | 9.98 ▼47.16 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 8.04 ▼50.34 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 8.75 ▼94.19 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 7.40 ▼33.00 |
Login Alert Notification /wp-admin/options-general.php?page=login-alert-notification | 2.10 | 8.60 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login Alert Notification
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.23 | 1.69 ▼0.42 | 42.28 ▲0.51 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.05 | 81.54 ▼9.79 | 38.23 ▼3.15 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.04 | 46.12 ▲5.55 | 40.97 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.16 ▼0.03 | 656.84 ▼1.20 | 53.80 ▲0.59 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.15 ▼0.12 | 97.57 ▼7.20 | 44.84 ▼0.73 |
Login Alert Notification /wp-admin/options-general.php?page=login-alert-notification | 949 | 2.00 | 24.97 | 31.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/login-alert-notification/class.nma.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; NotifyMyAndroid has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=login-alert-notification
- > Deprecated in wp-content/plugins/login-alert-notification/class.nma.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; NotifyMyAndroid has a deprecated constructor
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=login-alert-notification
- > Notice in wp-content/plugins/login-alert-notification/login_alerts_notification_admin.php+71
Trying to access array offset on value of type bool
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-alert-notification/login_alerts_notification_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-alert-notification/login-alert-notification.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== login-alert-notification ===
) - Donate link: Invalid URI ("")
login-alert-notification/login-alert-notification.php Passed 13 tests
The entry point to "Login Alert Notification" version 0.51 is a PHP file that has certain tags in its header comment area
114 characters long description:
Notify alerts with Email and Push Notifiaction Services if someone has tried to login to your WordPress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin608 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 255 | 608 |
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.26 |
Average class complexity | 20.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.65MB with 0.40MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 258.00KB | 136.99KB | ▼ 46.91% |
screenshot-1.png | 411.46KB | 95.25KB | ▼ 76.85% |