Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.00MB] [CPU: ▼38.32ms] Passed 4 tests
A check of server-side resources used by NutritionWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 25.13 ▼21.18 |
Dashboard /wp-admin | 2.94 ▼0.36 | 19.13 ▼25.95 |
Posts /wp-admin/edit.php | 2.94 ▼0.41 | 19.83 ▼25.01 |
Add New Post /wp-admin/post-new.php | 2.94 ▼2.94 | 17.80 ▼81.12 |
Media Library /wp-admin/upload.php | 2.94 ▼0.29 | 17.58 ▼16.49 |
Add New Recipe /wp-admin/post-new.php?post_type=nutritionwp-recipe | 2.94 | 19.45 |
Special Diets /wp-admin/edit-tags.php?taxonomy=nutritionwp-special-diet&post_type=nutritionwp-recipe | 2.94 | 20.04 |
Occasions /wp-admin/edit-tags.php?taxonomy=nutritionwp-occasion&post_type=nutritionwp-recipe | 2.94 | 19.88 |
Settings /wp-admin/edit.php?post_type=nutritionwp-recipe&page=nwp-settings | 2.94 | 18.32 |
Courses /wp-admin/edit-tags.php?taxonomy=nutritionwp-course&post_type=nutritionwp-recipe | 2.94 | 18.27 |
Recipes /wp-admin/edit.php?post_type=nutritionwp-recipe | 2.94 | 19.01 |
Cuisines /wp-admin/edit-tags.php?taxonomy=nutritionwp-cuisine&post_type=nutritionwp-recipe | 2.94 | 18.98 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 248 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for NutritionWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 13.17 ▼1.08 | 1.53 ▼0.39 | 40.36 ▼4.55 |
Dashboard /wp-admin | 2,253 ▲68 | 4.92 ▼0.96 | 97.02 ▼2.33 | 72.09 ▲30.14 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.00 ▲0.01 | 35.50 ▲0.59 | 34.15 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 17.46 ▼5.62 | 753.21 ▲85.77 | 51.15 ▼7.44 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.29 ▲0.06 | 97.67 ▼2.81 | 73.60 ▲28.17 |
Add New Recipe /wp-admin/post-new.php?post_type=nutritionwp-recipe | 3,121 | 9.37 | 214.17 | 114.93 |
Special Diets /wp-admin/edit-tags.php?taxonomy=nutritionwp-special-diet&post_type=nutritionwp-recipe | 1,287 | 2.16 | 29.04 | 29.68 |
Occasions /wp-admin/edit-tags.php?taxonomy=nutritionwp-occasion&post_type=nutritionwp-recipe | 1,287 | 2.16 | 26.48 | 31.31 |
Settings /wp-admin/edit.php?post_type=nutritionwp-recipe&page=nwp-settings | 928 | 2.08 | 23.47 | 24.49 |
Courses /wp-admin/edit-tags.php?taxonomy=nutritionwp-course&post_type=nutritionwp-recipe | 1,284 | 2.28 | 26.54 | 29.54 |
Recipes /wp-admin/edit.php?post_type=nutritionwp-recipe | 1,159 | 1.95 | 34.03 | 30.47 |
Cuisines /wp-admin/edit-tags.php?taxonomy=nutritionwp-cuisine&post_type=nutritionwp-recipe | 1,284 | 2.16 | 25.99 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/nutritionwp/admin/CMB2/includes/helper-functions.php+44
include_once(wp-content/plugins/nutritionwp/admin/CMB2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=nutritionwp-cuisine&post_type=nutritionwp-recipe
- > Warning in wp-content/plugins/nutritionwp/admin/CMB2/includes/helper-functions.php+44
include_once(wp-content/plugins/nutritionwp/admin/CMB2/includes/CMB2_Hookup.php): failed to open stream: No such file or directory
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=nutritionwp-cuisine&post_type=nutritionwp-recipe
- > Warning in wp-content/plugins/nutritionwp/admin/CMB2/includes/helper-functions.php+44
include_once(): Failed opening 'wp-content/plugins/nutritionwp/admin/CMB2/includes/CMB2_Hookup.php' for inclusion (include_path='.:/usr/share/php')
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=nutritionwp-cuisine&post_type=nutritionwp-recipe
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'CMB2_Hookup' not found
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=nutritionwp-recipe&page=nwp-settings
- > Notice in wp-content/plugins/nutritionwp/admin/partials/nutritionwp-admin-display.php+83
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nutritionwp/public/partials/nutritionwp-public-display.php
- 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/nutritionwp/admin/CMB2old/includes/CMB2_hookup.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
nutritionwp/nutritionwp.php Passed 13 tests
This is the main PHP file of "NutritionWP" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Super easy free recipe plugin with nutritional facts. Made by a foodie!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin29,301 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 4,298 | 12,010 | 13,936 |
CSS | 24 | 1,394 | 2,344 | 9,469 |
JavaScript | 12 | 618 | 866 | 2,413 |
Sass | 30 | 506 | 51 | 2,279 |
Markdown | 5 | 397 | 0 | 1,204 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 18 | 12.68% |
▷ Concrete classes | 124 | 87.32% |
▷ Final classes | 0 | 0.00% |
Methods | 1,096 | |
▷ Static methods | 172 | 15.69% |
▷ Public methods | 916 | 83.58% |
▷ Protected methods | 164 | 14.96% |
▷ Private methods | 16 | 1.46% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 6 | 33.33% |
▷ Class constants | 12 | 66.67% |
▷ Public constants | 12 | 100.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
29 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/CMB2old/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
admin/CMB2old/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/CMB2old/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
admin/CMB2old/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |