Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲2.46ms] Passed 4 tests
An overview of server-side resources used by GASTROFIX Menu Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.16 ▼1.88 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.79 ▼3.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.61 ▲8.09 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.30 ▲7.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.74 ▲7.38 |
Artikelgruppen /wp-admin/admin.php?page=vendomat-gastrofix-menu-presentation | 3.27 | 36.77 |
GASTROFIX Menu Plugin /wp-admin/admin.php?page=vendomat-gastrofix-menu | 3.26 | 36.49 |
Artikelliste /wp-admin/admin.php?page=vendomat-gastrofix-menu-articlelist | 3.27 | 41.23 |
API Einrichtung /wp-admin/admin.php?page=vendomat-gastrofix-menu-api-settings | 3.27 | 35.03 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GASTROFIX Menu Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲61 | 13.22 ▲0.04 | 1.83 ▲0.10 | 45.92 ▲2.18 |
Dashboard /wp-admin | 2,244 ▲35 | 4.90 ▲0.05 | 101.65 ▲3.43 | 77.33 ▲37.29 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.00 ▼0.06 | 38.71 ▼8.19 | 34.61 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 19.34 ▼3.79 | 702.59 ▲0.75 | 29.68 ▼16.27 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.24 ▲0.03 | 95.65 ▼17.25 | 79.44 ▲33.12 |
Artikelgruppen /wp-admin/admin.php?page=vendomat-gastrofix-menu-presentation | 724 | 1.34 | 7.44 | 24.74 |
GASTROFIX Menu Plugin /wp-admin/admin.php?page=vendomat-gastrofix-menu | 724 | 1.55 | 7.15 | 17.11 |
Artikelliste /wp-admin/admin.php?page=vendomat-gastrofix-menu-articlelist | 724 | 1.55 | 7.71 | 23.10 |
API Einrichtung /wp-admin/admin.php?page=vendomat-gastrofix-menu-api-settings | 724 | 1.55 | 7.36 | 23.67 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vendomat-gastrofix-menu-api-settings
- > Warning in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php+12
Use of undefined constant license_key - assumed 'license_key' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=vendomat-gastrofix-menu-presentation
- > Error in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php+18
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php:18
Stack trace:
#0 wp-content/plugins/vendomat-gastrofix-menu/option_pages/menu_presentation.php(8): gastrofix_menu_pluginIsActivated()
#1 wp-content/plugins/vendomat-gastrofix-menu/admin_menu.php(52): require_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): gastrofix_menu_p_menu_presentation()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/admin.php?page=vendomat-gastrofix-menu
- > Error in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php+18
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php:18
Stack trace:
#0 wp-content/plugins/vendomat-gastrofix-menu/option_pages/plugin_description.php(5): gastrofix_menu_pluginIsActivated()
#1 wp-content/plugins/vendomat-gastrofix-menu/admin_menu.php(74): require_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): gastrofix_menu_p_plugin_description()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/admin.php?page=vendomat-gastrofix-menu-articlelist
- > Error in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php+18
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php:18
Stack trace:
#0 wp-content/plugins/vendomat-gastrofix-menu/option_pages/articlelist.php(8): gastrofix_menu_pluginIsActivated()
#1 wp-content/plugins/vendomat-gastrofix-menu/admin_menu.php(65): require_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): gastrofix_menu_p_articlelist()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/admin.php?page=vendomat-gastrofix-menu-api-settings
- > Error in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php+18
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/vendomat-gastrofix-menu/extensions/requests/licenseHandler.php:18
Stack trace:
#0 wp-content/plugins/vendomat-gastrofix-menu/option_pages/api_settings.php(5): gastrofix_menu_pluginIsActivated()
#1 wp-content/plugins/vendomat-gastrofix-menu/admin_menu.php(39): require_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): gastrofix_menu_p_api_settings()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/vendomat-gastrofix-menu/templates/basic1.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: digital menu, gastrofix, menuboard
vendomat-gastrofix-menu/vendomat-gastrofix-menu.php Passed 13 tests
The main PHP file in "GASTROFIX Menu Plugin" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Digitale Speisekarte direkt aus der GASTROFIX Kasse
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,635 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 438 | 638 | 1,942 |
PHP | 15 | 159 | 113 | 1,026 |
JSON | 2 | 9 | 0 | 494 |
CSS | 3 | 31 | 2 | 171 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 1.37MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/tomatoes.png | 976.72KB | 292.88KB | ▼ 70.01% |
stylesheets/assets_datatables/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
stylesheets/assets_datatables/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
templates/assets/gray_sand.png | 16.58KB | 19.53KB | 0.00% |
templates/assets/black_linen_v2.png | 137.38KB | 146.19KB | 0.00% |