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: ▼1.88MB] [CPU: ▼55.64ms] Passed 4 tests
Server-side resources used by MenuBaron for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 8.54 ▼30.44 |
Dashboard /wp-admin | 2.14 ▼1.17 | 5.92 ▼48.15 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 5.59 ▼43.74 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.76 | 5.44 ▼96.95 |
Media Library /wp-admin/upload.php | 2.14 ▼1.10 | 5.43 ▼33.71 |
FAQ /wp-admin/admin.php?page=edit_pages | 2.14 | 8.99 |
MenuBaron /wp-admin/admin.php?page=menubaron-options | 2.14 | 7.26 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_mb_specials_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MenuBaron for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 14.99 ▲0.80 | 9.65 ▲7.85 | 42.77 ▼2.66 |
Dashboard /wp-admin | 2,233 ▲62 | 5.48 ▼0.18 | 98.48 ▲2.25 | 81.16 ▲39.60 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 2.40 ▲0.46 | 46.66 ▲10.06 | 34.67 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.38 ▲0.30 | 708.13 ▲33.76 | 35.38 ▼40.44 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 5.00 ▲0.79 | 112.17 ▲0.16 | 74.46 ▲23.57 |
FAQ /wp-admin/admin.php?page=edit_pages | 863 | 2.30 | 31.49 | 54.44 |
MenuBaron /wp-admin/admin.php?page=menubaron-options | 871 | 2.28 | 31.06 | 36.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_mb_specials_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=menubaron-options
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/menubaron/mbwp.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: restaurant, food presentation, food, restaurant website, restaurant menu
menubaron/mbwp.php 92% from 13 tests
"MenuBaron for WordPress" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("menubaron.php" instead of "mbwp.php")
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
Success! There were no dangerous files found in this plugin19,740 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,643 | 2,753 | 18,408 |
CSS | 2 | 35 | 54 | 1,096 |
PHP | 2 | 31 | 38 | 236 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.55MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
css/ui-lightness/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/ui-lightness/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-1.png | 529.20KB | 152.36KB | ▼ 71.21% |