84% kikushima-recipes

Code Review | Kikushima Recipes

WordPress plugin Kikushima Recipes scored84%from 54 tests.

About plugin

  • Plugin page: kikushima-recipes
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Jun 2, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: kikutou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 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
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.73ms] Passed 4 tests

An overview of server-side resources used by Kikushima Recipes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.96 ▲4.68
Dashboard /wp-admin3.41 ▲0.1050.48 ▼0.50
Posts /wp-admin/edit.php3.46 ▲0.1047.97 ▼9.68
Add New Post /wp-admin/post-new.php6.12 ▲0.23104.16 ▼1.41
Media Library /wp-admin/upload.php3.33 ▲0.1039.81 ▲4.71
recipes /wp-admin/edit.php?post_type=recipes3.3737.05
tag /wp-admin/edit-tags.php?taxonomy=recipes_tags&post_type=recipes3.3236.17
category /wp-admin/edit-tags.php?taxonomy=recipes_categories&post_type=recipes3.3235.39
new recipe /wp-admin/post-new.php?post_type=recipes6.1186.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Kikushima Recipes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17613.62 ▼1.1611.93 ▲10.2646.40 ▼0.04
Dashboard /wp-admin2,233 ▲565.65 ▼0.0186.99 ▼10.0841.21 ▲0.60
Posts /wp-admin/edit.php2,135 ▲322.01 ▲0.0334.17 ▼1.8436.11 ▲3.17
Add New Post /wp-admin/post-new.php1,555 ▲2723.47 ▲0.34672.27 ▼5.4058.14 ▼2.05
Media Library /wp-admin/upload.php1,438 ▲354.22 ▲0.0698.10 ▼0.5544.00 ▲0.57
recipes /wp-admin/edit.php?post_type=recipes1,1081.9629.8630.55
tag /wp-admin/edit-tags.php?taxonomy=recipes_tags&post_type=recipes1,2842.1227.8529.29
category /wp-admin/edit-tags.php?taxonomy=recipes_categories&post_type=recipes1,2782.2429.1630.19
new recipe /wp-admin/post-new.php?post_type=recipes6,26125.24894.8632.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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
Good news, no errors were detected

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kikushima-recipes/kikushima-recipes.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Add job information on the admin dashboard), #2 (Add shortcode to any page or post as you like), #3 (Recipes information will be displayed on the front page)
The official readme.txt is a good inspiration

kikushima-recipes/kikushima-recipes.php Passed 13 tests

The main PHP script in "Kikushima Recipes" version 1.0 is automatically included on every request by WordPress
52 characters long description:
Add recipes shortcode to display recipes on the page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin533 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP115338431
PO File1283567
CSS28634
JavaScript1061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
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
No PNG files were detected