Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.36MB] [CPU: ▼21.04ms] Passed 4 tests
Server-side resources used by Food To Prep
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 25.84 ▼9.65 |
Dashboard /wp-admin | 3.82 ▲0.52 | 42.35 ▼0.34 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 28.49 ▼18.14 |
Add New Post /wp-admin/post-new.php | 3.69 ▼2.20 | 40.31 ▼56.02 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 40.35 ▲5.74 |
All Meals /wp-admin/edit.php?post_type=meal | 3.67 | 34.54 |
Add New /wp-admin/post-new.php?post_type=meal | 3.68 | 37.83 |
Categories /wp-admin/edit-tags.php?taxonomy=meal-category&post_type=meal | 3.84 | 41.12 |
All Orders /wp-admin/edit.php?post_type=mp-order | 3.67 | 34.67 |
Payment Settings /wp-admin/edit.php?post_type=mp-order&page=ftp-settings | 3.82 | 36.17 |
Supports /wp-admin/edit.php?post_type=mp-order&page=ftp-supports | 3.82 | 34.05 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 286 new files
Database: no new tables, 8 new options
New WordPress options |
---|
meal_prep_paypal_express |
meal_prep_other |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Food To Prep
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲330 | 15.70 ▲1.13 | 7.11 ▲5.33 | 44.65 ▲5.31 |
Dashboard /wp-admin | 2,413 ▲232 | 6.36 ▲0.65 | 115.12 ▲13.27 | 41.11 ▲0.38 |
Posts /wp-admin/edit.php | 2,344 ▲244 | 3.53 ▲1.49 | 50.90 ▲16.35 | 30.83 ▼7.44 |
Add New Post /wp-admin/post-new.php | 1,591 ▲63 | 22.39 ▼0.68 | 658.46 ▲14.40 | 36.79 ▼13.88 |
Media Library /wp-admin/upload.php | 1,478 ▲75 | 4.33 ▲0.06 | 83.16 ▼23.59 | 43.77 ▼3.99 |
All Meals /wp-admin/edit.php?post_type=meal | 1,341 | 3.54 | 44.25 | 26.61 |
Add New /wp-admin/post-new.php?post_type=meal | 2,667 | 7.98 | 167.52 | 67.68 |
Categories /wp-admin/edit-tags.php?taxonomy=meal-category&post_type=meal | 1,518 | 3.37 | 40.05 | 30.66 |
All Orders /wp-admin/edit.php?post_type=mp-order | 1,323 | 3.60 | 48.58 | 26.76 |
Payment Settings /wp-admin/edit.php?post_type=mp-order&page=ftp-settings | 1,236 | 3.48 | 48.16 | 32.14 |
Supports /wp-admin/edit.php?post_type=mp-order&page=ftp-supports | 1,036 | 3.21 | 38.44 | 21.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- meal_prep_paypal_express
- can_compress_scripts
- db_upgraded
- meal_prep_other
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mp-order
- > User notice in wp-includes/functions.php+5905
Function is_main_query was called incorrectly. In pre_get_posts, use the WP_Query->is_main_query() method, not the is_main_query() function. See https://developer.wordpress.org/reference/functions/is_main_query/. Please see Debugging in WordPress for more information. (This message was added in version 3.7.0.)
- > GET request to /wp-admin/post-new.php?post_type=meal
- > Notice in wp-content/plugins/food-to-prep/post-types/CPT_MP_Meal.php+224
Undefined index: quantity
- > GET request to /wp-admin/post-new.php?post_type=meal
- > Notice in wp-content/plugins/food-to-prep/post-types/CPT_MP_Meal.php+225
Undefined index: unit
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/food-to-prep/templates/cart/mini-cart.php
- 159× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEvent.php:29
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php:20
- > PHP Fatal error
Uncaught Error: Interface 'PayPal\\Handler\\IPayPalHandler' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php:19
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php:16
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php:26
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php:34
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php:21
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/food-to-prep/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots need descriptions #10, #11, #8, #9 in food-to-prep/assets to your readme.txt
- Tags: There are too many tags (13 tag instead of maximum 10)
food-to-prep/food-to-prep.php Passed 13 tests
This is the main PHP file of "Food To Prep" version 0.1.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
Food To Prep by Tweak Digital.
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
Good job! No executable or dangerous file extensions detected18,049 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 222 | 3,565 | 15,730 | 16,326 |
Sass | 18 | 195 | 12 | 852 |
Markdown | 5 | 126 | 0 | 427 |
JSON | 5 | 0 | 0 | 200 |
JavaScript | 12 | 62 | 42 | 195 |
XML | 1 | 4 | 0 | 32 |
CSS | 6 | 2 | 7 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 193 | |
▷ Abstract classes | 6 | 3.11% |
▷ Concrete classes | 187 | 96.89% |
▷ Final classes | 0 | 0.00% |
Methods | 2,276 | |
▷ Static methods | 92 | 4.04% |
▷ Public methods | 2,228 | 97.89% |
▷ Protected methods | 8 | 0.35% |
▷ Private methods | 40 | 1.76% |
Functions | 25 | |
▷ Named functions | 18 | 72.00% |
▷ Anonymous functions | 7 | 28.00% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin