Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼3.88ms] Passed 4 tests
This is a short check of server-side resources used by Recipes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 45.83 ▲1.51 |
Dashboard /wp-admin | 3.89 ▲0.59 | 51.42 ▼1.91 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 55.98 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.58 ▼15.76 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 41.69 ▲4.25 |
Recipe Tag /wp-admin/edit-tags.php?taxonomy=recipe-tag&post_type=recipe | 3.74 | 42.85 |
All Recipes /wp-admin/edit.php?post_type=recipe | 3.85 | 40.90 |
Add New /wp-admin/post-new.php?post_type=recipe | 3.98 | 57.28 |
Install Plugins /wp-admin/edit.php?post_type=recipe&page=tgmpa-install-plugins | 3.82 | 37.71 |
Recipe Category /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe | 3.74 | 38.56 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
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 Recipes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲165 | 13.53 ▼0.77 | 5.12 ▲3.34 | 41.03 ▲1.31 |
Dashboard /wp-admin | 2,287 ▲102 | 4.94 ▼0.91 | 122.80 ▲19.16 | 45.96 ▲2.07 |
Posts /wp-admin/edit.php | 2,181 ▲92 | 2.31 ▲0.25 | 50.27 ▲9.53 | 41.16 ▲11.07 |
Add New Post /wp-admin/post-new.php | 1,588 ▲55 | 17.81 ▼5.50 | 692.28 ▲28.04 | 56.34 ▲6.91 |
Media Library /wp-admin/upload.php | 1,477 ▲92 | 4.34 ▲0.10 | 100.86 ▲2.22 | 49.19 ▲1.02 |
Recipe Tag /wp-admin/edit-tags.php?taxonomy=recipe-tag&post_type=recipe | 1,330 | 2.09 | 35.13 | 36.62 |
All Recipes /wp-admin/edit.php?post_type=recipe | 1,205 | 2.27 | 33.08 | 43.13 |
Add New /wp-admin/post-new.php?post_type=recipe | 2,910 | 8.06 | 196.47 | 85.99 |
Install Plugins /wp-admin/edit.php?post_type=recipe&page=tgmpa-install-plugins | 1,016 | 1.86 | 25.98 | 31.15 |
Recipe Category /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe | 1,355 | 2.14 | 31.61 | 32.13 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe
- > Notice in wp-content/plugins/recipes/includes/class-recipes-metabox.php+100
Undefined index: data
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe
- > Notice in wp-content/plugins/recipes/includes/class-recipes-metabox.php+104
Undefined index: path
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe
- > Warning in wp-content/plugins/recipes/includes/class-recipes-metabox.php+104
include(): Filename cannot be empty
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=recipe-category&post_type=recipe
- > Warning in wp-content/plugins/recipes/includes/class-recipes-metabox.php+104
include(): Failed opening '' for inclusion (include_path='.:/usr/share/php')
SRP 0% 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 take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/recipes/includes/template-steps.php
- > /wp-content/plugins/recipes/includes/template-ingredients.php
- > /wp-content/plugins/recipes/includes/template-general-info.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Recipes_Metabox' not found in wp-content/plugins/recipes/includes/class-recipes-metabox-general-info.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/recipes/templates/content-single-recipe-execution.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/recipes/templates/content-single-recipe-general-info.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/recipes/templates/content-single-recipe-featured-image.php:12
- > PHP Fatal error
Uncaught Error: Class 'Recipes_Metabox' not found in wp-content/plugins/recipes/includes/class-recipes-metabox-ingredients.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/recipes/templates/content-single-recipe-title.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recipes/includes/post-type.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/recipes/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recipes/includes/taxonomies.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recipes/recipes.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: cooking, custom post type, recipes, chef, custom taxonomy
recipes/recipes.php Passed 13 tests
The main PHP script in "Recipes" version 1.2.1 is automatically included on every request by WordPress
39 characters long description:
Recipes plugin with simplicity in mind.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,366 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 698 | 2,051 | 2,567 |
Markdown | 1 | 121 | 0 | 553 |
Sass | 2 | 14 | 0 | 131 |
CSS | 2 | 2 | 0 | 99 |
JavaScript | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 29.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 5 | 3.82% |
▷ Public methods | 103 | 78.63% |
▷ Protected methods | 23 | 17.56% |
▷ Private methods | 5 | 3.82% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
PNG images were not found in this plugin