Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼152.02ms] Passed 4 tests
A check of server-side resources used by Weekly Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 33.46 ▼0.58 |
Dashboard /wp-admin | 3.17 ▲0.12 | 51.33 ▲5.21 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 46.16 ▲0.70 |
Add New Post /wp-admin/post-new.php | 4.15 ▼1.28 | 56.83 ▼599.85 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 32.41 ▼8.36 |
Settings /wp-admin/edit.php?post_type=pmz-weekly-menu&page=settings | 3.09 | 28.20 |
Add New /wp-admin/post-new.php?post_type=pmz-weekly-menu | 3.05 | 35.89 |
All Weekly Menus /wp-admin/edit.php?post_type=pmz-weekly-menu | 3.16 | 32.94 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Weekly Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,847 ▲251 | 16.46 ▲1.00 | 14.03 ▲4.41 | 53.76 ▲7.58 |
Dashboard /wp-admin | 3,014 ▲80 | 6.00 ▲0.08 | 146.78 ▼1.53 | 104.17 ▼0.69 |
Posts /wp-admin/edit.php | 2,783 ▲44 | 2.71 ▼0.02 | 74.60 ▲9.86 | 86.61 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,530 ▼51 | 18.56 ▲0.93 | 427.72 ▲2.57 | 121.47 ▲8.88 |
Media Library /wp-admin/upload.php | 1,851 ▲44 | 5.04 ▲0.03 | 152.97 ▼5.35 | 109.73 ▼8.29 |
Settings /wp-admin/edit.php?post_type=pmz-weekly-menu&page=settings | 1,276 | 2.33 | 55.42 | 70.70 |
Add New /wp-admin/post-new.php?post_type=pmz-weekly-menu | 3,060 | 9.17 | 218.47 | 140.57 |
All Weekly Menus /wp-admin/edit.php?post_type=pmz-weekly-menu | 1,462 | 2.63 | 66.71 | 67.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Almost there, just fix the following server-side errors
- 22 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pmz-weekly-menu&page=settings
- > Notice in wp-content/plugins/weekly-menu/admin/partials/pmz-weekly-menu-admin-display.php+56
Undefined variable: id
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+104
Trying to access array offset on value of type bool
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pmz-weekly-menu&page=settings
- > Notice in wp-content/plugins/weekly-menu/admin/partials/pmz-weekly-menu-admin-display.php+56
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: monday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: monday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: monday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: monday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: tuesday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: tuesday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: tuesday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: tuesday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: wednesday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: wednesday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: wednesday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: wednesday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: thursday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: thursday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: thursday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: thursday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: friday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: friday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: friday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: friday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: saturday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: saturday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: saturday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: saturday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: sunday_breakfast
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: sunday_lunch
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: sunday_snack
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Notice in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+153
Undefined index: sunday_dinner
- > GET request to /wp-admin/post-new.php?post_type=pmz-weekly-menu
- > Warning in wp-content/plugins/weekly-menu/admin/class-pmz-weekly-menu-admin.php+104
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/weekly-menu/public/partials/pmz-weekly-menu-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/weekly-menu/public/partials/content-pmz-weekly-menu.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/weekly-menu/public/partials/single-pmz-weekly-menu.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/weekly-menu/admin/partials/pmz-weekly-menu-admin-display.php:19
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
weekly-menu/pmz-weekly-menu.php 85% from 13 tests
The primary PHP file in "Weekly Menu" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weekly-menu.php" instead of "pmz-weekly-menu.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin515 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 226 | 595 | 475 |
CSS | 2 | 3 | 8 | 25 |
JavaScript | 2 | 11 | 54 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 5 | 14.29% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin