83% yamato-atobarai-for-woo

Code Review | Kuroneko Daikin Atobarai Service for Woo

WordPress plugin Kuroneko Daikin Atobarai Service for Woo scored83%from 54 tests.

About plugin

  • Plugin page: yamato-atobarai-f...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Oct 13, 2023
  • Number of updates: 39
  • Update frequency: every 30.6 days
  • Top authors: yamatofinancial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.99ms] Passed 4 tests

A check of server-side resources used by Kuroneko Daikin Atobarai Service for Woo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.18 ▼4.02
Dashboard /wp-admin3.49 ▲0.1847.17 ▼5.91
Posts /wp-admin/edit.php3.60 ▲0.2449.61 ▲8.81
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.35 ▼7.11
Media Library /wp-admin/upload.php3.41 ▲0.1835.74 ▲1.07

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kuroneko Daikin Atobarai Service for Woo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.35 ▲0.191.66 ▼0.0140.48 ▼7.09
Dashboard /wp-admin2,210 ▲395.80 ▲0.1484.50 ▼16.0039.04 ▼4.79
Posts /wp-admin/edit.php2,114 ▲142.29 ▲0.2833.78 ▼5.5932.72 ▼5.96
Add New Post /wp-admin/post-new.php1,538 ▲823.21 ▲0.22664.37 ▲48.4735.97 ▼22.18
Media Library /wp-admin/upload.php1,415 ▲124.42 ▲0.20103.13 ▲6.1742.42 ▲2.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yamato-atobarai-for-woo/includes/kuatowc-functions.php:308

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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:
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

yamato-atobarai-for-woo/kuroneko-atobarai.php 77% from 13 tests

The principal PHP file in "Kuroneko Daikin Atobarai Service for Woo" v. 1.1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "3.5")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yamato-atobarai-for-woo.php" instead of "kuroneko-atobarai.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 plugin3,134 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP154486782,673
PO File1997226
CSS110124
JavaScript3180111

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.82
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods88
▷ Static methods1517.05%
▷ Public methods8495.45%
▷ Protected methods00.00%
▷ Private methods44.55%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants518.52%
▷ Class constants2281.48%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin