90% dadevarzan-wp-recipe

Code Review | Dadevarzan WordPress Recipe

WordPress plugin Dadevarzan WordPress Recipe scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-recipe
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2019
  • Latest release: Aug 1, 2022
  • Number of updates: 15
  • Update frequency: every 83.6 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.44ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Recipe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.72 ▲1.73
Dashboard /wp-admin3.42 ▲0.0745.50 ▼13.38
Posts /wp-admin/edit.php3.53 ▲0.1747.15 ▼2.46
Add New Post /wp-admin/post-new.php6.14 ▲0.2581.09 ▼16.42
Media Library /wp-admin/upload.php3.34 ▲0.1135.33 ▼1.51
Add Recipe /wp-admin/post-new.php?post_type=recipe6.1378.39
Recipe Tags /wp-admin/edit-tags.php?taxonomy=recipe_tag&post_type=recipe3.3333.82
All Recipes /wp-admin/edit.php?post_type=recipe3.3833.04
Recipe Categories /wp-admin/edit-tags.php?taxonomy=recipe_category&post_type=recipe3.3333.73

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Dadevarzan WordPress Recipe
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.52 ▼0.031.68 ▲0.0744.73 ▲4.90
Dashboard /wp-admin2,230 ▲535.60 ▲0.0281.36 ▼3.7535.60 ▼5.58
Posts /wp-admin/edit.php2,135 ▲351.97 ▲0.0340.29 ▲1.8434.89 ▼4.70
Add New Post /wp-admin/post-new.php1,564 ▲3623.41 ▲0.42668.52 ▼8.3858.20 ▲3.98
Media Library /wp-admin/upload.php1,435 ▲324.24 ▲0.0494.53 ▼14.6940.46 ▼5.69
Add Recipe /wp-admin/post-new.php?post_type=recipe6,28425.32871.5630.88
Recipe Tags /wp-admin/edit-tags.php?taxonomy=recipe_tag&post_type=recipe1,2782.1226.5131.94
All Recipes /wp-admin/edit.php?post_type=recipe1,1661.9630.7431.05
Recipe Categories /wp-admin/edit-tags.php?taxonomy=recipe_category&post_type=recipe1,3062.1225.0431.63

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: dadehvarzan, wordpress, recipe, wp, dadevarzan

dadevarzan-wp-recipe/dadevarzan-wp-recipe.php Passed 13 tests

The primary PHP file in "Dadevarzan WordPress Recipe" version 1.2.6 is used by WordPress to initiate all plugin functionality
30 characters long description:
recipe post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin367 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23919302
PO File1252765

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin