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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.85ms] Passed 4 tests
A check of server-side resources used by Restaurant Food Menu by WP Darko – Drag & Drop Restaurant Menu Builder for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.00 ▲0.25 |
Dashboard /wp-admin | 3.46 ▲0.15 | 52.85 ▲2.29 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.09 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 97.22 ▼16.91 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.79 ▲3.95 |
All Food Items /wp-admin/edit.php?post_type=rfm_food_item | 3.42 | 38.11 |
All Food Menus /wp-admin/edit.php?post_type=rfm_food_menu | 3.42 | 38.36 |
Add New /wp-admin/post-new.php?post_type=rfm_food_menu | 3.42 | 44.32 |
Add New /wp-admin/post-new.php?post_type=rfm_food_item | 3.41 | 45.93 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restaurant Food Menu by WP Darko – Drag & Drop Restaurant Menu Builder for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.38 ▲0.03 | 2.12 ▼0.10 | 41.56 ▼4.91 |
Dashboard /wp-admin | 2,246 ▲69 | 5.62 ▼0.02 | 88.07 ▼3.52 | 39.32 ▼5.07 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.02 ▲0.00 | 40.88 ▲5.95 | 36.07 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,566 ▲32 | 23.65 ▲5.53 | 663.83 ▲27.74 | 65.46 ▼0.63 |
Media Library /wp-admin/upload.php | 1,448 ▲54 | 4.15 ▼0.04 | 95.22 ▼1.93 | 44.16 ▲0.77 |
All Food Items /wp-admin/edit.php?post_type=rfm_food_item | 1,124 | 2.38 | 48.67 | 31.60 |
All Food Menus /wp-admin/edit.php?post_type=rfm_food_menu | 1,132 | 2.37 | 45.73 | 32.10 |
Add New /wp-admin/post-new.php?post_type=rfm_food_menu | 1,847 | 2.96 | 59.72 | 43.81 |
Add New /wp-admin/post-new.php?post_type=rfm_food_item | 1,581 | 2.81 | 51.89 | 29.70 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rfm_food_item
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'length')" "TypeError: Cannot read properties of undefined (reading 'length')\n at /wp-content/plugins/restaurant-food-menu/inc/js/back.min.js?ver=6.3.1:1:1985\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/restaurant-food-menu/inc/js/back.min.js?ver=6.3.1:1:2182)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rfm_food_item
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
- > GET request to /wp-admin/post-new.php?post_type=rfm_food_menu
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Unexpected end of JSON input" "SyntaxError: Unexpected end of JSON input\n at JSON.parse (\u003Canonymous>)\n at /wp-content/plugins/restaurant-food-menu/inc/js/back.min.js?ver=6.3.1:1:8427\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/restaurant-food-menu/inc/js/back.min.js?ver=6.3.1:1:9913)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=rfm_food_menu
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught SyntaxError: Unexpected end of JSON input
- > GET request to /wp-admin/post-new.php?post_type=rfm_food_item
- > Network (severe)
wp-admin/none - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #5 in restaurant-food-menu/assets to your readme.txt
restaurant-food-menu/rfm.php 77% from 13 tests
"Restaurant Food Menu by WP Darko – Drag & Drop Restaurant Menu Builder for WordPress" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 198 characters long)
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 86 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("restaurant-food-menu.php" instead of "rfm.php")
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
There were no executable files found in this plugin2,152 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 222 | 24 | 1,017 |
PHP | 13 | 117 | 68 | 699 |
JavaScript | 2 | 35 | 49 | 436 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 20 | |
▷ Named functions | 20 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin