10% log-in-out

Code Review | Log In & Out

WordPress plugin Log In & Out scored10%from 54 tests.

About plugin

  • Plugin page: log-in-out
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jun 12, 2015
  • Latest release: Jun 12, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: khalil.ahammad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/log-in-out/log-in-&-out.php+221
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.47ms] Passed 4 tests

An overview of server-side resources used by Log In & Out
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.50 ▼36.24
Dashboard /wp-admin2.05 ▼1.265.09 ▼42.50
Posts /wp-admin/edit.php2.05 ▼1.315.38 ▼44.74
Add New Post /wp-admin/post-new.php2.05 ▼3.845.87 ▼90.40
Media Library /wp-admin/upload.php2.05 ▼1.185.21 ▼26.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_login_logout
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Log In & Out: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼0.891.97 ▲0.2542.23 ▼1.85
Dashboard /wp-admin2,206 ▲185.91 ▲0.01108.52 ▲8.7343.71 ▼1.07
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0639.64 ▼1.5835.12 ▼1.14
Add New Post /wp-admin/post-new.php1,534 ▼023.21 ▲0.10608.54 ▼54.6057.55 ▼2.79
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0993.13 ▼8.5442.23 ▼0.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/log-in-out/log-in-&-out.php+221
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_login_logout
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/log-in-out/log-in-&-out.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "Not Needed to Donate"
You can take inspiration from this readme.txt

log-in-out/log-in-&-out.php 92% from 13 tests

The principal PHP file in "Log In & Out" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("log-in-out.php" instead of "log-in-&-out.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin210 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1229210

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin