Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.56MB] [CPU: ▼16.07ms] Passed 4 tests
This is a short check of server-side resources used by Digirisk Dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.75 ▲1.29 | 41.78 ▼2.84 |
Dashboard /wp-admin | 4.32 ▲1.01 | 29.80 ▼19.98 |
Posts /wp-admin/edit.php | 4.75 ▲1.39 | 58.97 ▲11.31 |
Add New Post /wp-admin/post-new.php | 4.51 ▼1.38 | 45.59 ▼52.77 |
Media Library /wp-admin/upload.php | 4.56 ▲1.33 | 48.63 ▲13.82 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 4.50 | 40.25 |
Ajouter un site /wp-admin/admin.php?page=digirisk-dashboard-add | 4.49 | 42.24 |
DUER Multisite /wp-admin/admin.php?page=digirisk-dashboard-duer | 4.49 | 40.45 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 4.50 | 39.37 |
Modèles ODT /wp-admin/admin.php?page=digirisk-dashboard-model | 4.49 | 37.88 |
DigiRisk Dashboard /wp-admin/admin.php?page=digirisk-dashboard | 4.49 | 39.83 |
Server storage [IO: ▲4.81MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 443 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Digirisk Dashboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,572 ▼174 | 13.67 ▼0.62 | 9.32 ▲7.42 | 36.70 ▼8.48 |
Dashboard /wp-admin | 1,890 ▼301 | 5.81 ▲0.92 | 98.32 ▼5.63 | 73.51 ▲26.96 |
Posts /wp-admin/edit.php | 2,234 ▲145 | 2.47 ▲0.45 | 41.62 ▲2.54 | 35.92 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 24.18 ▲6.83 | 727.65 ▲50.94 | 35.62 ▼20.34 |
Media Library /wp-admin/upload.php | 1,576 ▲194 | 4.39 ▲0.19 | 99.18 ▼2.89 | 79.89 ▲35.27 |
Tableau de bord /wp-admin/admin.php?page=go-to-wp-admin | 756 | 1.84 | 25.94 | 22.37 |
Ajouter un site /wp-admin/admin.php?page=digirisk-dashboard-add | 1,105 | 3.45 | 41.13 | 56.05 |
DUER Multisite /wp-admin/admin.php?page=digirisk-dashboard-duer | 1,328 | 3.53 | 45.47 | 29.99 |
Minimize menu /wp-admin/admin.php?page=minimize-menu | 756 | 1.83 | 26.92 | 13.77 |
Modèles ODT /wp-admin/admin.php?page=digirisk-dashboard-model | 1,014 | 3.41 | 42.32 | 59.79 |
DigiRisk Dashboard /wp-admin/admin.php?page=digirisk-dashboard | 1,036 | 3.45 | 42.14 | 71.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting 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=minimize-menu
- > Notice in wp-content/plugins/digirisk-dashboard/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=minimize-menu
- > Notice in wp-content/plugins/digirisk-dashboard/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=minimize-menu
- > Notice in wp-content/plugins/digirisk-dashboard/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=minimize-menu
- > Warning in wp-content/plugins/digirisk-dashboard/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
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Warning in wp-content/plugins/digirisk-dashboard/core/action/class-digirisk-dashboard-core-action.php+93
Use of undefined constant PLUGIN_DIGIRISK_URL - assumed 'PLUGIN_DIGIRISK_URL' (this will throw an Error in a future version of PHP)
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Notice in wp-content/plugins/digirisk-dashboard/core/action/class-digirisk-dashboard-core-action.php+93
Undefined index: digirisk
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Notice in wp-content/plugins/digirisk-dashboard/core/action/class-digirisk-dashboard-core-action.php+93
Trying to get property 'version' of non-object
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard-model
- > Notice in wp-content/plugins/digirisk-dashboard/core/external/eo-framework/core/util/class-view-util.php+49
Trying to get property 'handle_model' of non-object
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard-model
- > Notice in wp-content/plugins/digirisk-dashboard/core/external/eo-framework/core/util/class-view-util.php+49
Trying to get property 'path' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function digirisk_dashboard\\plugins_url() in wp-content/plugins/digirisk-dashboard/digirisk_dashboard.php:23
- > PHP Fatal error
Uncaught Error: Class 'eoxia\\View_Util' not found in wp-content/plugins/digirisk-dashboard/modules/model/view/items.view.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Network (severe)
plugin_digirisk_urlcore/assets/css/style.css - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Network (severe)
plugin_digirisk_urlcore/assets/js/backend.min.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Network (severe)
plugin_digirisk_urlcore/assets/js/owl.carousel.min.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=digirisk-dashboard
- > Network (severe)
plugin_digirisk_urlcore/assets/js/autosize.min.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Dashboard) image required
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
digirisk-dashboard/digirisk_dashboard.php 92% from 13 tests
The main PHP script in "Digirisk Dashboard" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digirisk-dashboard.php" instead of "digirisk_dashboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected41,588 lines of code in 333 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 2,601 | 6,172 | 9,620 |
Sass | 119 | 522 | 191 | 8,756 |
SVG | 3 | 0 | 0 | 8,611 |
CSS | 13 | 1,010 | 544 | 6,308 |
JavaScript | 33 | 871 | 2,298 | 4,659 |
HTML | 19 | 281 | 36 | 1,922 |
PO File | 3 | 635 | 959 | 1,295 |
JSON | 15 | 1 | 0 | 240 |
Markdown | 4 | 102 | 0 | 177 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 1 | 1.23% |
▷ Concrete classes | 80 | 98.77% |
▷ Final classes | 0 | 0.00% |
Methods | 369 | |
▷ Static methods | 19 | 5.15% |
▷ Public methods | 321 | 86.99% |
▷ Protected methods | 33 | 8.94% |
▷ Private methods | 15 | 4.07% |
Functions | 18 | |
▷ Named functions | 6 | 33.33% |
▷ Anonymous functions | 12 | 66.67% |
Constants | 66 | |
▷ Global constants | 65 | 98.48% |
▷ Class constants | 1 | 1.52% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/favicon_hd.png | 2.80KB | 1.60KB | ▼ 43.03% |
core/assets/images/sitemap.png | 0.35KB | 0.41KB | 0.00% |