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: ▲1.50MB] [CPU: ▲6.55ms] Passed 4 tests
Server-side resources used by Simple Recipe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 46.85 ▲5.16 |
Dashboard /wp-admin | 4.81 ▲1.51 | 63.45 ▲8.00 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 60.37 ▲14.96 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.51 | 101.07 ▲3.33 |
Media Library /wp-admin/upload.php | 4.72 ▲1.50 | 46.04 ▲9.70 |
Ingredients /wp-admin/edit-tags.php?taxonomy=smrc_ingredients&post_type=simple-recipe | 4.75 | 45.85 |
Recipes Categories /wp-admin/edit-tags.php?taxonomy=smrc_recipe_category&post_type=simple-recipe | 4.75 | 46.29 |
Add New /wp-admin/post-new.php?post_type=simple-recipe | 4.94 | 61.92 |
Recipes /wp-admin/edit.php?post_type=simple-recipe | 4.79 | 51.98 |
Server storage [IO: ▲13.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 314 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_smrc_filter |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Recipe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,207 ▲421 | 16.54 ▲2.19 | 6.21 ▲4.25 | 37.91 ▼6.73 |
Dashboard /wp-admin | 2,465 ▲285 | 7.69 ▲2.07 | 141.17 ▲42.54 | 109.82 ▲63.96 |
Posts /wp-admin/edit.php | 2,417 ▲335 | 4.56 ▲2.55 | 75.84 ▲40.17 | 80.89 ▲48.59 |
Add New Post /wp-admin/post-new.php | 1,682 ▲156 | 19.63 ▼3.24 | 674.36 ▼12.66 | 35.91 ▼20.05 |
Media Library /wp-admin/upload.php | 1,607 ▲210 | 5.75 ▲1.32 | 114.65 ▲14.45 | 112.76 ▲69.28 |
Ingredients /wp-admin/edit-tags.php?taxonomy=smrc_ingredients&post_type=simple-recipe | 1,560 | 4.42 | 67.07 | 84.20 |
Recipes Categories /wp-admin/edit-tags.php?taxonomy=smrc_recipe_category&post_type=simple-recipe | 1,563 | 4.25 | 64.75 | 62.35 |
Add New /wp-admin/post-new.php?post_type=simple-recipe | 3,106 | 9.70 | 210.24 | 221.66 |
Recipes /wp-admin/edit.php?post_type=simple-recipe | 1,420 | 4.44 | 75.97 | 87.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_smrc_filter
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/components/drip_content.php
- > /wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/components/payments.php
- > /wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/order.php
- > /wp-content/plugins/simple-recipe/smrc_templates/add_recipe/parts/image.php
- > /wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/not_exist.php
- > /wp-content/plugins/simple-recipe/smrc_templates/add_recipe/parts/title.php
- > /wp-content/plugins/simple-recipe/smrc_templates/add_recipe/parts/level.php
- > /wp-content/plugins/simple-recipe/smrc_templates/archive/grid/image.php
- > /wp-content/plugins/simple-recipe/smrc_templates/add_recipe/parts/ingredients.php
- > /wp-content/plugins/simple-recipe/smrc_templates/add_recipe/parts/data.php
- 212× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant STM_WPCFTO_PATH - assumed 'STM_WPCFTO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/drip_content.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'SMRC_Enqueue' not found in wp-content/plugins/simple-recipe/smrc_templates/single/related.php:2
- > PHP Fatal error
require_once(): Failed opening required 'STM_WPCFTO_PATH/helpers/icons.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/taxonomy_meta/fields/icon.php on line 3
- > PHP Notice
Undefined variable: section_name in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/addons.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/components_js/payments.php:15
- > PHP Notice
Undefined variable: section_name in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/checkbox.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-recipe/smrc_templates/archive/main.php:7
- > PHP Warning
include(): Failed opening 'STM_WPCFTO_PATH/metaboxes/components_js/curriculum.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/post_type_repeat.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/components/questions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/fields/udemy/search.php:15
- > PHP Warning
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/edit-tags.php?taxonomy=smrc_ingredients&post_type=simple-recipe
- > Network (severe)
wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/assets/js/sortable.min.js?ver=1697866942 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit-tags.php?taxonomy=smrc_recipe_category&post_type=simple-recipe
- > Network (severe)
wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/assets/js/sortable.min.js?ver=1697866944 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=simple-recipe
- > Network (severe)
wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/assets/js/sortable.min.js?ver=1697866946 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=simple-recipe
- > Network (severe)
wp-content/plugins/simple-recipe/wp-custom-fields-theme-options/metaboxes/assets/js/sortable.min.js?ver=1697866948 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: recipe plugin, cooking, recipes, food blog
simple-recipe/simple_recipe.php 77% from 13 tests
The main PHP script in "Simple Recipe" version 1... is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-recipe.php" instead of "simple_recipe.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")
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
Everything looks great! No dangerous files found in this plugin89,678 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 53,213 |
CSS | 19 | 1,494 | 31 | 12,474 |
SVG | 11 | 0 | 16 | 10,908 |
PHP | 149 | 1,501 | 1,126 | 7,631 |
Sass | 38 | 262 | 10 | 3,324 |
JavaScript | 43 | 264 | 77 | 2,012 |
Markdown | 2 | 33 | 0 | 116 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 28.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 60 | 28.44% |
▷ Public methods | 156 | 73.93% |
▷ Protected methods | 53 | 25.12% |
▷ Private methods | 2 | 0.95% |
Functions | 38 | |
▷ Named functions | 29 | 76.32% |
▷ Anonymous functions | 9 | 23.68% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected