10% seo-nutrition-and-print-for-recipes-by-edamam

Code Review | SEO, Nutrition and Print for Recipes by Edamam

WordPress plugin SEO, Nutrition and Print for Recipes by Edamam scored10%from 54 tests.

About plugin

  • Plugin page: seo-nutrition-and...
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2+
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Feb 9, 2017
  • Number of updates: 79
  • Update frequency: every 18.4 days
  • Top authors: Edamam (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /7,938 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/seo-nutrition-and-print-for-recipes-by-edamam/edamam.php+159
    Undefined variable: optional_headers

Server metrics [RAM: ▲0.21MB] [CPU: ▼10.07ms] Passed 4 tests

Analyzing server-side resources used by SEO, Nutrition and Print for Recipes by Edamam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1525.24 ▼14.48
Dashboard /wp-admin3.53 ▲0.2350.36 ▼0.82
Posts /wp-admin/edit.php3.65 ▲0.2949.55 ▼1.95
Add New Post /wp-admin/post-new.php6.11 ▲0.2387.74 ▼23.04
Media Library /wp-admin/upload.php3.47 ▲0.2440.67 ▲2.64

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 36 new options
New tables
wp_edamam_recipe_recipes
New WordPress options
recipe_image_hide_print
widget_theysaidso_widget
recipe_print_link_hide
can_compress_scripts
recipe_ingredient_label
edamam_recipe_version
recipe_instruction_label
recipe_instruction_label_hide
recipe_prep_time_label
recipe_serving_size_label_hide
...

Browser metrics Passed 4 tests

A check of browser resources used by SEO, Nutrition and Print for Recipes by Edamam
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.17 ▼1.131.73 ▼0.2043.88 ▲0.96
Dashboard /wp-admin2,230 ▲395.84 ▼0.04103.87 ▼2.8548.51 ▲2.63
Posts /wp-admin/edit.php2,117 ▲252.01 ▲0.0139.84 ▼1.7035.41 ▼1.13
Add New Post /wp-admin/post-new.php1,550 ▲1723.19 ▼0.01679.42 ▲70.1852.95 ▼0.88
Media Library /wp-admin/upload.php1,410 ▲284.19 ▲0.0195.51 ▼8.6841.86 ▼2.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_edamam_recipe_recipes
  • This plugin did not uninstall successfully, leaving 36 options in the database
    • recipe_ingredient_label
    • recipe_nutritional_info
    • recipe_ingredient_list_type
    • recipe_instruction_label_hide
    • recipe_rating_label
    • recipe_ingredient_label_hide
    • recipe_outer_border_style
    • recipe_instruction_list_type
    • edamam_recipe_db_version
    • recipe_serving_size_label_hide
    • ...

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/seo-nutrition-and-print-for-recipes-by-edamam/edamam.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

seo-nutrition-and-print-for-recipes-by-edamam/edamam.php 92% from 13 tests

The main PHP script in "SEO, Nutrition and Print for Recipes by Edamam" version 3.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("seo-nutrition-and-print-for-recipes-by-edamam.php" instead of "edamam.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,546 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1235911,260
CSS2510205
JavaScript2215281

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
edamam.png1.57KB0.67KB▼ 57.12%
screenshot-1.png86.49KB30.95KB▼ 64.22%
image.png18.24KB9.24KB▼ 49.36%
logo-plugin-big.png4.92KB2.16KB▼ 56.22%
edamam-logo-plugin.png2.29KB1.08KB▼ 52.98%