10% fukudonkenjin

Code Review | Fukudonkenjin

WordPress plugin Fukudonkenjin scored10%from 54 tests.

About plugin

  • Plugin page: fukudonkenjin
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Oct 4, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: tecking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /685 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/fukudonkenjin/fukudonkenjin.php+149
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼48.10ms] Passed 4 tests

A check of server-side resources used by Fukudonkenjin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.36 ▼34.75
Dashboard /wp-admin2.05 ▼1.267.08 ▼40.99
Posts /wp-admin/edit.php2.05 ▼1.316.84 ▼37.05
Add New Post /wp-admin/post-new.php2.05 ▼3.846.48 ▼79.59
Media Library /wp-admin/upload.php2.05 ▼1.186.27 ▼27.73
Fukudonkenjin /wp-admin/options-general.php?page=fukudonkenjin2.056.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Fukudonkenjin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.534.08 ▲2.4140.24 ▼4.88
Dashboard /wp-admin2,210 ▲225.84 ▲0.9795.83 ▼20.5836.68 ▼6.10
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0440.26 ▲5.7733.54 ▲1.74
Add New Post /wp-admin/post-new.php1,537 ▲423.19 ▲0.13673.43 ▼4.8265.66 ▲18.52
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.00105.51 ▲2.0646.13 ▲1.72
Fukudonkenjin /wp-admin/options-general.php?page=fukudonkenjin8802.0323.0124.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/fukudonkenjin/fukudonkenjin.php+149
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fukudonkenjin
    • > Notice in wp-content/plugins/fukudonkenjin/fukudonkenjin.php+78
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fukudonkenjin/fukudonkenjin.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (You can set any entries that you want to replace strings.)
The official readme.txt is a good inspiration

fukudonkenjin/fukudonkenjin.php Passed 13 tests

"Fukudonkenjin" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Let's join Fukudonkenjin! Fukudonkenjin is the name of donburi-mono lovers :)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin142 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2344290
PO File1171641
JavaScript1008
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png34.79KB8.33KB▼ 76.05%