78% ichigen-san

Code Review | Ichigen San

WordPress plugin Ichigen San scored 78% from 54 tests.

About plugin

  • Plugin page: ichigen-san
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.2
  • WordPress version: 5.8.1
  • First release: Sep 25, 2012
  • Latest release: Sep 4, 2014
  • Number of updates: 7
  • Update frequency: every 101.3 days
  • Top authors: Webnist (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 2,774 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 gracefully, with no errors

Server metrics [RAM: ▼0.87MB] [CPU: ▼176.51ms] Passed 4 tests

A check of server-side resources used by Ichigen San
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1538.23 ▲14.59
Dashboard /wp-admin2.78 ▼0.2827.17 ▼19.22
Posts /wp-admin/edit.php2.78 ▼0.3425.30 ▼28.34
Add New Post /wp-admin/post-new.php2.78 ▼2.6525.32 ▼647.38
Media Library /wp-admin/upload.php2.78 ▼0.2224.66 ▼11.11
Set Ichigen San /wp-admin/options-general.php?page=ichigen-san2.7827.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ichigen San
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲4815.91 ▲0.439.72 ▼1.1449.31 ▼2.32
Dashboard /wp-admin2,972 ▲415.89 ▼0.08146.29 ▼15.52121.60 ▼8.05
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0067.56 ▼2.2196.86 ▼4.21
Add New Post /wp-admin/post-new.php1,686 ▲8218.70 ▼0.12403.96 ▲3.08118.26 ▲0.90
Media Library /wp-admin/upload.php1,815 ▲55.05 ▲0.02155.37 ▼12.07128.26 ▼2.34
Set Ichigen San /wp-admin/options-general.php?page=ichigen-san1,0902.3361.9995.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ichigen-san
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=ichigen-san
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ichigen-san
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ichigen-san/ichigen-san.php:15

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

ichigen-san/ichigen-san.php 92% from 13 tests

"Ichigen San" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin256 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12414187
PO File1151750
JavaScript12019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
There were not PNG files found in your plugin