80% yatterukun

Code Review | Yatterukun

WordPress plugin Yatterukun scored80%from 54 tests.

About plugin

  • Plugin page: yatterukun
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Apr 25, 2020
  • Latest release: Apr 25, 2020
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: ankatsu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /400 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.96ms] Passed 4 tests

This is a short check of server-side resources used by Yatterukun
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.42 ▼6.30
Dashboard /wp-admin3.36 ▲0.0651.72 ▼3.27
Posts /wp-admin/edit.php3.41 ▲0.0551.46 ▲3.20
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.23 ▼13.26
Media Library /wp-admin/upload.php3.28 ▲0.0538.18 ▼1.00
Yatterukun /wp-admin/options-general.php?page=yatterukun-settings3.2833.26

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Yatterukun
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.081.78 ▼0.0740.19 ▼4.18
Dashboard /wp-admin2,199 ▲225.66 ▲0.0191.41 ▼6.0141.13 ▲1.44
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0335.44 ▼2.9833.97 ▼2.10
Add New Post /wp-admin/post-new.php1,529 ▲323.70 ▲0.60660.99 ▲23.3065.92 ▲9.79
Media Library /wp-admin/upload.php1,478 ▲844.39 ▲0.21104.38 ▲6.4849.69 ▲6.20
Yatterukun /wp-admin/options-general.php?page=yatterukun-settings1,0521.9921.7527.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/yatterukun/index.php+50
    rmdir(wp-content/uploads/yatterukun): No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: chage image, replace video, replace media, change video, change media...

yatterukun/index.php 92% from 13 tests

The entry point to "Yatterukun" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yatterukun.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin706 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP510062581
PO File1232373
HTML10252

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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