10% enviopack-argentina

Code Review | Envíopack (Argentina)

WordPress plugin Envíopack (Argentina) scored10%from 54 tests.

About plugin

  • Plugin page: enviopack-argentina
  • Plugin version: 1.0.15
  • PHP compatiblity: 7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2022
  • Latest release: Nov 3, 2023
  • Number of updates: 50
  • Update frequency: every 12.9 days
  • Top authors: nachocrespo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,014 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/enviopack-argentina/utils.php+419
    Uncaught Error: Class 'WC_Shipping_Zone' not found in wp-content/plugins/enviopack-argentina/utils.php:419
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): Ecomerciar\Enviopack\Utils\create_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by Envíopack (Argentina)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.19 ▼1.34
Dashboard /wp-admin3.31 ▼0.0445.71 ▼13.81
Posts /wp-admin/edit.php3.36 ▲0.0049.94 ▲6.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.85 ▼9.28
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲0.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Envíopack (Argentina)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.69 ▲0.351.75 ▲0.0238.21 ▲0.96
Dashboard /wp-admin2,198 ▲235.62 ▼0.0789.04 ▼14.9640.20 ▼1.01
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0341.23 ▲5.4536.77 ▼0.50
Add New Post /wp-admin/post-new.php1,529 ▼023.13 ▼0.12570.48 ▼107.2455.37 ▼15.02
Media Library /wp-admin/upload.php1,403 ▲94.20 ▲0.0398.31 ▲1.3043.89 ▲2.88

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • enviopack_api_key
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • enviopack_api_secret

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: store, argentina, logistica, woocommerce, downloadable...

enviopack-argentina/woocommerce-enviopack.php 85% from 13 tests

Analyzing the main PHP file in "Envíopack (Argentina)" version 1.0.15
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("enviopack-argentina.php" instead of "woocommerce-enviopack.php")
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,511 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity121.67
▷ Minimum class complexity20.00
▷ Maximum class complexity193.00
Average method complexity7.31
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods916.07%
▷ Public methods5394.64%
▷ Protected methods00.00%
▷ Private methods35.36%
▷ Named functions4896.00%
▷ Anonymous functions24.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin