Benchmarks
Plugin footprint 40% 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
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/digirisk/core/helper/util.helper.php+44
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.58MB] [CPU: ▼339.92ms] Passed 4 tests
Server-side resources used by Digirisk
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.73 | 9.41 ▼41.12 |
Dashboard /wp-admin | 2.81 ▼0.60 | 10.53 ▼23.55 |
Posts /wp-admin/edit.php | 2.81 ▼0.83 | 10.76 ▼27.47 |
Add New Post /wp-admin/post-new.php | 2.81 ▼4.16 | 9.76 ▼1,267.52 |
Media Library /wp-admin/upload.php | 2.81 ▼0.49 | 11.14 ▼15.13 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 2.81 | 10.88 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 2.81 | 9.88 |
Server storage [IO: ▲21.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,620 new files
Database: no new tables, 2 new options
New WordPress options |
---|
digi_cap_init |
_digirisk_accronym |
Browser metrics Passed 4 tests
A check of browser resources used by Digirisk
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,343 ▼401 | 16.97 ▲1.39 | 10.77 ▲3.52 | 2.19 ▼0.01 |
Dashboard /wp-admin | 2,350 ▼511 | 6.88 ▲0.72 | 130.93 ▼11.60 | 188.10 ▲15.05 |
Posts /wp-admin/edit.php | 2,809 ▲118 | 3.79 ▲0.54 | 75.01 ▲9.18 | 161.45 ▲24.14 |
Add New Post /wp-admin/post-new.php | 1,704 ▼13 | 20.39 ▼0.88 | 422.37 ▼24.30 | 177.31 ▲18.95 |
Media Library /wp-admin/upload.php | 1,854 ▲156 | 6.47 ▲0.95 | 132.86 ▼28.46 | 207.33 ▲16.76 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 994 | 3.28 | 59.28 | 67.61 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 994 | 3.26 | 59.83 | 63.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/digirisk/core/helper/util.helper.php+44
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 2 options in the database
- digi_cap_init
- _digirisk_accronym
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=go-to-wp-admin
- > Deprecated in wp-content/plugins/digirisk/core/helper/util.helper.php+44
Array and string offset access syntax with curly braces is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=go-to-wp-admin
- > Notice in wp-content/plugins/digirisk/core/external/eo-framework/modules/wpeo-custom-menu/class/class-custom-menu-handler.php+104
Undefined index: logo
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=go-to-wp-admin
- > Notice in wp-content/plugins/digirisk/core/external/eo-framework/modules/wpeo-custom-menu/class/class-custom-menu-handler.php+104
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=go-to-wp-admin
- > Notice in wp-content/plugins/digirisk/core/external/eo-framework/modules/wpeo-custom-menu/view/content.view.php+36
Uninitialized string offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=go-to-wp-admin
- > Warning in wp-content/plugins/digirisk/core/external/eo-framework/modules/wpeo-custom-menu/view/content.view.php+39
call_user_func() expects parameter 1 to be a valid callback, function '' not found or invalid function name
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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/digirisk/modules/corrective_task/view/move-to.view.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql2date() in wp-content/plugins/digirisk/core/assets/js/define-string.js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_attachment_url() in wp-content/plugins/digirisk/modules/signature/view/button-only-content.view.php:2
- > PHP Fatal error
Uncaught Error: Class 'eoxia\\View_Util' not found in wp-content/plugins/digirisk/modules/setting/view/accronym/form.view.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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: Please reduce the number of tags, currently 13 tag instead of maximum 10
digirisk/digirisk.php 85% from 13 tests
The main file in "Digirisk" v. 7.7.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
- Git Repository: An alternative Git repository was detected
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
Good job! No executable or dangerous file extensions detected86,496 lines of code in 985 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 631 | 9,274 | 18,163 | 38,714 |
CSS | 19 | 1,761 | 715 | 11,272 |
JavaScript | 82 | 2,603 | 5,707 | 10,975 |
Sass | 164 | 819 | 257 | 10,655 |
SVG | 3 | 0 | 0 | 8,611 |
PO File | 3 | 1,215 | 2,378 | 2,248 |
HTML | 19 | 281 | 36 | 1,922 |
JSON | 59 | 32 | 0 | 1,910 |
Markdown | 5 | 111 | 0 | 189 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 334 | |
▷ Abstract classes | 1 | 0.30% |
▷ Concrete classes | 333 | 99.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,190 | |
▷ Static methods | 18 | 1.51% |
▷ Public methods | 1,083 | 91.01% |
▷ Protected methods | 82 | 6.89% |
▷ Private methods | 25 | 2.10% |
Functions | 49 | |
▷ Named functions | 21 | 42.86% |
▷ Anonymous functions | 28 | 57.14% |
Constants | 66 | |
▷ Global constants | 65 | 98.48% |
▷ Class constants | 1 | 1.52% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
164 PNG files occupy 2.82MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
core/assets/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
core/assets/images/preconisations/avertissements/dangerRayonnementLaser_s.png | 0.91KB | 0.80KB | ▼ 11.42% |
core/assets/images/preconisations/epc/preconisations_epc_vs.png | 1.37KB | 1.38KB | 0.00% |
core/assets/images/categorieDangers/chuteH_PictoCategorie_v2.png | 2.59KB | 1.42KB | ▼ 45.04% |