10% ip-login

Code Review | IP Login

WordPress plugin IP Login scored10%from 54 tests.

About plugin

  • Plugin page: ip-login
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2015
  • Latest release: Jan 2, 2016
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: lupetalo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /944 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/ip-login/ip_login.php+141
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.18ms] Passed 4 tests

Analyzing server-side resources used by IP Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.41 ▼7.08
Dashboard /wp-admin3.31 ▲0.0049.13 ▼1.43
Posts /wp-admin/edit.php3.36 ▲0.0046.36 ▼2.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.79 ▼5.54
Media Library /wp-admin/upload.php3.23 ▲0.0035.11 ▼0.77

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

IP Login: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.30 ▼0.342.20 ▲0.0452.02 ▲5.41
Dashboard /wp-admin2,195 ▲155.65 ▲0.0187.54 ▼3.9838.26 ▼4.23
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0137.41 ▼5.1636.08 ▲1.04
Add New Post /wp-admin/post-new.php1,540 ▼1418.40 ▲0.31661.60 ▲7.8552.94 ▲2.72
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.0293.12 ▼6.3743.33 ▲0.55

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-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ip-login/admin_page.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/ip-login/ip_login.php on line 141

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: login, autologin, admin

ip-login/ip_login.php 85% from 13 tests

"IP Login" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ip-login.php" instead of "ip_login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin215 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22426189
CSS11024
JavaScript1012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin