Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.69ms] Passed 4 tests
This is a short check of server-side resources used by Menukaart - Restaurant Menu & Online Ordering with WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.17 ▲0.25 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.23 ▼2.27 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.32 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.35 ▼3.64 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.97 ▼4.06 |
Add Menu Item /wp-admin/post-new.php?post_type=menukaart | 3.54 | 48.14 |
Manage Views /wp-admin/edit.php?post_type=menukaart&page=menukaart-manage-views | 3.42 | 35.61 |
All Menu Items /wp-admin/edit.php?post_type=menukaart | 3.43 | 38.75 |
Usage & Tutorial /wp-admin/edit.php?post_type=menukaart&page=menukaart-get-help | 3.36 | 30.99 |
Courses /wp-admin/edit-tags.php?taxonomy=menukaart_courses&post_type=menukaart | 3.39 | 41.21 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Menukaart - Restaurant Menu & Online Ordering with WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲207 | 13.45 ▼1.12 | 9.53 ▲7.97 | 41.51 ▲2.45 |
Dashboard /wp-admin | 2,257 ▲77 | 5.90 ▲0.24 | 86.32 ▲0.45 | 36.34 ▼3.35 |
Posts /wp-admin/edit.php | 2,164 ▲67 | 2.25 ▲0.23 | 37.53 ▲2.08 | 35.74 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,584 ▲45 | 23.30 ▲4.84 | 649.61 ▲8.50 | 34.21 ▼35.60 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.40 ▲0.21 | 99.66 ▲0.49 | 42.48 ▼1.88 |
Add Menu Item /wp-admin/post-new.php?post_type=menukaart | 2,469 | 7.87 | 189.70 | 65.08 |
Manage Views /wp-admin/edit.php?post_type=menukaart&page=menukaart-manage-views | 1,758 | 1.94 | 27.77 | 55.84 |
All Menu Items /wp-admin/edit.php?post_type=menukaart | 1,133 | 2.21 | 32.95 | 27.63 |
Usage & Tutorial /wp-admin/edit.php?post_type=menukaart&page=menukaart-get-help | 1,481 | 9.33 | 265.63 | 95.66 |
Courses /wp-admin/edit-tags.php?taxonomy=menukaart_courses&post_type=menukaart | 1,344 | 2.00 | 31.83 | 31.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/menukaart/admin/view/help-usage.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: restaurant, food, caf menu, food menu, restaurant menu
menukaart/menukaart.php Passed 13 tests
The main PHP script in "Menukaart - Restaurant Menu & Online Ordering with WooCommerce" version 1.5 is automatically included on every request by WordPress
78 characters long description:
A simple restaurant food menu plugin that displays menu items in your webpage.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,045 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 5 | 53 | 25 | 2,600 |
PHP | 21 | 213 | 76 | 2,000 |
Sass | 15 | 36 | 36 | 1,796 |
LESS | 15 | 36 | 46 | 1,786 |
PO File | 1 | 70 | 80 | 170 |
JavaScript | 2 | 8 | 16 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 65.79% |
▷ Protected methods | 10 | 26.32% |
▷ Private methods | 3 | 7.89% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
There were not PNG files found in your plugin