84% real-wan-server-ip

Code Review | Real WAN Server IP

WordPress plugin Real WAN Server IP scored84%from 54 tests.

About plugin

  • Plugin page: real-wan-server-ip
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jan 24, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: switcorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /121 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.10MB] [CPU: ▼11.03ms] Passed 4 tests

Server-side resources used by Real WAN Server IP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.20 ▼1.22
Dashboard /wp-admin3.42 ▲0.0743.98 ▼14.67
Posts /wp-admin/edit.php3.52 ▲0.1640.57 ▼5.44
Add New Post /wp-admin/post-new.php6.13 ▲0.2471.53 ▼22.80
Media Library /wp-admin/upload.php3.36 ▲0.1335.78 ▲2.36
Real WAN Server IP /wp-admin/tools.php?page=real_wan_server_ip3.29295.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Real WAN Server IP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.61 ▼0.978.07 ▲6.3944.76 ▲7.08
Dashboard /wp-admin2,200 ▲265.51 ▼0.1483.50 ▼3.1138.24 ▼2.97
Posts /wp-admin/edit.php2,108 ▲82.01 ▼0.0234.96 ▼1.4233.67 ▼4.32
Add New Post /wp-admin/post-new.php1,533 ▲722.99 ▼0.16667.44 ▲4.9260.12 ▲8.18
Media Library /wp-admin/upload.php1,402 ▼14.23 ▲0.07100.24 ▼4.5046.89 ▲1.05
Real WAN Server IP /wp-admin/tools.php?page=real_wan_server_ip7681.9923.8925.79

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

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

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/real-wan-server-ip/admin/partials/real-wan-server-ip-admin-display.php
    • > /wp-content/plugins/real-wan-server-ip/public/partials/real-wan-server-ip-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: wan, ip, server, real

real-wan-server-ip/real-wan-server-ip.php Passed 13 tests

"Real WAN Server IP" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Showing Real WAN Server IP

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected199 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12129544193
JavaScript24546
CSS2080

PHP code Passed 2 tests

A short review of 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.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected