Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼32.42ms] Passed 4 tests
An overview of server-side resources used by Advance Food Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.20 ▼1.60 |
Dashboard /wp-admin | 3.07 ▼0.24 | 24.47 ▼21.06 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 24.06 ▼23.96 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 23.40 ▼75.78 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 23.80 ▼8.86 |
Advance Food Menu /wp-admin/edit.php?post_type=menu-item | 3.07 | 23.72 |
Settings /wp-admin/edit.php?post_type=menu-item&page=settings | 3.07 | 21.75 |
Menu Item Types /wp-admin/edit-tags.php?taxonomy=menu-item-type&post_type=menu-item | 3.07 | 23.25 |
Add New /wp-admin/post-new.php?post_type=menu-item | 3.07 | 23.53 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Advance Food Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,131 ▲396 | 14.72 ▲0.47 | 21.94 ▲20.19 | 53.76 ▲5.63 |
Dashboard /wp-admin | 2,240 ▲52 | 5.84 ▼0.06 | 111.86 ▲6.52 | 85.86 ▲44.06 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.01 ▲0.03 | 37.90 ▼3.39 | 34.50 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 18.23 ▲0.55 | 722.86 ▲49.72 | 68.33 ▲9.98 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.18 ▼0.02 | 95.61 ▼9.60 | 81.66 ▲33.33 |
Advance Food Menu /wp-admin/edit.php?post_type=menu-item | 1,084 | 1.96 | 30.19 | 30.85 |
Settings /wp-admin/edit.php?post_type=menu-item&page=settings | 845 | 2.02 | 23.27 | 42.34 |
Menu Item Types /wp-admin/edit-tags.php?taxonomy=menu-item-type&post_type=menu-item | 1,296 | 2.14 | 26.41 | 30.00 |
Add New /wp-admin/post-new.php?post_type=menu-item | 2,321 | 7.66 | 185.08 | 133.45 |
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
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu-item
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/post-new.php?post_type=menu-item
- > Notice in wp-content/plugins/advance-food-menu/includes/advance-food-menu-meta.php+35
Undefined index: afm-price
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-food-menu/includes/advance-food-menu-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-food-menu/includes/advance-food-menu-meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-food-menu/includes/advance-food-menu-cpts.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advance-food-menu/includes/advance-food-menu-shortcode.php:106
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
advance-food-menu/advance-food-menu.php Passed 13 tests
This is the main PHP file of "Advance Food Menu" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
The simplest solution to display beautiful restaurant menus in WordPress.
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 detected372 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 64 | 26 | 257 |
CSS | 3 | 2 | 17 | 72 |
JavaScript | 5 | 8 | 48 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/food-icon.png | 0.47KB | 0.53KB | 0.00% |