10% logs-de-connexion

Code Review | Connexion Logs

WordPress plugin Connexion Logs scored10%from 54 tests.

About plugin

  • Plugin page: logs-de-connexion
  • Plugin version: 3.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2021
  • Latest release: Jun 8, 2023
  • Number of updates: 64
  • Update frequency: every 9.9 days
  • Top authors: floriansimunek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,027 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/logs-de-connexion/admin.php+3
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.91MB] [CPU: ▼50.26ms] Passed 4 tests

This is a short check of server-side resources used by Connexion Logs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.06 ▼32.48
Dashboard /wp-admin2.10 ▼1.216.25 ▼42.84
Posts /wp-admin/edit.php2.10 ▼1.267.77 ▼38.19
Add New Post /wp-admin/post-new.php2.10 ▼3.796.30 ▼87.54
Media Library /wp-admin/upload.php2.10 ▼1.144.91 ▼27.96
WP Logs /wp-admin/admin.php?page=WPLogs_admin2.106.35
Options /wp-admin/admin.php?page=WPLogs_adminOptionsMenu2.107.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_users_logs
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Connexion Logs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17913.68 ▼0.626.11 ▲4.0739.52 ▼8.70
Dashboard /wp-admin2,231 ▲394.89 ▼1.11104.06 ▼7.1239.16 ▼5.96
Posts /wp-admin/edit.php2,116 ▲271.91 ▼0.1534.03 ▼6.5335.15 ▼0.83
Add New Post /wp-admin/post-new.php1,538 ▲417.86 ▼5.16640.04 ▼35.4360.17 ▼0.70
Media Library /wp-admin/upload.php1,410 ▲224.21 ▲0.01103.90 ▼3.9244.71 ▼0.56
WP Logs /wp-admin/admin.php?page=WPLogs_admin7932.0228.5528.65
Options /wp-admin/admin.php?page=WPLogs_adminOptionsMenu8262.0723.2423.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the heartbeat handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > Notice in wp-content/plugins/logs-de-connexion/admin.php+3
    date_default_timezone_set(): Timezone ID '' is invalid
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the WPLogs_tableCustomStyles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the WPLogs_tableCustomStyles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the WPLogs_table handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the WPLogs_table handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=WPLogs_adminOptionsMenu
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/logs-de-connexion/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/logs-de-connexion/logs2connexion.php:15

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #5 (WPRocket - Never cache the cookie "WPLogs_key" (plugin not properly work if not enable)) image missing
You can look at the official readme.txt

logs-de-connexion/logs2connexion.php 85% from 13 tests

The primary PHP file in "Connexion Logs" version 3.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("logs-de-connexion.php" instead of "logs2connexion.php")
  • Description: The description should be shorter than 140 characters (currently 319 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected651 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53374406
CSS1258120
Markdown145081
JavaScript16044

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/refresh.png10.30KB7.08KB▼ 31.22%
images/refresh_white.png6.17KB1.78KB▼ 71.23%