Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼19.50ms] Passed 4 tests
An overview of server-side resources used by Yummly Rich Recipes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 44.25 ▲2.62 |
Dashboard /wp-admin | 3.38 ▲0.04 | 33.05 ▼32.17 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 52.43 ▲1.40 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.45 ▼38.37 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 31.79 ▼8.87 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 45 new options
New tables |
---|
wp_amd_yrecipe_recipes |
New WordPress options |
---|
yrecipe_notes_label_hide |
yrecipe_rating_label |
yrecipe_print_link_hide |
yrecipe_ingredient_list_type |
yrecipe_prep_time_label |
yrecipe_calories_label |
widget_recent-comments |
yrecipe_image_width |
theysaidso_admin_options |
yummly_recipe_button_hide |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Yummly Rich Recipes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.35 ▼0.27 | 1.92 ▲0.24 | 42.35 ▼3.98 |
Dashboard /wp-admin | 2,222 ▲45 | 5.64 ▼0.06 | 85.98 ▼14.10 | 40.61 ▼3.64 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.95 ▼0.07 | 35.34 ▼2.93 | 32.76 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.17 ▼0.43 | 675.00 ▲9.47 | 55.64 ▼9.96 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.28 ▲0.08 | 99.90 ▼1.75 | 42.04 ▼5.10 |
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
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_amd_yrecipe_recipes
- Zombie WordPress options were found after uninstall: 45 options
- yrecipe_printed_permalink_hide
- db_upgraded
- yrecipe_fat_label
- yrecipe_ingredient_label_hide
- yrecipe_print_link_hide
- theysaidso_admin_options
- yrecipe_notes_label
- yrecipe_rating_label_hide
- yrecipe_prep_time_label
- yrecipe_prep_time_label_hide
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yummly-rich-recipes/yrecipe.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/yummly-rich-recipes/includes/style.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The Yummly Rich Recipes plugin icon appears as a Yum Button on the visual editor tool.), #2 (The Yummly Rich Recipes plugin makes it easy to enter the basic information for recipes: the title, the ingredients and the preparation instructions.), #3 (Easily update your recipes by clicking on the Yum Button in your editor again.), #4 (If you you would like to add even more information about your recipe, such as the serving size or your rating of the recipe, simply click the "More Options" link!), #5 (Once you click the "Add Recipe" button, a placeholder image will be inserted into your post where your recipe will go. If you need to edit your recipe, simply click on the Yum icon in the visual editor toolbar (you do not need to click on the recipe placeholder as you did in previous releases of the plugin).), #6 (As soon as you publish or preview your post, your recipe will be available with all your microformats... without any additional work from you!)
- Tags: There are too many tags (17 tag instead of maximum 10)
yummly-rich-recipes/yrecipe.php 92% from 13 tests
"Yummly Rich Recipes" version 4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yummly-rich-recipes.php" instead of "yrecipe.php")
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 plugin1,575 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 144 | 90 | 1,208 |
CSS | 4 | 58 | 47 | 282 |
JavaScript | 2 | 30 | 66 | 85 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.40MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.17KB | 9.92KB | ▼ 63.47% |
screenshot-2.png | 96.93KB | 31.51KB | ▼ 67.49% |
images/yum_button_round.png | 6.38KB | 3.11KB | ▼ 51.24% |
screenshot-3.png | 23.82KB | 8.81KB | ▼ 63.03% |
screenshot-6.png | 82.97KB | 25.32KB | ▼ 69.49% |