73% administracion-de-pedidos-servientrega

Code Review | Administración de Pedidos Servientrega

WordPress plugin Administración de Pedidos Servientrega scored 73% from 54 tests.

About plugin

  • Plugin page: administracion-de...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: Dec 24, 2022
  • Number of updates: 8
  • Update frequency: every 27.6 days
  • Top authors: dudaspluginservientrega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 713 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲7.31ms] Passed 4 tests

An overview of server-side resources used by Administración de Pedidos Servientrega
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.66 ▼0.80
Dashboard /wp-admin3.35 ▲0.0563.94 ▲8.19
Posts /wp-admin/edit.php3.41 ▲0.0569.80 ▲21.83
Add New Post /wp-admin/post-new.php5.94 ▲0.05102.76 ▲0.03
Media Library /wp-admin/upload.php3.28 ▲0.0557.95 ▲21.82
Generación de Envíos /wp-admin/admin.php?page=servientrega-generacion-envio3.3253.03
/wp-admin/admin.php?page=servientrega-upload3.2254.17
Inicio /wp-admin/admin.php?page=servientrega-inicio3.2749.55
Configuración /wp-admin/admin.php?page=servientrega-general3.3155.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 92 new files
Database: 1 new table, 7 new options
New tables
wp_PedidoEnvio
New WordPress options
can_compress_scripts
recovery_mode_email_last_sent
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Administración de Pedidos Servientrega
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲17614.55 ▲0.171.79 ▼0.2539.92 ▼6.42
Dashboard /wp-admin2,314 ▲1236.17 ▲0.27124.90 ▲24.5850.07 ▲5.71
Posts /wp-admin/edit.php2,200 ▲1112.93 ▲0.8945.14 ▲8.5732.46 ▼2.66
Add New Post /wp-admin/post-new.php1,622 ▲10124.15 ▲1.01675.38 ▼7.4735.74 ▼19.30
Media Library /wp-admin/upload.php1,502 ▲1115.36 ▲1.16106.51 ▲3.2945.60 ▼2.43
Generación de Envíos /wp-admin/admin.php?page=servientrega-generacion-envio3,1933.77163.18145.93
/wp-admin/admin.php?page=servientrega-upload7852.5615.5220.46
Inicio /wp-admin/admin.php?page=servientrega-inicio2,0042.4235.9863.60
Configuración /wp-admin/admin.php?page=servientrega-general1,7802.4935.2875.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_PedidoEnvio
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=servientrega-upload
    • > Warning in wp-content/plugins/administracion-de-pedidos-servientrega/admonpedidosservientrega.php+268
    require_once(includes/importar_pedidosenvios.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=servientrega-upload
    • > Compile error in wp-content/plugins/administracion-de-pedidos-servientrega/admonpedidosservientrega.php+268
    require_once(): Failed opening required 'includes/importar_pedidosenvios.php' (include_path='.:/usr/share/php')

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • License uri: Invalid URI found ("")
You can look at the official readme.txt

administracion-de-pedidos-servientrega/admonpedidosservientrega.php 85% from 13 tests

The main PHP script in "Administración de Pedidos Servientrega" version 1.0.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("administracion-de-pedidos-servientrega.php" instead of "admonpedidosservientrega.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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin22,483 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
SVG1801510,565
PHP291,1081036,784
CSS755312,624
JavaScript143296532,510

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions51
▷ Named functions51100.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
8 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/flags.png69.20KB23.42KB▼ 66.16%
includes/images/apple-touch-icon-114x114-precomposed.png3.76KB2.03KB▼ 45.97%
includes/images/logo-servientrega.png12.54KB5.50KB▼ 56.19%
includes/images/flags@2x.png170.28KB68.04KB▼ 60.04%
includes/images/apple-touch-icon-72x72-precomposed.png2.81KB1.39KB▼ 50.35%