84% food-blog-categories

Code Review | Food Blog Categories

WordPress plugin Food Blog Categories scored84%from 54 tests.

About plugin

  • Plugin page: food-blog-categories
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.2
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: May 14, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: roadwarriorwp (75%)stevejonesdev (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /527 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.24ms] Passed 4 tests

Server-side resources used by Food Blog Categories
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.19 ▲4.75
Dashboard /wp-admin3.37 ▲0.0757.86 ▲7.14
Posts /wp-admin/edit.php3.43 ▲0.0756.29 ▲3.27
Add New Post /wp-admin/post-new.php6.12 ▲0.2492.55 ▼21.60
Media Library /wp-admin/upload.php3.29 ▲0.0738.10 ▲0.61
Meal Types /wp-admin/edit-tags.php?taxonomy=fbc_meal_type3.2939.37
Occasions /wp-admin/edit-tags.php?taxonomy=fbc_occasion3.2934.90
Diet & Cooking Styles /wp-admin/edit-tags.php?taxonomy=fbc_diet3.2936.15
Dish Types /wp-admin/edit-tags.php?taxonomy=fbc_dish_type3.2935.58
Seasons /wp-admin/edit-tags.php?taxonomy=fbc_season3.2936.63

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Food Blog Categories: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.27 ▼0.081.61 ▼0.0643.21 ▼0.01
Dashboard /wp-admin2,215 ▲415.52 ▼0.1697.10 ▲4.7242.03 ▼14.84
Posts /wp-admin/edit.php2,270 ▲1672.00 ▲0.0237.01 ▼2.7534.00 ▼2.50
Add New Post /wp-admin/post-new.php1,543 ▲1523.11 ▼0.00673.04 ▲54.7455.57 ▼4.70
Media Library /wp-admin/upload.php1,414 ▲174.18 ▼0.17101.47 ▼0.5244.44 ▼3.18
Meal Types /wp-admin/edit-tags.php?taxonomy=fbc_meal_type1,2912.1225.8529.81
Occasions /wp-admin/edit-tags.php?taxonomy=fbc_occasion1,2972.1227.4831.91
Diet & Cooking Styles /wp-admin/edit-tags.php?taxonomy=fbc_diet1,2942.1127.9828.74
Dish Types /wp-admin/edit-tags.php?taxonomy=fbc_dish_type1,2912.1225.4230.08
Seasons /wp-admin/edit-tags.php?taxonomy=fbc_season1,2972.1127.2429.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/food-blog-categories/food-blog-categories.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: categories, food, taxonomies, recipe categories, recipe...

food-blog-categories/food-blog-categories.php Passed 13 tests

The main file in "Food Blog Categories" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Easily Add recipe related taxonomies to your blog posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11215133

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin