90% jp-for-twentytwentyone

Code Review | Japanized for Twenty Twenty-One

WordPress plugin Japanized for Twenty Twenty-One scored90%from 54 tests.

About plugin

  • Plugin page: jp-for-twentytwen...
  • Plugin version: 1.9.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Mar 16, 2023
  • Number of updates: 85
  • Update frequency: every 10.3 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.27ms] Passed 4 tests

Analyzing server-side resources used by Japanized for Twenty Twenty-One
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2539.84 ▼2.03
Dashboard /wp-admin3.52 ▲0.1846.45 ▼14.92
Posts /wp-admin/edit.php3.65 ▲0.2946.09 ▲2.53
Add New Post /wp-admin/post-new.php6.12 ▲0.2385.92 ▼14.67
Media Library /wp-admin/upload.php3.45 ▲0.2139.22 ▲4.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
jp_for_twentytwentyone_options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
jp_for_twentytwentyone_customize

Browser metrics Passed 4 tests

An overview of browser requirements for Japanized for Twenty Twenty-One
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.21 ▼1.532.79 ▲0.8933.98 ▼12.54
Dashboard /wp-admin2,206 ▲185.83 ▼0.05107.77 ▲3.0837.55 ▲1.47
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0441.25 ▼0.9137.43 ▲2.97
Add New Post /wp-admin/post-new.php1,527 ▼1523.06 ▲4.82647.19 ▲3.0972.24 ▲24.27
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0397.24 ▼4.0147.63 ▲3.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
7 plugin tags: twentytwentyone, japanese, toc, scroll top, twenty twenty one...

jp-for-twentytwentyone/jp-for-twentytwentyone.php 92% from 13 tests

This is the main PHP file of "Japanized for Twenty Twenty-One" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,985 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP72194841,591
CSS43030296
JavaScript69998

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.71
▷ Minimum class complexity6.00
▷ Maximum class complexity97.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods3982.98%
▷ Protected methods12.13%
▷ Private methods714.89%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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