83% my-loginlogout

Code Review | My Login Logout Plugin

WordPress plugin My Login Logout Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: my-loginlogout
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Apr 23, 2015
  • Number of updates: 54
  • Update frequency: every 4.1 days
  • Top authors: nagarjunsonti (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

400+ active / 18,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.15ms] Passed 4 tests

An overview of server-side resources used by My Login Logout Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.04 ▼0.81
Dashboard /wp-admin3.32 ▲0.0149.74 ▲4.11
Posts /wp-admin/edit.php3.37 ▲0.0148.98 ▼0.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.91 ▼5.47
Media Library /wp-admin/upload.php3.24 ▲0.0137.05 ▲2.22
My Login/logout /wp-admin/options-general.php?page=my-loginlogout/adminpage.php3.2635.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: 2 new tables, 6 new options
New tables
wp_mylogin
wp_mylocation
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for My Login Logout Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.22 ▼1.161.66 ▼0.5043.77 ▼1.12
Dashboard /wp-admin2,211 ▲235.79 ▼0.07106.93 ▲4.6538.20 ▼3.02
Posts /wp-admin/edit.php2,097 ▲52.02 ▼0.0340.65 ▼1.4633.66 ▼0.74
Add New Post /wp-admin/post-new.php1,521 ▲223.23 ▼0.13659.87 ▼15.2353.12 ▼1.01
Media Library /wp-admin/upload.php1,396 ▲54.26 ▲0.02108.66 ▲4.2046.89 ▲1.75
My Login/logout /wp-admin/options-general.php?page=my-loginlogout/adminpage.php1,0092.0423.8729.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: page in wp-content/plugins/my-loginlogout/adminpage.php on line 5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/my-loginlogout/login_logout.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-loginlogout/login_logout.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_mylogin_logoutLinks() in wp-content/plugins/my-loginlogout/adminpage.php:38
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/my-loginlogout/login_logout.php on line 39

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

my-loginlogout/login_logout.php 85% from 13 tests

Analyzing the main PHP file in "My Login Logout Plugin" version 2.4
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 302 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-loginlogout.php" instead of "login_logout.php")

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
There were no executable files found in this plugin435 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29451393
CSS101225
JavaScript25317

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.67MB with 0.43MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
defult_menu_list.png130.78KB45.96KB▼ 64.86%
Custom_menu.png134.01KB47.93KB▼ 64.23%
custom_url.png211.90KB76.99KB▼ 63.67%
admin_setting.png210.49KB80.30KB▼ 61.85%