Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲3.72MB] [CPU: ▲24.45ms] Passed 4 tests
A check of server-side resources used by RecipePress Reloaded
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.98 ▲3.52 | 63.02 ▲23.15 |
Dashboard /wp-admin | 7.12 ▲3.82 | 76.98 ▲26.09 |
Posts /wp-admin/edit.php | 7.17 ▲3.82 | 79.51 ▲31.99 |
Add New Post /wp-admin/post-new.php | 9.98 ▲4.09 | 112.75 ▲16.82 |
Media Library /wp-admin/upload.php | 6.97 ▲3.74 | 62.67 ▲31.72 |
Difficulties /wp-admin/edit-tags.php?taxonomy=rpr_difficulty&post_type=rpr_recipe | 6.97 | 60.39 |
Seasons /wp-admin/edit-tags.php?taxonomy=rpr_season&post_type=rpr_recipe | 6.97 | 58.15 |
Ingredients /wp-admin/edit-tags.php?taxonomy=rpr_ingredient&post_type=rpr_recipe | 7.06 | 63.52 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=rpr_recipe | 6.97 | 59.19 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=rpr_recipe | 7.00 | 63.61 |
New Recipe /wp-admin/post-new.php?post_type=rpr_recipe | 7.31 | 87.32 |
Welcome /wp-admin/index.php?page=rpr-welcome-screen | 6.94 | 62.75 |
All Recipes /wp-admin/edit.php?post_type=rpr_recipe | 7.16 | 67.70 |
Cuisines /wp-admin/edit-tags.php?taxonomy=rpr_cuisine&post_type=rpr_recipe | 6.98 | 68.69 |
Extensions /wp-admin/edit.php?post_type=rpr_recipe&page=rpr_extensions | 6.99 | 62.99 |
Server storage [IO: ▲4.71MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 421 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
widget_rpr-recipe-tag-cloud |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_rpr-recipe-calendar |
recipepress_settings |
widget_rpr-recent-recipes |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by RecipePress Reloaded
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲251 | 13.77 ▼0.52 | 8.21 ▲6.48 | 35.88 ▼7.41 |
Dashboard /wp-admin | 2,278 ▲101 | 5.54 ▼0.14 | 96.41 ▲0.93 | 44.41 ▲1.28 |
Posts /wp-admin/edit.php | 2,409 ▲309 | 2.13 ▲0.18 | 39.61 ▼0.36 | 31.93 ▼8.11 |
Add New Post /wp-admin/post-new.php | 1,821 ▲292 | 23.06 ▼0.24 | 687.04 ▲94.13 | 53.81 ▲0.81 |
Media Library /wp-admin/upload.php | 1,569 ▲166 | 4.19 ▼0.06 | 95.00 ▼6.63 | 42.65 ▼2.12 |
Difficulties /wp-admin/edit-tags.php?taxonomy=rpr_difficulty&post_type=rpr_recipe | 1,558 | 1.83 | 35.73 | 32.21 |
Seasons /wp-admin/edit-tags.php?taxonomy=rpr_season&post_type=rpr_recipe | 1,558 | 1.83 | 34.35 | 31.03 |
Ingredients /wp-admin/edit-tags.php?taxonomy=rpr_ingredient&post_type=rpr_recipe | 1,791 | 3.47 | 71.48 | 33.03 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=rpr_recipe | 1,628 | 1.87 | 33.97 | 30.32 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=rpr_recipe | 1,764 | 1.83 | 32.97 | 33.59 |
New Recipe /wp-admin/post-new.php?post_type=rpr_recipe | 4,609 | 10.64 | 269.11 | 106.70 |
Welcome /wp-admin/index.php?page=rpr-welcome-screen | 875 | 1.96 | 28.38 | 29.64 |
All Recipes /wp-admin/edit.php?post_type=rpr_recipe | 1,533 | 3.90 | 60.76 | 30.00 |
Cuisines /wp-admin/edit-tags.php?taxonomy=rpr_cuisine&post_type=rpr_recipe | 1,558 | 1.85 | 33.46 | 30.13 |
Extensions /wp-admin/edit.php?post_type=rpr_recipe&page=rpr_extensions | 1,220 | 5.55 | 96.50 | 65.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 12 options
- can_compress_scripts
- widget_rpr-recipe-taxonomy-list
- widget_rpr-recipe-tag-cloud
- widget_rpr-recipe-calendar
- widget_theysaidso_widget
- recipepress_settings
- widget_recent-posts
- theysaidso_admin_options
- category_children
- widget_rpr-recent-recipes
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/recipepress-reloaded/inc/extensions/rpr-recipe-carousel/includes/recipe-carousel.php
- > /wp-content/plugins/recipepress-reloaded/inc/admin/views/html-recipepress-admin-display.php
- > /wp-content/plugins/recipepress-reloaded/inc/frontend/views/html-recipepress-public-display.php
- > /wp-content/plugins/recipepress-reloaded/inc/admin/views/rpr-welcome-screen.php
- > /wp-content/plugins/recipepress-reloaded/inc/extensions/rpr-favorites/includes/favorites-button.php
- > /wp-content/plugins/recipepress-reloaded/inc/extensions/rpr-favorites/includes/favorites-list.php
- 93× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recipepress-reloaded/inc/frontend/widgets/class-recipe-nutritional-facts.php:25
- > PHP Fatal error
Uncaught Error: Class 'Recipepress\\Inc\\Common\\Abstracts\\Taxonomy' not found in wp-content/plugins/recipepress-reloaded/inc/admin/taxonomies/class-ingredient.php:17
- > PHP Fatal error
Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/recipepress-reloaded/inc/extensions/rpr-social-media-sharing/includes/all-buttons.php:8
- > PHP Fatal error
Uncaught Error: Class 'Recipepress\\Inc\\Common\\Utilities\\Icons' not found in wp-content/plugins/recipepress-reloaded/inc/admin/settings/views/admin-display.php:27
- > PHP Notice
Undefined variable: recipe in wp-content/plugins/recipepress-reloaded/inc/frontend/templates/rpr_2column/recipe.php on line 21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/recipepress-reloaded/inc/admin/metaboxes/views/rpr-nutrition-metabox.php:16
- > PHP Fatal error
Uncaught Error: Class 'Recipepress\\Inc\\Common\\Abstracts\\Taxonomy' not found in wp-content/plugins/recipepress-reloaded/inc/admin/taxonomies/class-custom-taxonomies.php:16
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/recipepress-reloaded/inc/frontend/templates/rpr_default/recipe.php on line 20
- > PHP Fatal error
Trait 'Recipepress\\Inc\\Common\\Traits\\Utilities' not found in wp-content/plugins/recipepress-reloaded/inc/admin/class-admin.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'Recipepress\\Inc\\Common\\Abstracts\\Metadata' not found in wp-content/plugins/recipepress-reloaded/inc/admin/metaboxes/class-source.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: cooking, baking, food blog, recipe, recipes...
recipepress-reloaded/recipe-press-reloaded.php 77% from 13 tests
"RecipePress Reloaded" version 2.12.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("recipepress-reloaded.php" instead of "recipe-press-reloaded.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "6.0.0")
Code Analysis 97% from 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
No dangerous file extensions were detected33,065 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 4,386 | 10,692 | 17,668 |
PO File | 4 | 2,087 | 3,025 | 5,195 |
CSS | 38 | 864 | 162 | 4,814 |
JavaScript | 36 | 543 | 422 | 2,880 |
SVG | 152 | 258 | 131 | 1,149 |
JSON | 1 | 0 | 0 | 838 |
HTML | 1 | 11 | 0 | 494 |
Markdown | 1 | 2 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 289.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 87 | |
▷ Abstract classes | 9 | 10.34% |
▷ Concrete classes | 78 | 89.66% |
▷ Final classes | 0 | 0.00% |
Methods | 773 | |
▷ Static methods | 29 | 3.75% |
▷ Public methods | 656 | 84.86% |
▷ Protected methods | 52 | 6.73% |
▷ Private methods | 65 | 8.41% |
Functions | 47 | |
▷ Named functions | 26 | 55.32% |
▷ Anonymous functions | 21 | 44.68% |
Constants | 34 | |
▷ Global constants | 23 | 67.65% |
▷ Class constants | 11 | 32.35% |
▷ Public constants | 11 | 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
15 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/extensions/rpr-author-box/assets/images/icon.png | 0.37KB | 0.12KB | ▼ 67.02% |
inc/frontend/assets/images/close.png | 0.27KB | 0.29KB | 0.00% |
inc/frontend/assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
inc/extensions/rpr-favorites/assets/images/icon.png | 0.37KB | 0.12KB | ▼ 67.02% |
inc/admin/assets/images/minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |