68% awesome-recipe

Code Review | Awesome Recipe

WordPress plugin Awesome Recipe scored 68% from 54 tests.

About plugin

  • Plugin page: awesome-recipe
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Feb 9, 2018
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: reasadazim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,099 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.24MB] [CPU: ▲4.31ms] Passed 4 tests

An overview of server-side resources used by Awesome Recipe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2547.76 ▲2.10
Dashboard /wp-admin3.54 ▲0.2456.07 ▼0.42
Posts /wp-admin/edit.php3.63 ▲0.2860.46 ▲13.24
Add New Post /wp-admin/post-new.php6.12 ▲0.2495.23 ▲2.75
Media Library /wp-admin/upload.php3.46 ▲0.2345.97 ▲12.80
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=arpcpt_recipe3.4641.44
Recipe Settings /wp-admin/edit.php?post_type=arpcpt_recipe&page=arpcpt_recipe_settings3.4438.36
Add New /wp-admin/post-new.php?post_type=arpcpt_recipe3.6262.61
All Recipes /wp-admin/edit.php?post_type=arpcpt_recipe3.6354.20
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=arpcpt_recipe3.4647.48

Server storage [IO: ▲0.38MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: 2 new tables, 7 new options
New tables
wp_arpcpt_awesome_recipe_ratings
wp_arpcpt_awesome_recipe_styles
New WordPress options
category_children
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Recipe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲24613.70 ▼1.096.49 ▲4.3843.66 ▼5.35
Dashboard /wp-admin2,269 ▲815.05 ▼0.96114.38 ▼2.7038.36 ▼5.84
Posts /wp-admin/edit.php2,157 ▲682.30 ▲0.2542.14 ▲4.0736.15 ▲2.37
Add New Post /wp-admin/post-new.php1,569 ▲4123.31 ▼0.04664.81 ▼11.2335.42 ▼35.80
Media Library /wp-admin/upload.php1,454 ▲664.41 ▲0.2298.79 ▼3.9246.05 ▲1.91
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=arpcpt_recipe1,3752.0331.3231.44
Recipe Settings /wp-admin/edit.php?post_type=arpcpt_recipe&page=arpcpt_recipe_settings2,0822.9092.9435.08
Add New /wp-admin/post-new.php?post_type=arpcpt_recipe2,8367.43159.1785.47
All Recipes /wp-admin/edit.php?post_type=arpcpt_recipe1,9362.3441.9140.07
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=arpcpt_recipe1,5142.0634.0233.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_arpcpt_awesome_recipe_ratings
    • wp_arpcpt_awesome_recipe_styles
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • category_children

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/awesome-recipe/awesome-recipe.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/awesome-recipe/process/save-post.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-recipe/admin/enqueue.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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: The official readme.txt might help

awesome-recipe/awesome-recipe.php 85% from 13 tests

The entry point to "Awesome Recipe" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,271 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS7801019,462
PHP147471831,105
SVG1617391
JavaScript48859313

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions25
▷ Named functions25100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/picture.png42.03KB19.37KB▼ 53.92%