10% editable-recipe

Code Review | Editable Recipe

WordPress plugin Editable Recipe scored 10% from 54 tests.

About plugin

  • Plugin page: editable-recipe
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.0
  • WordPress version: 6.3.1
  • First release: Dec 19, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: reasonedpenguin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,069 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
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/editable-recipe/editableRecipe.php+39
    Methods with the same name as their class will not be constructors in a future version of PHP; EditableRecipe has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼56.10ms] Passed 4 tests

An overview of server-side resources used by Editable Recipe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.326.07 ▼36.43
Dashboard /wp-admin2.16 ▼1.145.62 ▼44.00
Posts /wp-admin/edit.php2.16 ▼1.195.85 ▼45.32
Add New Post /wp-admin/post-new.php2.16 ▼3.725.63 ▼98.64
Media Library /wp-admin/upload.php2.16 ▼1.065.34 ▼31.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editable Recipe
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.16 ▼1.481.92 ▲0.2944.61 ▼2.64
Dashboard /wp-admin2,203 ▲154.86 ▼1.03106.13 ▼0.9740.56 ▼0.30
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0334.98 ▼5.8734.10 ▼1.46
Add New Post /wp-admin/post-new.php6,858 ▲5,32223.74 ▲0.42963.26 ▲354.9890.17 ▲32.76
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.0698.97 ▲0.0540.81 ▼1.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/editable-recipe/editableRecipe.php+39
    Methods with the same name as their class will not be constructors in a future version of PHP; EditableRecipe has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editable-recipe/editableRecipe.php:367

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === editable-recipe === )
The official readme.txt is a good inspiration

editable-recipe/editableRecipe.php 85% from 13 tests

The principal PHP file in "Editable Recipe" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editable-recipe.php" instead of "editableRecipe.php")

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
No dangerous file extensions were detected423 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29556356
CSS213067

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity23.50
▷ Minimum class complexity15.00
▷ Maximum class complexity32.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.41MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png42.29KB15.70KB▼ 62.87%
assets/screenshot-2.png32.84KB11.27KB▼ 65.68%
assets/screenshot-1.png237.44KB78.50KB▼ 66.94%
images/recipegradient.png34.93KB22.89KB▼ 34.48%
images/print.png0.56KB0.48KB▼ 13.59%