Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.39 ▲2.93 | 63.09 ▲22.18 |
Dashboard /wp-admin | 6.19 ▲2.89 | 61.46 ▲13.02 |
Posts /wp-admin/edit.php | 6.24 ▲2.88 | 69.54 ▲21.36 |
Add New Post /wp-admin/post-new.php | 8.80 ▲2.91 | 112.93 ▲33.45 |
Media Library /wp-admin/upload.php | 6.11 ▲2.88 | 60.70 ▲26.28 |
Datas /wp-admin/admin.php?page=doliconnect_transients_page | 6.02 | 55.57 |
Sync with Dolibarr /wp-admin/admin.php?page=doliconnect_network_page | 5.99 | 47.76 |
Settings /wp-admin/admin.php?page=ptibogxiv_management_page | 6.11 | 59.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 |
---|
widget_theysaidso_widget |
widget_my_widget |
can_compress_scripts |
db_upgraded |
widget_my_doliconnect_membership |
widget_doliconnect_dolishop |
widget_doligdrf-widget |
widget_doliconnect_changelang |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Doliconnect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲193 | 19.99 ▲5.72 | 46.39 ▲44.76 | 45.64 ▼1.61 |
Dashboard /wp-admin | 2,231 ▲54 | 5.75 ▲0.07 | 98.01 ▼1.98 | 82.55 ▲36.89 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.96 ▼0.05 | 40.12 ▲0.60 | 47.30 ▲14.62 |
Add New Post /wp-admin/post-new.php | 1,689 ▲163 | 22.33 ▼0.78 | 851.09 ▲153.23 | 34.97 ▼18.32 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.05 ▼0.11 | 102.44 ▼6.06 | 73.23 ▲26.44 |
Datas /wp-admin/admin.php?page=doliconnect_transients_page | 810 | 2.00 | 31.07 | 26.75 |
Sync with Dolibarr /wp-admin/admin.php?page=doliconnect_network_page | 938 | 2.14 | 24.88 | 28.07 |
Settings /wp-admin/admin.php?page=ptibogxiv_management_page | 1,457 | 2.32 | 23.72 | 26.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
- > PHP Fatal error
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 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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 142 | 49,310 | 2,235 | 612,282 |
JavaScript | 407 | 17,886 | 20,561 | 150,466 |
JSON | 16 | 2 | 0 | 31,591 |
SVG | 601 | 0 | 6 | 23,721 |
PHP | 135 | 3,739 | 8,007 | 15,204 |
PO File | 10 | 6,127 | 7,214 | 14,917 |
Sass | 54 | 1,928 | 700 | 6,085 |
HTML | 34 | 204 | 260 | 1,443 |
Markdown | 32 | 428 | 0 | 912 |
LESS | 5 | 3 | 1 | 303 |
Python | 2 | 17 | 2 | 51 |
Pug | 1 | 4 | 3 | 45 |
YAML | 3 | 4 | 0 | 29 |
TypeScript | 4 | 4 | 2 | 20 |
XML | 2 | 0 | 0 | 20 |
CoffeeScript | 1 | 2 | 0 | 13 |
Bourne Shell | 1 | 0 | 0 | 6 |
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 code | 0.51 |
Average class complexity | 8.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 103 | |
▷ Abstract classes | 5 | 4.85% |
▷ Concrete classes | 98 | 95.15% |
▷ Final classes | 5 | 5.10% |
Methods | 427 | |
▷ Static methods | 14 | 3.28% |
▷ Public methods | 304 | 71.19% |
▷ Protected methods | 116 | 27.17% |
▷ Private methods | 7 | 1.64% |
Functions | 204 | |
▷ Named functions | 193 | 94.61% |
▷ Anonymous functions | 11 | 5.39% |
Constants | 37 | |
▷ Global constants | 33 | 89.19% |
▷ Class constants | 4 | 10.81% |
▷ Public constants | 4 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/flag-icons/assets/og.png | 18.96KB | 19.76KB | 0.00% |
includes/pdfjs/extensions/chromium/icon19.png | 0.66KB | 0.84KB | 0.00% |
images/icon_32.png | 1.48KB | 1.20KB | ▼ 18.96% |
images/icon_16.png | 1.17KB | 0.62KB | ▼ 46.87% |
includes/pdfjs/examples/mobile-viewer/images/icon_zoom_out.png | 0.55KB | 1.04KB | 0.00% |