84% last-user-ip

Code Review | Last User IP

WordPress plugin Last User IP scored84%from 54 tests.

About plugin

  • Plugin page: last-user-ip
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Dec 8, 2018
  • Number of updates: 10
  • Update frequency: every 164.8 days
  • Top authors: zudikas-zveris (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Last User IP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.36 ▼1.98
Dashboard /wp-admin3.31 ▼0.0344.16 ▼16.84
Posts /wp-admin/edit.php3.36 ▲0.0143.89 ▼1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.15 ▼17.90
Media Library /wp-admin/upload.php3.23 ▲0.0132.98 ▼4.81

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Last User IP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.111.78 ▲0.1343.31 ▼0.77
Dashboard /wp-admin2,209 ▲305.90 ▼0.00101.31 ▲1.4440.46 ▼4.65
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0137.14 ▲0.6831.97 ▼1.75
Add New Post /wp-admin/post-new.php1,522 ▲123.34 ▲0.14654.92 ▼27.2158.50 ▼13.61
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0795.43 ▼5.3044.39 ▼1.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% 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 items
  • 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/last-user-ip/zzwp-last-ip.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: user, log, last, ip

last-user-ip/zzwp-last-ip.php 92% from 13 tests

"Last User IP" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("last-user-ip.php" instead of "zzwp-last-ip.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
Good job! No executable or dangerous file extensions detected42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115942

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin