Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲5.72ms] Passed 4 tests
An overview of server-side resources used by Recipe Maker For Your Food Blog from Zip Recipes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.27 | 48.69 ▲11.48 |
Dashboard /wp-admin | 4.89 ▲1.54 | 62.04 ▲0.53 |
Posts /wp-admin/edit.php | 5.11 ▲1.75 | 83.17 ▲36.32 |
Add New Post /wp-admin/post-new.php | 7.50 ▲1.61 | 94.01 ▼2.01 |
Media Library /wp-admin/upload.php | 4.81 ▲1.58 | 46.44 ▲12.88 |
Template /wp-admin/admin.php?page=zrdn-template | 5.39 | 105.14 |
Recipes /wp-admin/admin.php?page=zrdn-recipes | 5.03 | 92.83 |
Settings /wp-admin/admin.php?page=zrdn-settings | 5.02 | 70.13 |
Server storage [IO: ▲8.52MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 324 new files
Database: 1 new table, 35 new options
New tables |
---|
wp_amd_zlrecipe_recipes |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
zrdn_activated_once |
zrdn_settings_nutrition |
zrdn_settings_print |
zrdn_settings_nutrition_label |
widget_recent-posts |
widget_zrdn_nutrition_widget |
zrdn_settings_actions |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recipe Maker For Your Food Blog from Zip Recipes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲158 | 13.34 ▼0.96 | 7.94 ▲6.21 | 41.42 ▼2.05 |
Dashboard /wp-admin | 2,247 ▲70 | 5.57 ▼0.10 | 95.38 ▲9.05 | 74.97 ▲36.35 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.03 ▲0.01 | 33.83 ▼5.29 | 33.44 ▼2.83 |
Add New Post /wp-admin/post-new.php | 6,223 ▲4,697 | 19.87 ▼3.69 | 1,025.80 ▲363.33 | 39.94 ▼28.69 |
Media Library /wp-admin/upload.php | 1,486 ▲83 | 4.20 ▲0.02 | 101.14 ▼4.44 | 74.59 ▲31.29 |
Template /wp-admin/admin.php?page=zrdn-template | 4,573 | 11.54 | 408.56 | 118.70 |
Recipes /wp-admin/admin.php?page=zrdn-recipes | 1,342 | 2.23 | 66.66 | 45.09 |
Settings /wp-admin/admin.php?page=zrdn-settings | 1,899 | 4.61 | 84.37 | 74.99 |
Uninstaller [IO: ▲0.84MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_amd_zlrecipe_recipes
- This plugin did not uninstall successfully, leaving 35 options in the database
- zrdn_activated_once
- zrdn_settings_advanced
- zrdn_settings_authors
- zrdn_settings_image
- zrdn-current-version
- wp_calendar_block_has_published_posts
- zrdn_default_addons_enabled
- zrdn_recipe_blocks_layout
- zrdn_settings_labels
- zrdn_settings_nutrition
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 24× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/zip-recipes/NutritionLabel/NutritionLabel.php
- > /wp-content/plugins/zip-recipes/views/recipe_title.php
- > /wp-content/plugins/zip-recipes/grid/grid-enqueue.php
- > /wp-content/plugins/zip-recipes/views/extension-grid.php
- > /wp-content/plugins/zip-recipes/views/block_wrap.php
- > /wp-content/plugins/zip-recipes/views/jsonld.php
- > /wp-content/plugins/zip-recipes/grid/templates/recipe-block-element.php
- > /wp-content/plugins/zip-recipes/views/nutrition-label.php
- > /wp-content/plugins/zip-recipes/NutritionLabel/class-shortcode.php
- > /wp-content/plugins/zip-recipes/sharing/class-recipe-sharing-admin.php
- 71× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: recipe in wp-content/plugins/zip-recipes/views/recipe_image.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function ZRDN\\add_filter() in wp-content/plugins/zip-recipes/plugins/base.php:19
- > PHP Notice
Trying to get property 'is_featured_post_image' of non-object in wp-content/plugins/zip-recipes/views/recipe_image.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ZRDN\\ZipRecipes' not found in wp-content/plugins/zip-recipes/views/template_settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zip-recipes/views/about_extensions.php:3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/zip-recipes/views/permalink.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/zip-recipes/plugins/RecipeGrid2/api.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/zip-recipes/views/category.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zip-recipes/views/recipe.php on line 66
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zip-recipes/NutritionLabel/widget.php:7
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: recipes, cooking, blog, seo, recipe...
zip-recipes/zip-recipes.php Passed 13 tests
Analyzing the main PHP file in "Recipe Maker For Your Food Blog from Zip Recipes" version 8.1.1
110 characters long description:
A plugin that adds all the necessary microdata to your recipes, so they will show up in Google's Recipe Search
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
Success! There were no dangerous files found in this plugin36,050 lines of code in 268 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 122 | 3,767 | 4,116 | 15,987 |
PHP | 70 | 1,880 | 2,066 | 9,634 |
CSS | 34 | 631 | 260 | 6,543 |
LESS | 11 | 519 | 171 | 2,995 |
Markdown | 2 | 234 | 0 | 480 |
JSON | 1 | 0 | 0 | 192 |
SVG | 24 | 2 | 0 | 177 |
Sass | 4 | 12 | 0 | 42 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 65.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 108 | 39.71% |
▷ Public methods | 259 | 95.22% |
▷ Protected methods | 1 | 0.37% |
▷ Private methods | 12 | 4.41% |
Functions | 53 | |
▷ Named functions | 47 | 88.68% |
▷ Anonymous functions | 6 | 11.32% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 2.14MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/recipe-preview.png | 138.67KB | 51.55KB | ▼ 62.83% |
images/zip-recipes-icon-16.png | 0.99KB | 0.92KB | ▼ 7.30% |
images/logo.png | 2.63KB | 2.63KB | 0.19% |
images/zip-recipes-placeholder.png | 15.34KB | 7.62KB | ▼ 50.32% |
images/really-simple-pluginsx.png | 2.17KB | 2.16KB | 0.23% |