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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.16 ▼38.63 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.31 ▼57.14 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.57 ▼44.97 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.98 ▼102.60 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.62 ▼28.43 |
Configurar chat /wp-admin/options-general.php?page=jlwebcom_chatwsp_conf | 2.05 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.14 ▼0.21 | 1.76 ▲0.06 | 43.94 ▲3.08 |
Dashboard /wp-admin | 2,198 ▲24 | 5.54 ▼0.07 | 86.87 ▼4.84 | 41.90 ▼2.84 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.04 | 34.87 ▼3.58 | 32.39 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.56 ▲5.15 | 676.46 ▲14.96 | 53.30 ▼24.02 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.26 ▲0.08 | 96.93 ▼0.51 | 49.11 ▼3.19 |
Configurar chat /wp-admin/options-general.php?page=jlwebcom_chatwsp_conf | 799 | 2.00 | 27.84 | 26.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 22 | 75 |
CSS | 1 | 0 | 0 | 15 |
JSON | 1 | 0 | 0 | 9 |
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 code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/asserts/img/icon-chat-verde.png | 3.45KB | 1.99KB | ▼ 42.32% |
asserts/img/icon-chat-verde.png | 3.45KB | 1.99KB | ▼ 42.32% |