84% curatorcrowd-recipe-box

Code Review | CuratorCrowd Recipe Box

WordPress plugin CuratorCrowd Recipe Box scored84%from 54 tests.

About plugin

  • Plugin page: curatorcrowd-reci...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Sep 14, 2021
  • Number of updates: 19
  • Update frequency: every 48.8 days
  • Top authors: americanhometownmedia (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active /1,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by CuratorCrowd Recipe Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.32 ▼0.92
Dashboard /wp-admin3.35 ▲0.0546.08 ▼1.28
Posts /wp-admin/edit.php3.40 ▲0.0556.63 ▲7.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.89 ▼17.32
Media Library /wp-admin/upload.php3.28 ▲0.0540.61 ▲8.46
CuratorCrowd Recipe Box /wp-admin/options-general.php?page=curatorcrowd-recipe-box3.2533.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by CuratorCrowd Recipe Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲8313.84 ▼0.5410.83 ▲8.8152.61 ▲10.06
Dashboard /wp-admin2,213 ▲254.86 ▼0.98106.35 ▼9.2937.17 ▼3.61
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0140.22 ▲2.5535.81 ▲3.52
Add New Post /wp-admin/post-new.php1,536 ▲1623.22 ▼0.10674.75 ▼12.5459.20 ▲4.27
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.06112.03 ▲13.4845.20 ▲1.99
CuratorCrowd Recipe Box /wp-admin/options-general.php?page=curatorcrowd-recipe-box9442.0625.2536.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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 no errors were found, this is by no means 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 take a closer look at the following
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/_inc/no-tab.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/curatorcrowd-recipe-box.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/_inc/recipe-box-plugin.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/_inc/termsofuse.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/_inc/widget-placement.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/class-curatorcrowd-recipe-box.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/settings.php
    • > /wp-content/plugins/curatorcrowd-recipe-box/admin/_inc/site-verification.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: food blog, recipe box, recipes, cooking, kitchen...

curatorcrowd-recipe-box/curatorcrowd-recipe-box.php 92% from 13 tests

The primary PHP file in "CuratorCrowd Recipe Box" version 1.2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected485 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8102115401
CSS14081
JavaScript3003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods964.29%
▷ Protected methods00.00%
▷ Private methods535.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/curatorcrowd.png10.46KB4.67KB▼ 55.36%