Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.68ms] Passed 4 tests
An overview of server-side resources used by f(x) Login Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.56 ▼5.36 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.95 ▼16.48 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.86 ▲4.81 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 85.49 ▼9.70 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 41.02 ▲5.32 |
Login Notification /wp-admin/options-general.php?page=fx-login-nf | 3.27 | 27.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
f(x) Login Notification: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.18 | 1.92 ▼0.16 | 40.95 ▼1.55 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▲0.01 | 94.81 ▲7.00 | 44.13 ▲9.64 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.03 | 38.39 ▼1.32 | 34.40 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 22.92 ▲4.77 | 655.24 ▲25.73 | 46.36 ▼22.61 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.20 ▼0.00 | 105.37 ▲6.05 | 44.85 ▲1.68 |
Login Notification /wp-admin/options-general.php?page=fx-login-nf | 959 | 1.99 | 26.15 | 35.87 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: spam, comments
fx-login-notification/fx-login-notification.php Passed 13 tests
The main PHP script in "f(x) Login Notification" version 1.0.0 is automatically included on every request by WordPress
52 characters long description:
Simple plugin for user login notification via email.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin377 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 191 | 299 |
PO File | 1 | 11 | 11 | 78 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin