90% fixed-ip-logins

Code Review | Fixed IP Logins

WordPress plugin Fixed IP Logins scored90%from 54 tests.

About plugin

  • Plugin page: fixed-ip-logins
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Feb 9, 2019
  • Number of updates: 17
  • Update frequency: every 6.8 days
  • Top authors: kashanshah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Fixed IP Logins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.17 ▼4.56
Dashboard /wp-admin3.31 ▼0.0442.41 ▼14.25
Posts /wp-admin/edit.php3.36 ▲0.0041.96 ▼4.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.50 ▼21.57
Media Library /wp-admin/upload.php3.23 ▲0.0035.19 ▼0.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Fixed IP Logins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.28 ▲0.291.67 ▼0.0540.48 ▲1.92
Dashboard /wp-admin2,197 ▲175.56 ▼0.0487.02 ▼4.5237.31 ▲1.22
Posts /wp-admin/edit.php2,105 ▲81.97 ▼0.0235.79 ▼3.3137.59 ▲3.48
Add New Post /wp-admin/post-new.php1,431 ▼9517.03 ▼5.97526.38 ▼79.1734.06 ▼31.42
Media Library /wp-admin/upload.php1,399 ▼14.13 ▼0.1098.54 ▼7.9839.71 ▼7.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
No plugin tags provided

fixed-ip-logins/wp-fixed-ip-logins.php 92% from 13 tests

The entry point to "Fixed IP Logins" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fixed-ip-logins.php" instead of "wp-fixed-ip-logins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2578

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin