Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.19ms] Passed 4 tests
Analyzing server-side resources used by Daily Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 39.23 ▼16.11 |
Dashboard /wp-admin | 3.69 ▲0.39 | 50.77 ▼3.21 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 52.37 ▲5.15 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 87.56 ▼4.61 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.56 ▲3.18 |
Dishes /wp-admin/admin.php?page=ManageDishes | 3.53 | 37.22 |
Daily menu /wp-admin/admin.php?page=ManageDailyMenu | 3.51 | 32.03 |
Options /wp-admin/admin.php?page=DailyMenuOptions | 3.55 | 31.32 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 191 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_dm_dish |
wp_dm_menu |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
dm_db_version |
widget_recent-posts |
widget_dmwidget |
dm_shotcode_jqueryui_css |
can_compress_scripts |
dm_shotcode_css |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Daily Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.17 ▼1.58 | 1.68 ▼0.14 | 41.14 ▼3.51 |
Dashboard /wp-admin | 2,237 ▲49 | 4.91 ▼0.98 | 100.62 ▼13.39 | 40.47 ▼4.27 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.01 | 40.06 ▲4.01 | 34.87 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 23.18 ▼0.36 | 687.20 ▼2.42 | 47.86 ▼3.04 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.18 ▼0.02 | 98.32 ▼11.24 | 39.35 ▼5.98 |
Dishes /wp-admin/admin.php?page=ManageDishes | 1,689 | 4.55 | 180.42 | 44.10 |
Daily menu /wp-admin/admin.php?page=ManageDailyMenu | 1,266 | 4.05 | 77.97 | 30.89 |
Options /wp-admin/admin.php?page=DailyMenuOptions | 1,152 | 3.34 | 61.76 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_dm_dish
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- dm_shotcode_jtable_css
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_dmwidget
- can_compress_scripts
- dm_shotcode_jqueryui_css
- dm_shotcode_css
Smoke tests 0% 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
- > GET request to /wp-admin/admin.php?page=ManageDishes
- > POST request to /wp-admin/admin-ajax.php?action=list_dishes&jtStartIndex=0&jtPageSize=20
- > Notice in wp-content/plugins/daily-menu/controllers/DishTableControlFunctions.php+16
Undefined index: jtSorting
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/daily-menu/index.php
- 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'DM_PLUGIN_DIR/models/JSONError.php' (include_path='.:/usr/share/php') in wp-content/plugins/daily-menu/controllers/DishTableControlFunctions.php on line 6
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-menu/view/ManageMenus.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'DM_PLUGIN_DIR/models/Menu.php' (include_path='.:/usr/share/php') in wp-content/plugins/daily-menu/models/Dish.php on line 2
- > PHP Warning
require_once(DM_PLUGIN_DIR/models/Menu.php): failed to open stream: No such file or directory in wp-content/plugins/daily-menu/controllers/ListMenus.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'DM_PLUGIN_DIR/models/Type.php' (include_path='.:/usr/share/php') in wp-content/plugins/daily-menu/controllers/ListTypes.php on line 2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-menu/view/ManageDishes.php on line 4
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-menu/view/ManageSettings.php on line 4
- > PHP Warning
require_once(DM_PLUGIN_DIR/models/Type.php): failed to open stream: No such file or directory in wp-content/plugins/daily-menu/controllers/ListTypes.php on line 2
- > PHP Warning
require_once(DM_PLUGIN_DIR/models/Dish.php): failed to open stream: No such file or directory in wp-content/plugins/daily-menu/models/Menu.php on line 2
- > PHP Warning
Use of undefined constant DM_PLUGIN_DIR - assumed 'DM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-menu/controllers/InstallController.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=DailyMenuOptions
- > Network (severe)
wp-content/plugins/daily-menu/js/jtable/localization/jquery.jtable.en.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: Please add images for these screenshots: #1 (Dishes management), #2 (Menus management), #3 (Daily menu)
daily-menu/index.php 92% from 13 tests
Analyzing the main PHP file in "Daily Menu" version 0.7
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("daily-menu.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected25,878 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 2,630 | 2,871 | 11,062 |
CSS | 45 | 207 | 419 | 11,003 |
LESS | 20 | 374 | 97 | 1,760 |
PHP | 18 | 348 | 768 | 1,457 |
HTML | 1 | 84 | 15 | 414 |
PO File | 1 | 81 | 95 | 182 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 8.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 4 | 36.36% |
▷ Concrete classes | 7 | 63.64% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 45 | 40.54% |
▷ Public methods | 109 | 98.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.80% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 8 | 33.33% |
▷ Class constants | 16 | 66.67% |
▷ Public constants | 16 | 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
54 PNG files occupy 0.26MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jtable/themes/jqueryui-metroblue/images/ui-icons_66B3FF_0.png | 9.28KB | 4.76KB | ▼ 48.71% |
js/jtable/themes/jqueryui-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.29KB | 0.10KB | ▼ 65.41% |
js/jtable/themes/jqueryui-redmond/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
js/jtable/themes/jqueryui-metroblue/images/ui-icons_d4d4d4_0.png | 9.28KB | 4.76KB | ▼ 48.74% |
js/jtable/themes/jqueryui-metroblue/images/ui-icons_ffffff_0.png | 9.31KB | 4.76KB | ▼ 48.86% |