Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.91MB] [CPU: ▲3.44ms] Passed 4 tests
An overview of server-side resources used by Foodlist
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 39.73 ▲0.89 |
Dashboard /wp-admin | 4.34 ▲1.04 | 56.75 ▲7.54 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 52.36 ▲5.00 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 101.95 ▲1.36 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 42.52 ▲6.49 |
Menu Tags /wp-admin/admin.php?page=foodlist-menu-tags | 4.19 | 39.60 |
Add New /wp-admin/post-new.php?post_type=fl-menu-item | 4.41 | 62.88 |
Section Manager /wp-admin/admin.php?page=foodlist-section-manager | 4.37 | 53.71 |
Add New /wp-admin/post-new.php?post_type=fl-menu | 4.38 | 52.99 |
All Menu Sections /wp-admin/edit.php?post_type=fl-menu-section | 4.38 | 45.54 |
All Menu Items /wp-admin/edit.php?post_type=fl-menu-item | 4.44 | 51.05 |
Menu Manager /wp-admin/admin.php?page=foodlist-menu-manager | 4.24 | 44.69 |
Settings /wp-admin/admin.php?page=foodlist-settings | 4.18 | 37.85 |
Dashboard /wp-admin/admin.php?page=foodlist-dashboard | 4.17 | 39.23 |
All Menus /wp-admin/edit.php?post_type=fl-menu | 4.37 | 45.16 |
Server storage [IO: ▲0.82MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 187 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_foodlist_menu_tagmeta |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
foodlist_demo_data_ids |
widget_recent-comments |
foodlist_first_start |
foodlist |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Foodlist: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲245 | 13.33 ▼1.36 | 1.56 ▼0.14 | 37.02 ▼6.90 |
Dashboard /wp-admin | 2,375 ▲187 | 5.06 ▼0.79 | 108.65 ▲6.16 | 41.35 ▼1.15 |
Posts /wp-admin/edit.php | 2,261 ▲169 | 2.33 ▲0.30 | 48.06 ▲6.85 | 31.03 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,705 ▲182 | 18.22 ▼4.58 | 615.89 ▼24.13 | 33.29 ▼21.11 |
Media Library /wp-admin/upload.php | 1,784 ▲399 | 4.76 ▲0.57 | 100.06 ▼1.29 | 45.24 ▼1.74 |
Menu Tags /wp-admin/admin.php?page=foodlist-menu-tags | 1,660 | 4.33 | 61.95 | 31.81 |
Add New /wp-admin/post-new.php?post_type=fl-menu-item | 2,048 | 5.21 | 93.96 | 36.04 |
Section Manager /wp-admin/admin.php?page=foodlist-section-manager | 1,992 | 4.82 | 67.90 | 31.06 |
Add New /wp-admin/post-new.php?post_type=fl-menu | 1,990 | 5.24 | 83.12 | 33.52 |
All Menu Sections /wp-admin/edit.php?post_type=fl-menu-section | 2,116 | 2.33 | 39.12 | 31.10 |
All Menu Items /wp-admin/edit.php?post_type=fl-menu-item | 2,640 | 2.34 | 45.27 | 32.79 |
Menu Manager /wp-admin/admin.php?page=foodlist-menu-manager | 1,532 | 4.56 | 65.00 | 27.77 |
Settings /wp-admin/admin.php?page=foodlist-settings | 2,618 | 5.74 | 122.75 | 67.82 |
Dashboard /wp-admin/admin.php?page=foodlist-dashboard | 1,232 | 4.33 | 59.74 | 28.41 |
All Menus /wp-admin/edit.php?post_type=fl-menu | 1,801 | 2.32 | 39.44 | 29.77 |
Uninstaller [IO: ▲0.19MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_foodlist_menu_tagmeta
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- theysaidso_admin_options
- foodlist
- widget_recent-posts
- foodlist_first_start
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- foodlist_demo_data_ids
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foodlist-dashboard
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=foodlist-menu-tags
- > Notice in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Table/TagListTableList.php+301
compact(): Undefined variable: search
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 81× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\WordPress\\API\\Wrapper\\Generic\\CustomPost' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/PostType/MenuSectionPostType.php:14
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\Text\\Shortcode' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuSectionIdShortcode.php:9
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\WordPress\\API\\Wrapper\\Generic\\CustomPost' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/PostType/MenuItemPostType.php:14
- > PHP Fatal error
Uncaught Error: Class 'Foodlist\\Project\\WordPress\\Plugin\\Foodlist\\Generic\\Post\\BasePost' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Post/MenuPost.php:10
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\Text\\Shortcode' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuIdShortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foodlist/meta.php:24
- > PHP Fatal error
Uncaught Error: Class 'Foodlist\\Project\\WordPress\\Plugin\\Foodlist\\Controller\\BaseController' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Controller/Shortcode/MenuShortcodeController.php:12
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\WordPress\\API\\Wrapper\\Admin\\Metabox\\PostMetabox' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuSection/ItemsMetabox.php:24
- > PHP Fatal error
Uncaught Error: Class 'Foodlist\\Project\\WordPress\\Plugin\\Foodlist\\Controller\\BaseController' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Controller/Page/TagPageController.php:12
- > PHP Fatal error
Uncaught Error: Class 'Artprima\\Text\\Shortcode' not found in wp-content/plugins/foodlist/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemIdShortcode.php:10
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: caf menu, restaurant, eatery, list, restaurant menu...
foodlist/plugin.php 92% from 13 tests
"Foodlist" version 1.13'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("foodlist.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,977 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,304 | 1,779 | 5,624 |
JavaScript | 47 | 649 | 677 | 3,449 |
PO File | 2 | 378 | 472 | 969 |
CSS | 4 | 158 | 26 | 782 |
Markdown | 1 | 24 | 0 | 59 |
Bourne Shell | 1 | 19 | 0 | 50 |
JSON | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 6 | 6.06% |
▷ Concrete classes | 93 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 454 | |
▷ Static methods | 9 | 1.98% |
▷ Public methods | 414 | 91.19% |
▷ Protected methods | 8 | 1.76% |
▷ Private methods | 32 | 7.05% |
Functions | 14 | |
▷ Named functions | 8 | 57.14% |
▷ Anonymous functions | 6 | 42.86% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/food-grey.png | 10.84KB | 5.16KB | ▼ 52.40% |
assets/images/icons/healthy.png | 0.76KB | 0.99KB | 0.00% |
assets/images/icons/star.png | 0.55KB | 0.38KB | ▼ 31.79% |
assets/images/food-grey_34x34.png | 1.74KB | 1.50KB | ▼ 13.59% |
assets/images/icons/trophy.png | 0.83KB | 0.75KB | ▼ 9.46% |