84% yarakuzen

Code Review | YarakuZen

WordPress plugin YarakuZen scored 84% from 54 tests.

About plugin

  • Plugin page: yarakuzen
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2015
  • Latest release: Feb 5, 2018
  • Number of updates: 80
  • Update frequency: every 10.5 days
  • Top authors: takayukister (96.25%)yaraku (5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,893 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.60MB] [CPU: ▼14.44ms] Passed 4 tests

This is a short check of server-side resources used by YarakuZen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.65 ▼2.47
Dashboard /wp-admin3.39 ▲0.0945.25 ▼4.32
Posts /wp-admin/edit.php3.50 ▲0.1547.71 ▲5.21
Add New Post /wp-admin/post-new.php3.27 ▼2.6238.00 ▼56.17
Media Library /wp-admin/upload.php3.31 ▲0.0940.52 ▲7.81
YarakuZen /wp-admin/options-general.php?page=yarakuzen3.2831.65

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for YarakuZen
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.85 ▲0.241.73 ▼0.0239.26 ▼2.66
Dashboard /wp-admin2,214 ▲235.84 ▲0.94109.13 ▲1.9136.86 ▼1.40
Posts /wp-admin/edit.php2,100 ▲112.02 ▼0.0036.26 ▼0.8732.19 ▼0.72
Add New Post /wp-admin/post-new.php6,550 ▲5,02420.46 ▼2.76988.58 ▲236.8263.65 ▲3.11
Media Library /wp-admin/upload.php1,393 ▲24.28 ▲0.1298.46 ▼2.5343.10 ▼3.54
YarakuZen /wp-admin/options-general.php?page=yarakuzen8312.0724.7428.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/yarakuzen/yarakuzen.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yarakuzen/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yarakuzen/includes/rest-api.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: multilingual, localization, language, translation

yarakuzen/yarakuzen.php Passed 13 tests

The primary PHP file in "YarakuZen" version 1.2 is used by WordPress to initiate all plugin functionality
118 characters long description:
The YarakuZen plugin helps you to translate your site using both machine translation and translation by professionals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin655 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5180167622
JavaScript18023
CSS12010

PHP code Passed 2 tests

This is a very shot 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.25
Average class complexity2.38
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2787.10%
▷ Protected methods39.68%
▷ Private methods13.23%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected