94% furikake

Code Review | Furikake

WordPress plugin Furikake scored 94% from 54 tests.

About plugin

  • Plugin page: furikake
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.4.2
  • WordPress version: 5.8.1
  • First release: Sep 9, 2017
  • Latest release: Aug 7, 2020
  • Number of updates: 13
  • Update frequency: every 81.9 days
  • Top authors: jidaikobo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 756 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼134.52ms] Passed 4 tests

Analyzing server-side resources used by Furikake
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2136.93 ▲12.58
Dashboard /wp-admin3.16 ▲0.1054.97 ▲10.40
Posts /wp-admin/edit.php3.21 ▲0.10115.52 ▲71.57
Add New Post /wp-admin/post-new.php5.51 ▲0.0889.44 ▼564.02
Media Library /wp-admin/upload.php3.10 ▲0.1038.51 ▲2.98

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Furikake: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10415.81 ▼0.077.75 ▼1.2350.93 ▲2.25
Dashboard /wp-admin2,987 ▲565.93 ▼0.01156.56 ▲11.80115.99 ▼2.77
Posts /wp-admin/edit.php2,759 ▲202.70 ▲0.0178.97 ▲6.53115.94 ▲27.90
Add New Post /wp-admin/post-new.php1,696 ▲10515.89 ▼2.91363.26 ▼10.41112.26 ▲0.54
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.01179.31 ▲33.65153.25 ▲29.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: update_message in wp-content/plugins/furikake/templates/settings.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/furikake/furikake.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/furikake/templates/settings.php:20

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: yomigana, phonetic, furigana

furikake/furikake.php 92% from 13 tests

Analyzing the main PHP file in "Furikake" version 0.2.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected619 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4105181537
PO File139282

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity47.50
▷ Minimum class complexity14.00
▷ Maximum class complexity81.00
Average method complexity7.64
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods14100.00%
▷ Public methods642.86%
▷ Protected methods00.00%
▷ Private methods857.14%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin