83% show-remote-ip

Code Review | Show Remote IP

WordPress plugin Show Remote IP scored83%from 54 tests.

About plugin

  • Plugin page: show-remote-ip
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Aug 16, 2018
  • Latest release: May 18, 2022
  • Number of updates: 14
  • Update frequency: every 98.0 days
  • Top authors: lbonomo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,474 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
Installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼13.44ms] Passed 4 tests

Server-side resources used by Show Remote IP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.26 ▼0.30
Dashboard /wp-admin3.36 ▲0.0545.31 ▼4.98
Posts /wp-admin/edit.php3.47 ▲0.1248.14 ▲2.30
Add New Post /wp-admin/post-new.php3.23 ▼2.6536.98 ▼50.77
Media Library /wp-admin/upload.php3.28 ▲0.0537.20 ▲4.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Show Remote IP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.62 ▼1.068.07 ▲6.3043.53 ▼1.41
Dashboard /wp-admin2,210 ▲344.85 ▼1.0398.08 ▼17.4541.19 ▼9.55
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0042.42 ▲4.8734.12 ▼0.90
Add New Post /wp-admin/post-new.php1,532 ▲1823.33 ▲5.80665.34 ▲20.6653.45 ▼3.45
Media Library /wp-admin/upload.php1,395 ▲134.23 ▼0.0194.01 ▼7.7940.14 ▼4.72

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/show-remote-ip/admin/partials/show-remote-ip-admin-display.php
    • > /wp-content/plugins/show-remote-ip/public/partials/show-remote-ip-public-display.php

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 87% from 29 tests

readme.txt 88% 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 require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === show-remote-ip === )
  • Screenshots: These screenshots lack descriptions #1, #2 in show-remote-ip/assets to your readme.txt
You can take inspiration from this readme.txt

show-remote-ip/show-remote-ip.php 85% from 13 tests

The entry point to "Show Remote IP" version 1.2.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin257 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13129599204
YAML20031
Markdown17011
JavaScript24546
Bourne Shell1125
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2278.57%
▷ Protected methods00.00%
▷ Private methods621.43%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/banner-772x250.png12.11KB6.05KB▼ 50.04%
.wordpress-org/banner-1544x500.png11.49KB5.80KB▼ 49.52%
.wordpress-org/screenshot-2.png19.17KB8.57KB▼ 55.27%
.wordpress-org/endpoint.png6.77KB3.79KB▼ 44.04%
.wordpress-org/icon-128x128.png3.44KB2.19KB▼ 36.13%