67% recibir-mensajes-instantaneos

Code Review | Recibir mensajes instantáneos

WordPress plugin Recibir mensajes instantáneos scored67%from 54 tests.

About plugin

  • Plugin page: recibir-mensajes-...
  • Plugin version: 2.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2021
  • Latest release: Aug 3, 2021
  • Number of updates: 20
  • Update frequency: every 24.3 days
  • Top authors: jlwebycomunicacion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,207 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.97MB] [CPU: ▼60.84ms] Passed 4 tests

An overview of server-side resources used by Recibir mensajes instantáneos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.16 ▼38.63
Dashboard /wp-admin2.05 ▼1.306.31 ▼57.14
Posts /wp-admin/edit.php2.05 ▼1.315.57 ▼44.97
Add New Post /wp-admin/post-new.php2.05 ▼3.846.98 ▼102.60
Media Library /wp-admin/upload.php2.05 ▼1.186.62 ▼28.43
Configurar chat /wp-admin/options-general.php?page=jlwebcom_chatwsp_conf2.055.69

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

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

Browser metrics Passed 4 tests

Recibir mensajes instantáneos: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.14 ▼0.211.76 ▲0.0643.94 ▲3.08
Dashboard /wp-admin2,198 ▲245.54 ▼0.0786.87 ▼4.8441.90 ▼2.84
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0434.87 ▼3.5832.39 ▼4.28
Add New Post /wp-admin/post-new.php1,531 ▼623.56 ▲5.15676.46 ▲14.9653.30 ▼24.02
Media Library /wp-admin/upload.php1,406 ▲34.26 ▲0.0896.93 ▼0.5149.11 ▼3.19
Configurar chat /wp-admin/options-general.php?page=jlwebcom_chatwsp_conf7992.0027.8426.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • jlwebcom_chatwsp_mensaje
    • widget_recent-comments
    • can_compress_scripts
    • jlwebcom_chatwsp_telefono
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=jlwebcom_chatwsp_conf
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/recibir-mensajes-instantaneos/trunk/jlwebcom-chatwsp.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/recibir-mensajes-instantaneos/jlwebcom-chatwsp.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/recibir-mensajes-instantaneos/trunk/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/recibir-mensajes-instantaneos/index.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: mensaje, whatsapp, contacto, chat

recibir-mensajes-instantaneos/jlwebcom-chatwsp.php 69% from 13 tests

The main PHP script in "Recibir mensajes instantáneos" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("recibir-mensajes-instantaneos.php" instead of "jlwebcom-chatwsp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("4.9.4" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected99 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132275
CSS10015
JSON1009

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions10
▷ Named functions10100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/asserts/img/icon-chat-verde.png3.45KB1.99KB▼ 42.32%
asserts/img/icon-chat-verde.png3.45KB1.99KB▼ 42.32%