73% logistra-woocommerce-integrasjon-fra-wildrobot-app

Code Review | Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot

WordPress plugin Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot scored73%from 54 tests.

About plugin

  • Plugin page: logistra-woocomme...
  • Plugin version: 6.17.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Nov 30, 2023
  • Number of updates: 411
  • Update frequency: every 3.8 days
  • Top authors: robertosnap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /15,023 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.27 ▼5.28
Dashboard /wp-admin3.31 ▲0.0145.45 ▼3.87
Posts /wp-admin/edit.php3.36 ▲0.0146.14 ▼2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.02 ▲5.41
Media Library /wp-admin/upload.php3.23 ▲0.0136.18 ▲4.79

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 83 new files
Database: 1 new table, 14 new options
New tables
wp_wildrobot_logistra_delivery_relations
New WordPress options
db_upgraded
wildrobot_logistra_cargonizer_backend_url_profrakt_DEV
wildrobot_logistra_migrations
wildrobot_logistra_cargonizer_backend_url
widget_theysaidso_widget
widget_recent-posts
wildrobot_logistra_db_version
can_compress_scripts
wildrobot_logistra_cargonizer_backend_url_DEV
wildrobot_logistra_backend_url_DEV
...

Browser metrics Passed 4 tests

A check of browser resources used by Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.31 ▲0.201.62 ▼0.2338.59 ▼6.65
Dashboard /wp-admin2,192 ▲145.64 ▼0.0894.55 ▼14.7239.80 ▼0.43
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0540.59 ▲2.4933.91 ▼3.13
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.03612.54 ▼6.9447.32 ▼5.65
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0396.55 ▼3.8441.59 ▼0.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_wildrobot_logistra_delivery_relations
  • The uninstall procedure has failed, leaving 14 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • wildrobot_logistra_backend_url_DEV
    • wildrobot_logistra_cargonizer_backend_url_profrakt
    • wildrobot_logistra_migrations
    • wildrobot_logistra_cargonizer_backend_url
    • wildrobot_logistra_cargonizer_backend_url_DEV
    • widget_recent-comments
    • wildrobot_logistra_cargonizer_backend_url_profrakt_DEV
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/logistra-woocommerce-integrasjon-fra-wildrobot-app/public/partials/wildrobot-logistra-public-display.php
    • > /wp-content/plugins/logistra-woocommerce-integrasjon-fra-wildrobot-app/admin/partials/wildrobot-logistra-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Attributes that require attention: The official readme.txt is a good inspiration

logistra-woocommerce-integrasjon-fra-wildrobot-app/logistra-robots.php 85% from 13 tests

The entry point to "Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot" version 6.17.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("logistra-woocommerce-integrasjon-fra-wildrobot-app.php" instead of "logistra-robots.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,486 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP488141,3816,853
JavaScript421143890
CSS3199592
JSON200132
Markdown15019

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity30.41
▷ Minimum class complexity1.00
▷ Maximum class complexity190.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes26.06%
Methods264
▷ Static methods14153.41%
▷ Public methods19774.62%
▷ Protected methods00.00%
▷ Private methods6725.38%
Functions27
▷ Named functions1451.85%
▷ Anonymous functions1348.15%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 3.11MB with 2.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-10.png368.73KB131.44KB▼ 64.35%
assets/screenshot-7.png738.80KB303.37KB▼ 58.94%
assets/screenshot-4.png62.02KB18.49KB▼ 70.19%
assets/screenshot-5.png142.88KB39.87KB▼ 72.09%
assets/screenshot-8.png269.13KB93.65KB▼ 65.20%