72% doliconnect

Code Review | Doliconnect

WordPress plugin Doliconnect scored72%from 54 tests.

About plugin

  • Plugin page: doliconnect
  • Plugin version: 7.8.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.5
  • WordPress version: 6.3.1
  • First release: Jan 25, 2019
  • Latest release: Nov 19, 2023
  • Number of updates: 250
  • Update frequency: every 7.0 days
  • Top authors: ptibogxiv (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /25,126 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲2.89MB] [CPU: ▲20.71ms] Passed 4 tests

An overview of server-side resources used by Doliconnect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.39 ▲2.9363.09 ▲22.18
Dashboard /wp-admin6.19 ▲2.8961.46 ▲13.02
Posts /wp-admin/edit.php6.24 ▲2.8869.54 ▲21.36
Add New Post /wp-admin/post-new.php8.80 ▲2.91112.93 ▲33.45
Media Library /wp-admin/upload.php6.11 ▲2.8860.70 ▲26.28
Datas /wp-admin/admin.php?page=doliconnect_transients_page6.0255.57
Sync with Dolibarr /wp-admin/admin.php?page=doliconnect_network_page5.9947.76
Settings /wp-admin/admin.php?page=ptibogxiv_management_page6.1159.87

Server storage [IO: ▲131.33MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Total filesystem usage must be limited to 25MB (currently using 131.33MB)
Filesystem: 2,878 new files
Database: no new tables, 13 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Doliconnect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19319.99 ▲5.7246.39 ▲44.7645.64 ▼1.61
Dashboard /wp-admin2,231 ▲545.75 ▲0.0798.01 ▼1.9882.55 ▲36.89
Posts /wp-admin/edit.php2,136 ▲361.96 ▼0.0540.12 ▲0.6047.30 ▲14.62
Add New Post /wp-admin/post-new.php1,689 ▲16322.33 ▼0.78851.09 ▲153.2334.97 ▼18.32
Media Library /wp-admin/upload.php1,433 ▲334.05 ▼0.11102.44 ▼6.0673.23 ▲26.44
Datas /wp-admin/admin.php?page=doliconnect_transients_page8102.0031.0726.75
Sync with Dolibarr /wp-admin/admin.php?page=doliconnect_network_page9382.1424.8828.07
Settings /wp-admin/admin.php?page=ptibogxiv_management_page1,4572.3223.7226.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_doliconnect_dolimenu
    • widget_my_doliconnect_membership
    • widget_recent-comments
    • widget_doliconnect_changelang
    • widget_my_doliconnect
    • widget_doligdrf-widget
    • db_upgraded
    • widget_doliconnect_dolishop
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=doliconnect_network_page
    • > Notice in wp-content/plugins/doliconnect/admin/admin.php+170
    Trying to get property 'success' of non-object
    • > GET request to /wp-admin/admin.php?page=doliconnect_network_page
    • > Notice in wp-content/plugins/doliconnect/admin/admin.php+170
    Trying to get property 'dolibarr_version' of non-object

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/doliconnect/index.php
  • 131× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\UnexpectedValueException' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Exception/AuthorizationDeniedException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Hybridauth\\Adapter\\AdapterInterface' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Adapter/AbstractAdapter.php:25
    • > PHP Warning
      include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/doliconnect/includes/hybridauth/examples/example_02.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Provider/LinkedIn.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Provider/Google.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Provider/Facebook.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Provider/TwitchTV.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\InvalidArgumentException' not found in wp-content/plugins/doliconnect/includes/hybridauth/src/Exception/InvalidApplicationCredentialsException.php:13
    • > PHP Warning
      include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/doliconnect/includes/hybridauth/examples/example_05.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/doliconnect/templates/restricted.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt is a good inspiration

doliconnect/doliconnect.php Passed 13 tests

The main PHP file in "Doliconnect" ver. 7.8.5 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Connect your Dolibarr (free ERP/CRM) to Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected857,108 lines of code in 1,450 files:
LanguageFilesBlank linesComment linesLines of code
PO File106,1277,21414,917
Bourne Shell1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity8.59
▷ Minimum class complexity1.00
▷ Maximum class complexity189.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
▷ Abstract classes54.85%
▷ Concrete classes9895.15%
▷ Final classes55.10%
▷ Static methods143.28%
▷ Public methods30471.19%
▷ Protected methods11627.17%
▷ Private methods71.64%
▷ Named functions19394.61%
▷ Anonymous functions115.39%
▷ Global constants3389.19%
▷ Class constants410.81%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_32.png1.48KB1.20KB▼ 18.96%
images/icon_16.png1.17KB0.62KB▼ 46.87%