90% fx-login-notification

Code Review | f(x) Login Notification

WordPress plugin f(x) Login Notification scored90%from 54 tests.

About plugin

  • Plugin page: fx-login-notifica...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 8
  • Update frequency: every 42.0 days
  • Top authors: turtlepod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,238 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.56 ▼5.36
Dashboard /wp-admin3.38 ▲0.0445.95 ▼16.48
Posts /wp-admin/edit.php3.50 ▲0.1448.86 ▲4.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0785.49 ▼9.70
Media Library /wp-admin/upload.php3.31 ▲0.0741.02 ▲5.32
Login Notification /wp-admin/options-general.php?page=fx-login-nf3.2727.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.181.92 ▼0.1640.95 ▼1.55
Dashboard /wp-admin2,202 ▲255.58 ▲0.0194.81 ▲7.0044.13 ▲9.64
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0338.39 ▼1.3234.40 ▼2.58
Add New Post /wp-admin/post-new.php1,529 ▼622.92 ▲4.77655.24 ▲25.7346.36 ▼22.61
Media Library /wp-admin/upload.php1,404 ▲104.20 ▼0.00105.37 ▲6.0544.85 ▲1.68
Login Notification /wp-admin/options-general.php?page=fx-login-nf9591.9926.1535.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:
LanguageFilesBlank linesComment linesLines of code
PHP3108191299
PO File1111178

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 code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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