78% codigos-de-rastreamento-convr

Code Review | Gerenciador de Códigos de Rastreamento Convr

WordPress plugin Gerenciador de Códigos de Rastreamento Convr scored78%from 54 tests.

About plugin

  • Plugin page: codigos-de-rastre...
  • Plugin version: 0.0.4
  • PHP compatiblity: 4.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2019
  • Latest release: Apr 29, 2021
  • Number of updates: 20
  • Update frequency: every 30.8 days
  • Top authors: multiversoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.04ms] Passed 4 tests

A check of server-side resources used by Gerenciador de Códigos de Rastreamento Convr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.53 ▼1.14
Dashboard /wp-admin3.41 ▲0.1049.12 ▼4.57
Posts /wp-admin/edit.php3.46 ▲0.1050.03 ▼3.41
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.13 ▼11.05
Media Library /wp-admin/upload.php3.33 ▲0.1041.10 ▲5.15
Adicionar Código /wp-admin/admin.php?page=gcrc_adicionar_codigo3.3233.16
Código de Rastreamento /wp-admin/admin.php?page=gcrc_codigo3.3340.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gerenciador de Códigos de Rastreamento Convr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.33 ▼0.401.71 ▲0.0243.01 ▲0.25
Dashboard /wp-admin2,205 ▲315.52 ▼0.1387.42 ▼1.3675.43 ▲31.61
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0333.62 ▼6.5132.19 ▼2.81
Add New Post /wp-admin/post-new.php1,698 ▲17222.46 ▼0.62759.01 ▲52.1449.60 ▼4.97
Media Library /wp-admin/upload.php1,416 ▲194.20 ▼0.07102.98 ▼3.4075.20 ▲27.98
Adicionar Código /wp-admin/admin.php?page=gcrc_adicionar_codigo1,5013.9164.59166.60
Código de Rastreamento /wp-admin/admin.php?page=gcrc_codigo1,0583.2345.91106.19

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+240
    Undefined index: editar
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+303
    Undefined variable: alerta
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+321
    Undefined index: nome
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+323
    Undefined index: codigo
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+335
    Undefined index: posicao
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+355
    Undefined index: onde
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+370
    Undefined index: paginas
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+389
    Undefined index: posts
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+412
    Undefined index: esconder_pagina
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gcrc_adicionar_codigo
    • > Notice in wp-content/plugins/codigos-de-rastreamento-convr/index.php+429
    Undefined index: esconder_post

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codigos-de-rastreamento-convr/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: incorporao, pixel, rastremeno, body, cdigo...

codigos-de-rastreamento-convr/index.php 77% from 13 tests

The main file in "Gerenciador de Códigos de Rastreamento Convr" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "4.5")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("codigos-de-rastreamento-convr.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected23,782 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS91,4915513,196
JavaScript102,5451,91010,145
PHP16312441

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/delete-hover.png2.98KB0.27KB▼ 91.03%
img/delete.png2.99KB0.27KB▼ 91.04%
img/logo.png4.17KB1.61KB▼ 61.29%
img/anuncio-inf.png32.64KB13.02KB▼ 60.13%
img/edit-hover.png3.06KB0.32KB▼ 89.64%