83% voya-chile-lugares-y-cotizador-de-despachos

Code Review | Voyapp - Lugares y Cotizador de Despachos

WordPress plugin Voyapp - Lugares y Cotizador de Despachos scored83%from 54 tests.

About plugin

  • Plugin page: voya-chile-lugare...
  • Plugin version: 1.6.15
  • PHP compatiblity: 7.0 or greater+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Nov 19, 2023
  • Number of updates: 38
  • Update frequency: every 22.1 days
  • Top authors: voyacl (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

400+ active /5,964 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.74ms] Passed 4 tests

An overview of server-side resources used by Voyapp - Lugares y Cotizador de Despachos
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.78 ▼3.09
Dashboard /wp-admin3.31 ▲0.0045.57 ▼7.91
Posts /wp-admin/edit.php3.36 ▲0.0043.90 ▼2.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.97 ▼16.78
Media Library /wp-admin/upload.php3.23 ▲0.0031.81 ▼3.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Voyapp - Lugares y Cotizador de Despachos
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.37 ▼0.011.76 ▼0.2336.90 ▼6.21
Dashboard /wp-admin2,195 ▲185.62 ▼0.0391.53 ▲1.9040.99 ▲3.67
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0438.07 ▲1.3535.57 ▼2.02
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.06661.62 ▼26.3955.94 ▼0.35
Media Library /wp-admin/upload.php1,397 ▼64.23 ▼0.0496.14 ▼2.3741.29 ▼1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/voya-chile-lugares-y-cotizador-de-despachos/includes/classes/tables/voya_despachos_shipping_label_list_table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/voya-chile-lugares-y-cotizador-de-despachos/includes/classes/voya_despachos_calculo.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/voya-chile-lugares-y-cotizador-de-despachos/includes/classes/tables/voya_despachos_shipping_label_list_table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/voya-chile-lugares-y-cotizador-de-despachos/includes/classes/tables/voya_despachos_shipping_label_list_table.php on line 4

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)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires php: Invalid version format
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

voya-chile-lugares-y-cotizador-de-despachos/voya-despachos.php 77% from 13 tests

"Voyapp - Lugares y Cotizador de Despachos" version 1.6.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 296 characters long)
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "7.0 or greater")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("voya-chile-lugares-y-cotizador-de-despachos.php" instead of "voya-despachos.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected12,108 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP2028716911,551
JavaScript5598557

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity41.20
▷ Minimum class complexity4.00
▷ Maximum class complexity114.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods89
▷ Static methods00.00%
▷ Public methods5764.04%
▷ Protected methods00.00%
▷ Private methods3235.96%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants19
▷ Global constants1263.16%
▷ Class constants736.84%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
45 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/couriers_logos/cl_urbano.png1.76KB1.07KB▼ 38.99%
public/assets/couriers_logos/default.png5.27KB3.16KB▼ 39.96%
public/assets/couriers_logos/cl_emov.png4.00KB2.14KB▼ 46.46%
public/assets/couriers_logos/cl_cargoex.png13.68KB5.15KB▼ 62.35%
public/assets/couriers_logos/cl_gorabbit.png6.81KB3.32KB▼ 51.23%