Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.54MB] [CPU: ▼24.83ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Food and Drink Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.47 ▼2.76 |
Dashboard /wp-admin | 3.39 ▲0.04 | 36.57 ▼29.02 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 56.41 ▼3.32 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.54 | 41.03 ▼64.23 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.62 ▼0.50 |
RFADM Display Options /wp-admin/options-general.php?page=responsive_food_and_drink_menu | 3.36 | 32.77 |
All PDF Menus /wp-admin/edit.php?post_type=pdf_menu_page_cpt | 3.44 | 36.46 |
Add New /wp-admin/post-new.php?post_type=pdf_menu_page_cpt | 3.34 | 35.70 |
Add New /wp-admin/post-new.php?post_type=menu_page_cpt | 3.34 | 37.54 |
All Menus /wp-admin/edit.php?post_type=menu_page_cpt | 3.44 | 35.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
rfadm__settings |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Responsive Food and Drink Menu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲200 | 13.81 ▼0.54 | 8.45 ▲6.06 | 44.25 ▼3.41 |
Dashboard /wp-admin | 2,253 ▲76 | 5.65 ▼0.03 | 95.66 ▼4.70 | 38.23 ▼4.39 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.16 ▲0.17 | 39.44 ▲0.90 | 35.73 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.47 ▼0.35 | 687.84 ▼23.46 | 48.64 ▼17.82 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.18 ▼0.01 | 102.93 ▲2.65 | 43.68 ▼1.76 |
RFADM Display Options /wp-admin/options-general.php?page=responsive_food_and_drink_menu | 1,196 | 1.97 | 23.09 | 28.04 |
All PDF Menus /wp-admin/edit.php?post_type=pdf_menu_page_cpt | 1,119 | 1.98 | 31.56 | 31.05 |
Add New /wp-admin/post-new.php?post_type=pdf_menu_page_cpt | 1,718 | 3.61 | 69.03 | 36.11 |
Add New /wp-admin/post-new.php?post_type=menu_page_cpt | 2,406 | 7.84 | 176.42 | 62.44 |
All Menus /wp-admin/edit.php?post_type=menu_page_cpt | 1,112 | 1.91 | 34.63 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- rfadm__settings
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=menu_page_cpt
- > Notice in wp-content/plugins/responsive-food-and-drink-menu/responsive-food-and-drink-menu.php+189
Trying to get property 'post_type' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=menu_page_cpt
- > Notice in wp-content/plugins/responsive-food-and-drink-menu/inc/pdf_menu_pdf.php+59
Undefined variable: post_id
- > GET request to /wp-admin/post-new.php?post_type=menu_page_cpt
- > Notice in wp-content/plugins/responsive-food-and-drink-menu/responsive-food-and-drink-menu.php+193
Trying to get property 'base' of non-object
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/responsive-food-and-drink-menu/responsive-food-and-drink-menu.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=menu_page_cpt
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=menu_page_cpt:461:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&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,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=menu_page_cpt
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #1 in responsive-food-and-drink-menu/assets to your readme.txt
responsive-food-and-drink-menu/responsive-food-and-drink-menu.php 92% from 13 tests
This is the main PHP file of "Responsive Food and Drink Menu" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
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 detected1,032 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 263 | 220 | 749 |
CSS | 2 | 39 | 2 | 212 |
JavaScript | 5 | 19 | 20 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected