73% loginner

Code Review | Loginner

WordPress plugin Loginner scored73%from 54 tests.

About plugin

  • Plugin page: loginner
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 30, 2012
  • Latest release: Apr 30, 2012
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: duckinformatica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼10.40ms] Passed 4 tests

Server-side resources used by Loginner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0629.43 ▼11.78
Dashboard /wp-admin3.19 ▼0.1232.34 ▼14.19
Posts /wp-admin/edit.php3.25 ▼0.1037.99 ▼7.71
Add New Post /wp-admin/post-new.php5.44 ▼0.4580.75 ▼7.90
Media Library /wp-admin/upload.php3.20 ▼0.0331.81 ▼2.94
Loginner /wp-admin/options-general.php?page=loginner_options3.1530.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Loginner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.102.00 ▼0.1740.11 ▼11.36
Dashboard /wp-admin2,207 ▲195.83 ▲0.9494.16 ▼25.1238.55 ▼6.92
Posts /wp-admin/edit.php2,090 ▲12.03 ▼0.0139.93 ▲3.7036.72 ▲3.16
Add New Post /wp-admin/post-new.php1,526 ▲1223.25 ▲5.69678.67 ▲0.1758.64 ▼7.88
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0295.42 ▼6.3344.90 ▼0.36
Loginner /wp-admin/options-general.php?page=loginner_options9202.0322.9828.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=loginner_options
    • > Notice in wp-content/plugins/loginner/loginner.php+210
    Undefined index: user
    • > GET request to /wp-admin/options-general.php?page=loginner_options
    • > Notice in wp-content/plugins/loginner/loginner.php+175
    Undefined index: account
    • > GET request to /wp-admin/options-general.php?page=loginner_options
    • > Warning in wp-content/plugins/loginner/loginner.php+175
    array_keys() expects parameter 1 to be array, null given
    • > GET request to /wp-admin/options-general.php?page=loginner_options
    • > Warning in wp-content/plugins/loginner/loginner.php+175
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/options-general.php?page=loginner_options
    • > Notice in wp-content/plugins/loginner/loginner.php+206
    Undefined variable: args

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/loginner/uninstall.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/loginner/loginner.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 require attention:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

loginner/loginner.php Passed 13 tests

Analyzing the main PHP file in "Loginner" version 1.0
80 characters long description:
Loginner lets you open other Wordpress backends under your control in one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35939199

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin