Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.86MB] [CPU: ▲40.41ms] 50% from 4 tests
An overview of server-side resources used by WP Recipe Maker
Please have a look at the following items
- RAM: Total memory usage must be kept under 10MB (currently 10.39MB on /wp-admin/admin.php?page=wprm_faq)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.86MB on /wp-admin/admin.php?page=wprm_find_ingredient_units)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.18 ▲4.72 | 71.31 ▲28.14 |
Dashboard /wp-admin | 9.54 ▲6.24 | 90.09 ▲42.70 |
Posts /wp-admin/edit.php | 9.60 ▲6.24 | 92.42 ▲40.38 |
Add New Post /wp-admin/post-new.php | 12.81 ▲6.92 | 150.03 ▲57.52 |
Media Library /wp-admin/upload.php | 9.47 ▲6.24 | 85.24 ▲50.40 |
Settings /wp-admin/admin.php?page=wprm_settings | 9.89 | 103.23 |
FAQ & Support /wp-admin/admin.php?page=wprm_faq | 10.39 | 94.38 |
Health Check /wp-admin/admin.php?page=wprm_health_check | 9.81 | 105.22 |
Import Recipes /wp-admin/admin.php?page=wprm_import | 9.81 | 85.06 |
Finding Parents /wp-admin/admin.php?page=wprm_finding_parents | 9.81 | 85.75 |
Importing Recipes /wp-admin/admin.php?page=wprm_importing | 9.81 | 83.90 |
Creating Lists /wp-admin/admin.php?page=wprm_create_lists | 9.81 | 88.36 |
Upgrade WPRM /wp-admin/admin.php?page=wprm_addons | 9.81 | 83.12 |
Anonymize Ratings /wp-admin/admin.php?page=wprm_anonymize_ratings | 9.81 | 93.40 |
Find Ingredient Units /wp-admin/admin.php?page=wprm_find_ingredient_units | 9.81 | 83.92 |
Server storage [IO: ▲13.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 959 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_wprm_ratings |
wp_wprm_analytics |
New WordPress options |
---|
wprm_analytics_db_version |
wprm_rating_db_version |
wprm_course_children |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wprm_migrated_to_version |
widget_theysaidso_widget |
wprm_cuisine_children |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Recipe Maker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲128 | 14.65 ▼0.13 | 16.62 ▲15.00 | 35.65 ▼11.95 |
Dashboard /wp-admin | 2,250 ▲72 | 5.57 ▼0.14 | 97.22 ▼10.64 | 43.45 ▲0.01 |
Posts /wp-admin/edit.php | 2,155 ▲52 | 1.97 ▼0.01 | 41.10 ▲0.42 | 36.58 ▼2.47 |
Add New Post /wp-admin/post-new.php | 6,679 ▲5,153 | 26.27 ▲3.05 | 958.90 ▲301.24 | 39.81 ▼14.69 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.24 ▲0.06 | 115.10 ▲18.95 | 49.26 ▲8.11 |
Settings /wp-admin/admin.php?page=wprm_settings | 5,143 | 13.68 | 385.55 | 140.42 |
FAQ & Support /wp-admin/admin.php?page=wprm_faq | 1,355 | 11.04 | 219.10 | 37.46 |
Health Check /wp-admin/admin.php?page=wprm_health_check | 1,587 | 8.77 | 170.77 | 30.39 |
Import Recipes /wp-admin/admin.php?page=wprm_import | 1,563 | 8.57 | 156.80 | 27.14 |
Finding Parents /wp-admin/admin.php?page=wprm_finding_parents | 1,584 | 8.86 | 174.27 | 29.46 |
Importing Recipes /wp-admin/admin.php?page=wprm_importing | 1,563 | 8.57 | 167.06 | 27.93 |
Creating Lists /wp-admin/admin.php?page=wprm_create_lists | 1,583 | 8.57 | 179.91 | 28.20 |
Upgrade WPRM /wp-admin/admin.php?page=wprm_addons | 1,731 | 9.36 | 169.15 | 34.93 |
Anonymize Ratings /wp-admin/admin.php?page=wprm_anonymize_ratings | 1,580 | 9.61 | 165.15 | 28.33 |
Find Ingredient Units /wp-admin/admin.php?page=wprm_find_ingredient_units | 1,586 | 8.70 | 175.34 | 30.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wprm_analytics
- wp_wprm_ratings
- Zombie WordPress options were found after uninstall: 11 options
- wprm_course_children
- can_compress_scripts
- wprm_rating_db_version
- db_upgraded
- wprm_migrated_to_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- wprm_cuisine_children
- wprm_analytics_db_version
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-recipe-maker/templates/admin/settings.php
- 279× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-recipe-maker/includes/public/class-wprm-analytics-database.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-recipe-maker/includes/public/api/class-wprm-api-manage-taxonomies.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wp-recipe-maker/includes/admin/migrations/wprm-1-7-1-ingredient-ids.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-recipe-maker/includes/public/class-wprm-metadata-rank-math.php:35
- > PHP Fatal error
Uncaught Error: Class 'WPRM_Template_Shortcode' not found in wp-content/plugins/wp-recipe-maker/includes/public/shortcodes/general/class-wprm-sc-link.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-recipe-maker/templates/settings/group-template-legacy.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPRM_Import' not found in wp-content/plugins/wp-recipe-maker/includes/admin/import/class-wprm-import-bigoven.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-recipe-maker/includes/admin/classic-editor/class-wprm-shortcode-preview.php:28
- > PHP Warning
opendir(WPRM_DIRincludes/public/shortcodes/recipe): failed to open dir: No such file or directory in wp-content/plugins/wp-recipe-maker/includes/public/class-wprm-template-shortcodes.php on line 163
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-recipe-maker/includes/public/class-wprm-recipe-revisions.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wprm_settings
- > Deprecation (warning) in unknown
/wp-content/plugins/wp-recipe-maker/dist/admin-settings.js?ver=9.0.1 17 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: recipes, food, cooking, ingredients, json-ld...
wp-recipe-maker/wp-recipe-maker.php Passed 13 tests
This is the main PHP file of "WP Recipe Maker" version 9.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
The easy and user-friendly recipe plugin for everyone. Automatic JSON-LD metadata for better SEO will get you more visitors!
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin84,717 lines of code in 911 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 297 | 7,113 | 14,129 | 37,217 |
JavaScript | 311 | 2,956 | 1,459 | 23,532 |
PO File | 9 | 6,572 | 8,032 | 16,226 |
Sass | 97 | 993 | 48 | 5,756 |
JSON | 3 | 0 | 0 | 696 |
CSS | 34 | 28 | 12 | 535 |
HTML | 17 | 0 | 0 | 320 |
SVG | 141 | 0 | 0 | 203 |
Markdown | 1 | 78 | 0 | 156 |
XML | 1 | 0 | 0 | 76 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 203 | |
▷ Abstract classes | 1 | 0.49% |
▷ Concrete classes | 202 | 99.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,382 | |
▷ Static methods | 824 | 59.62% |
▷ Public methods | 1,277 | 92.40% |
▷ Protected methods | 24 | 1.74% |
▷ Private methods | 81 | 5.86% |
Functions | 35 | |
▷ Named functions | 7 | 20.00% |
▷ Anonymous functions | 28 | 80.00% |
Constants | 44 | |
▷ Global constants | 29 | 65.91% |
▷ Class constants | 15 | 34.09% |
▷ Public constants | 15 | 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
15 PNG files occupy 2.47MB with 1.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/faq/creating/elementor-widget.png | 119.25KB | 35.11KB | ▼ 70.56% |
assets/images/faq/creating/wordpress-com-admin-link.png | 57.28KB | 13.95KB | ▼ 75.64% |
assets/images/faq/creating/manage-overview.png | 650.22KB | 189.53KB | ▼ 70.85% |
dist/assets/9db239b0b8817856fa53552be937ab40.png | 27.63KB | 11.83KB | ▼ 57.18% |
assets/images/faq/creating/classic-editor-buttons.png | 300.10KB | 88.33KB | ▼ 70.57% |