10% mostrar-ip-publica-widget-texto

Code Review | Widget para añadir la IP Pública de nuestros visitantes

WordPress plugin Widget para añadir la IP Pública de nuestros visitantes scored10%from 54 tests.

About plugin

  • Plugin page: mostrar-ip-public...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 22, 2016
  • Latest release: Jun 22, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mavksoftes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /851 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mostrar-ip-publica-widget-texto/widget-ip-publica.php+96
    Function create_function() is deprecated

Server metrics [RAM: ▼1.94MB] [CPU: ▼55.68ms] Passed 4 tests

A check of server-side resources used by Widget para añadir la IP Pública de nuestros visitantes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.79 ▼35.17
Dashboard /wp-admin2.08 ▼1.276.63 ▼55.39
Posts /wp-admin/edit.php2.08 ▼1.285.49 ▼38.98
Add New Post /wp-admin/post-new.php2.08 ▼3.816.03 ▼93.17
Media Library /wp-admin/upload.php2.08 ▼1.156.04 ▼29.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_vdd_ip_publica_widget
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Widget para añadir la IP Pública de nuestros visitantes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.56 ▼1.102.18 ▲0.3945.22 ▲0.82
Dashboard /wp-admin2,203 ▲214.88 ▼0.08112.80 ▲7.0642.95 ▲1.06
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0534.06 ▼2.5534.47 ▲0.18
Add New Post /wp-admin/post-new.php1,514 ▼1617.76 ▼0.39691.65 ▲82.3061.95 ▼2.99
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0594.57 ▼2.5940.52 ▼5.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/mostrar-ip-publica-widget-texto/widget-ip-publica.php+96
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_vdd_ip_publica_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mostrar-ip-publica-widget-texto/widget-ip-publica.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Un sitio de WordPress con el plugin en la barra lateral.) image not found
The official readme.txt is a good inspiration

mostrar-ip-publica-widget-texto/widget-ip-publica.php 92% from 13 tests

The principal PHP file in "Widget para añadir la IP Pública de nuestros visitantes" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mostrar-ip-publica-widget-texto.php" instead of "widget-ip-publica.php")

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 plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201761

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin