Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > 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.28MB] [CPU: ▼14.09ms] Passed 4 tests
A check of server-side resources used by Digirisk
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.44 ▲1.98 | 39.39 ▼2.46 |
Dashboard /wp-admin | 5.02 ▲1.71 | 30.33 ▼17.86 |
Posts /wp-admin/edit.php | 5.48 ▲2.12 | 55.75 ▲10.19 |
Add New Post /wp-admin/post-new.php | 5.25 ▼0.64 | 43.66 ▼46.21 |
Media Library /wp-admin/upload.php | 5.30 ▲2.07 | 48.97 ▲18.80 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 5.24 | 41.13 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 5.24 | 36.96 |
Server storage [IO: ▲21.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,623 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
digi_cap_init |
theysaidso_admin_options |
widget_recent-posts |
_digirisk_accronym |
Browser metrics Passed 4 tests
Checking browser requirements for Digirisk
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,571 ▼215 | 13.89 ▼0.46 | 9.44 ▲7.41 | 41.74 ▲2.19 |
Dashboard /wp-admin | 1,864 ▼316 | 6.06 ▲0.46 | 84.79 ▼9.63 | 79.33 ▲39.13 |
Posts /wp-admin/edit.php | 2,224 ▲124 | 2.42 ▲0.45 | 37.86 ▲0.77 | 34.24 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,442 ▼84 | 18.45 ▼5.08 | 671.98 ▼15.46 | 31.88 ▼36.44 |
Media Library /wp-admin/upload.php | 1,565 ▲165 | 5.05 ▲0.87 | 122.47 ▲10.34 | 86.55 ▲39.50 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 759 | 2.46 | 30.54 | 20.47 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 759 | 2.45 | 30.01 | 13.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- digi_cap_init
- db_upgraded
- widget_theysaidso_widget
- _digirisk_accronym
- 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
Please fix the following server-side errors
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings 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: Class 'eoxia\\View_Util' not found in wp-content/plugins/digirisk/modules/setting/view/accronym/form.view.php:29
- > 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: Call to undefined function mysql2date() in wp-content/plugins/digirisk/core/assets/js/define-string.js.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
digirisk/digirisk.php 85% from 13 tests
The primary PHP file in "Digirisk" version 7.7.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected86,681 lines of code in 987 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 633 | 9,321 | 18,268 | 38,899 |
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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 3.91 |
▷ 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,199 | |
▷ Static methods | 18 | 1.50% |
▷ Public methods | 1,092 | 91.08% |
▷ Protected methods | 82 | 6.84% |
▷ Private methods | 25 | 2.09% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
164 PNG files occupy 2.82MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/preconisations/avertissements/dangerElectrique_xs.png | 0.50KB | 0.42KB | ▼ 16.63% |
core/assets/images/typeDeTravaux/large/meuleuse-large.png | 91.11KB | 35.45KB | ▼ 61.09% |
core/assets/images/preconisations/avertissements/dangerGeneral_xs.png | 0.49KB | 0.41KB | ▼ 16.30% |
core/assets/images/preconisations/avertissements/dangerMatieresComburantes_s.png | 0.94KB | 0.84KB | ▼ 10.32% |
core/assets/images/typeDeTravaux/chalumeau.png | 0.87KB | 0.50KB | ▼ 42.31% |