83% gestor-de-google-analytics-facil

Code Review | Gestor de Google Analytics fácil

WordPress plugin Gestor de Google Analytics fácil scored 83% from 54 tests.

About plugin

  • Plugin page: gestor-de-google-...
  • Plugin version: 1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2021
  • Latest release: Nov 27, 2022
  • Number of updates: 14
  • Update frequency: every 34.2 days
  • Top authors: jlwebycomunicacion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.81ms] Passed 4 tests

An overview of server-side resources used by Gestor de Google Analytics fácil
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.27 ▼2.21
Dashboard /wp-admin3.32 ▲0.0248.42 ▲0.78
Posts /wp-admin/edit.php3.37 ▲0.0249.84 ▲1.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.77 ▼6.81
Media Library /wp-admin/upload.php3.24 ▲0.0235.56 ▲4.36
Añadir G-Analytics /wp-admin/options-general.php?page=jlwebcom_ganalytics_conf3.2132.52

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
jlwebcom_ganalytics_id_usuario
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Gestor de Google Analytics fácil
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.111.82 ▼0.1944.58 ▼2.88
Dashboard /wp-admin2,210 ▲225.84 ▲0.94105.10 ▼4.7940.44 ▼2.65
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0134.08 ▼6.5432.00 ▼2.86
Add New Post /wp-admin/post-new.php1,517 ▼1617.86 ▼5.20680.16 ▲8.8160.44 ▲8.42
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.08101.57 ▼7.3942.11 ▼6.76
Añadir G-Analytics /wp-admin/options-general.php?page=jlwebcom_ganalytics_conf7752.0526.3123.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • jlwebcom_ganalytics_id_usuario

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gestor-de-google-analytics-facil/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gestor-de-google-analytics-facil/jlwebcom-ganalytics.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Formulario de administración jlwebcom-ganalytics-formulario-admin.png), #2 (Icono para envío de mensajes jlwebcom-ganalytics-código.png), #3 (Panel de Google Analytics jlwebcom-ganalytics-gráfica.png)
Please take inspiration from this readme.txt

gestor-de-google-analytics-facil/jlwebcom-ganalytics.php 69% from 13 tests

This is the main PHP file of "Gestor de Google Analytics fácil" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9.4" instead of "5.2")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("gestor-de-google-analytics-facil.php" instead of "jlwebcom-ganalytics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122267
JSON1007

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin