84% loginpetze

Code Review | Loginpetze

WordPress plugin Loginpetze scored84%from 54 tests.

About plugin

  • Plugin page: loginpetze
  • Plugin version: 1.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Apr 2, 2023
  • Number of updates: 26
  • Update frequency: every 73.2 days
  • Top authors: pixelverbieger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests

Analyzing server-side resources used by Loginpetze
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.88 ▲3.51
Dashboard /wp-admin3.39 ▲0.0948.16 ▼3.73
Posts /wp-admin/edit.php3.50 ▲0.1553.47 ▲1.74
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.65 ▼22.07
Media Library /wp-admin/upload.php3.31 ▲0.0840.78 ▲4.14
Loginpetze /wp-admin/options-general.php?page=loginpetze-options3.2835.89

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
loginpetze_options
widget_recent-posts
loginpetze_db_version
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Loginpetze
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.33 ▼0.041.81 ▲0.0544.27 ▼0.89
Dashboard /wp-admin2,201 ▲245.63 ▼0.0289.53 ▼8.4139.59 ▲1.35
Posts /wp-admin/edit.php2,109 ▲122.02 ▲0.0242.69 ▲6.4333.53 ▲0.16
Add New Post /wp-admin/post-new.php1,536 ▲923.09 ▼0.02677.70 ▲1.9060.18 ▲6.56
Media Library /wp-admin/upload.php1,409 ▲154.19 ▲0.0096.50 ▼3.6944.18 ▼0.48
Loginpetze /wp-admin/options-general.php?page=loginpetze-options9402.1222.3738.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/loginpetze/loginpetze.php

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)
No browser issues were found

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
6 plugin tags: push, monitor, notification, login, staging...

loginpetze/loginpetze.php Passed 13 tests

The primary PHP file in "Loginpetze" version 1.4 is used by WordPress to initiate all plugin functionality
73 characters long description:
Notifies the admin by email as soon as a user has successfully logged 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
No dangerous file extensions were detected728 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP25406709572
PO File14250151
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants7
▷ Global constants7100.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 files were detected