Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.74ms] Passed 4 tests
Server-side resources used by MenuPublisher 4 WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.44 ▼35.50 |
Dashboard /wp-admin | 2.08 ▼1.22 | 7.96 ▼46.25 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 7.53 ▼41.73 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 8.37 ▼91.48 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 7.12 ▼29.08 |
MenuPublisher 4 WP /wp-admin/options-general.php?page=menupublisher_4_wp_options | 2.08 | 9.48 |
Server storage [IO: ▲0.33MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MenuPublisher 4 WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 14.00 ▼0.40 | 4.94 ▲3.31 | 37.87 ▼6.03 |
Dashboard /wp-admin | 2,214 ▲26 | 5.91 ▲0.99 | 99.48 ▼14.52 | 38.87 ▼5.80 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.14 ▼0.02 | 40.14 ▲1.55 | 34.57 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 17.69 ▼0.62 | 653.53 ▲48.51 | 59.62 ▲4.98 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.18 ▲0.03 | 96.02 ▼8.86 | 42.16 ▼3.53 |
MenuPublisher 4 WP /wp-admin/options-general.php?page=menupublisher_4_wp_options | 852 | 2.18 | 28.04 | 34.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mmlt-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=menupublisher_4_wp_options
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mmlt-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=menupublisher_4_wp_options
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mmlt-admin-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=menupublisher_4_wp_options
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mmlt-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=menupublisher_4_wp_options
- > Notice in wp-content/plugins/menupublisher-4-wp/assets/templates/menupublisher-4-wp-settings.php+425
Undefined index: sRestaurantInlineHash
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/menupublisher-4-wp/assets/templates/mmlt-templates.php
- > /wp-content/plugins/menupublisher-4-wp/assets/templates/menupublisher-4-wp-startcode.php
- > /wp-content/plugins/menupublisher-4-wp/assets/templates/menupublisher-4-wp-settings.php
- > /wp-content/plugins/menupublisher-4-wp/menupublisher-4-wp.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (After you've installed and activated the plugin, go to **Settings -> MenuPublisher 4 WP**, enter there the **RestaurantCode**, which you can find on [MenuPublisher -> Distribution -> Homepage](http://www.menupublisher.de/index.php?page=gastr_backend&spage=distr&sspage=wpPlugin#wp_inline "Distribution"). Save then click on **"+add code snippet"**.), #2 (Select a name for the snippet (it must be unique among all snippets), the layout, whether the snippet should show Lunch card and/or Menu. Then save.), #3 (Edit the page, where the data, that you selected in the snippet setup, should be displayed and add there the code via MenuPublisher 4 WP button. **IMPORTANT**: keep in mind, that you should use only one code snippet on any page, otherwise you get an error and the output of the code is not correct.)
menupublisher-4-wp/menupublisher-4-wp.php Passed 13 tests
The principal PHP file in "MenuPublisher 4 WP" v. 1.3 is loaded by WordPress automatically on each request
97 characters long description:
This plugin renders lunch or menus from a restaurant on MenuPublisher.de directly on your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,059 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 80 | 43 | 936 |
JavaScript | 3 | 68 | 87 | 728 |
CSS | 1 | 4 | 0 | 228 |
PO File | 1 | 73 | 77 | 167 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 5.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 37.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin