73% recipe-rating

Code Review | Recipe Rating

WordPress plugin Recipe Rating scored73%from 54 tests.

About plugin

  • Plugin page: recipe-rating
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: May 7, 2020
  • Latest release: May 7, 2020
  • Number of updates: 7
  • Update frequency: every 2.7 days
  • Top authors: riteshghimire9090 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /356 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.06ms] Passed 4 tests

An overview of server-side resources used by Recipe Rating
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.91 ▲7.77
Dashboard /wp-admin3.37 ▲0.0243.76 ▼12.61
Posts /wp-admin/edit.php3.42 ▲0.0648.24 ▲2.06
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.79 ▼2.53
Media Library /wp-admin/upload.php3.29 ▲0.0635.57 ▲0.86
All Recipes /wp-admin/edit.php?post_type=recipe3.3536.37
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=recipe3.2932.91
Add New Recipe /wp-admin/post-new.php?post_type=recipe6.0378.91
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=recipe3.2935.75

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_recipe_ratings
New WordPress options
db_upgraded
widget_theysaidso_widget
category_children
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Recipe Rating
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲20213.62 ▼0.7413.91 ▲12.3438.12 ▼1.11
Dashboard /wp-admin2,230 ▲505.58 ▲0.0590.49 ▼0.1440.41 ▲1.76
Posts /wp-admin/edit.php2,135 ▲382.10 ▲0.1239.04 ▲2.3836.40 ▼0.62
Add New Post /wp-admin/post-new.php1,558 ▲2723.27 ▲0.21633.95 ▼17.9155.26 ▼0.03
Media Library /wp-admin/upload.php1,435 ▲354.21 ▲0.0599.60 ▲2.5042.95 ▼3.68
All Recipes /wp-admin/edit.php?post_type=recipe1,1671.9430.3028.57
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=recipe1,3572.1325.3229.95
Add New Recipe /wp-admin/post-new.php?post_type=recipe6,24423.19881.3332.43
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=recipe1,4902.1327.0034.91

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
  • Zombie tables detected upon uninstall: 1 table
    • wp_recipe_ratings
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • category_children
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/recipe-rating/recipe-template.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (29 tag instead of maximum 10)
You can take inspiration from this readme.txt

recipe-rating/index.php 77% from 13 tests

The primary PHP file in "Recipe Rating" version 1.5.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("recipe-rating.php" instead of "index.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.4")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected4,710 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON3003,919
JavaScript37654310
PHP25323204
CSS1242119
Markdown334085
XML117073

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 code0.15
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin