83% ps-user-login-count

Code Review | PS User Login Count

WordPress plugin PS User Login Count scored83%from 54 tests.

About plugin

  • Plugin page: ps-user-login-count
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Nov 18, 2023
  • Number of updates: 22
  • Update frequency: every 42.8 days
  • Top authors: suhassurse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /2,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.78ms] Passed 4 tests

A check of server-side resources used by PS User Login Count
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.93 ▼2.61
Dashboard /wp-admin3.34 ▼0.0045.18 ▼16.03
Posts /wp-admin/edit.php3.40 ▲0.0446.70 ▲0.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.84 ▲9.32
Media Library /wp-admin/upload.php3.27 ▲0.0432.99 ▲2.54

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for PS User Login Count
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.21 ▼0.491.62 ▲0.0243.25 ▼2.25
Dashboard /wp-admin2,195 ▲155.61 ▼0.0391.21 ▼4.0240.73 ▼0.84
Posts /wp-admin/edit.php2,100 ▼31.97 ▲0.0338.78 ▼1.0934.79 ▲0.00
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▲0.02582.55 ▼170.3554.34 ▲0.54
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0599.62 ▲0.6441.86 ▼1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Plainsurf\\WordPressPlugin\\add_action() in wp-content/plugins/ps-user-login-count/wordpress-login-count.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ps-user-login-count === )
The official readme.txt might help

ps-user-login-count/wordpress-login-count.php 85% from 13 tests

The main file in "PS User Login Count" v. 3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ps-user-login-count.php" instead of "wordpress-login-count.php")
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14442109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin