72% edipost-woo

Code Review | Edipost integration for WooCommerce

WordPress plugin Edipost integration for WooCommerce scored72%from 54 tests.

About plugin

  • Plugin page: edipost-woo
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: Jun 10, 2022
  • Number of updates: 33
  • Update frequency: every 53.5 days
  • Top authors: edipost (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,325 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.52ms] Passed 4 tests

A check of server-side resources used by Edipost integration for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.48 ▲1.20
Dashboard /wp-admin3.46 ▲0.1647.66 ▲0.02
Posts /wp-admin/edit.php3.58 ▲0.2251.07 ▲0.33
Add New Post /wp-admin/post-new.php6.07 ▲0.1884.75 ▼11.63
Media Library /wp-admin/upload.php3.39 ▲0.1538.31 ▲3.48
EdiPost Integrasjon /wp-admin/options-general.php?page=edipost_woocommerce_connector3.3332.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Edipost integration for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.35 ▼0.281.76 ▲0.1743.77 ▼2.96
Dashboard /wp-admin2,201 ▲245.61 ▼0.0584.93 ▼10.1636.92 ▼8.08
Posts /wp-admin/edit.php2,109 ▲62.03 ▲0.0437.23 ▼8.6637.36 ▼2.21
Add New Post /wp-admin/post-new.php1,537 ▼123.65 ▲0.58681.35 ▲57.0553.94 ▼2.38
Media Library /wp-admin/upload.php1,406 ▲124.30 ▲0.1496.88 ▼7.6644.23 ▼0.66
EdiPost Integrasjon /wp-admin/options-general.php?page=edipost_woocommerce_connector8922.0524.0030.25

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=edipost_woocommerce_connector
    • > Notice in wp-content/plugins/edipost-woo/admin/class-ediwoo-admin.php+267
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/edipost-woo/public/partials/ediwoo-public-display.php
    • > /wp-content/plugins/edipost-woo/admin/partials/ediwoo-admin-display.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'EdipostService\\Client\\Builder\\PartyBuilder' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Builder/ConsignorBuilder.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EdipostService\\Client\\Party' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignor.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EdipostService\\Client\\Party' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignee.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EdipostService\\ServiceConnection\\Communication' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignment.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EdipostService\\ServiceConnection\\Communication' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Party.php:7

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 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
6 plugin tags: woocommerce, schenker, bring, postnord, edipost...

edipost-woo/ediwoo.php 85% from 13 tests

This is the main PHP file of "Edipost integration for WooCommerce" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("edipost-woo.php" instead of "ediwoo.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin2,601 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP379231,1052,277
JavaScript410189262
CSS291943
PO File13019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.64
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes36
▷ Abstract classes12.78%
▷ Concrete classes3597.22%
▷ Final classes00.00%
Methods268
▷ Static methods207.46%
▷ Public methods22282.84%
▷ Protected methods41.49%
▷ Private methods4215.67%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants7
▷ Global constants7100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/cross.png1.09KB1.61KB0.00%
admin/check.png1.18KB1.46KB0.00%