83% yamato-credit-for-woo

Code Review | Kuroneko Web Collect for Woo

WordPress plugin Kuroneko Web Collect for Woo scored83%from 54 tests.

About plugin

  • Plugin page: yamato-credit-for...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2020
  • Latest release: Oct 13, 2023
  • Number of updates: 36
  • Update frequency: every 33.3 days
  • Top authors: yamatofinancial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.12MB] [CPU: ▼27.46ms] Passed 4 tests

A check of server-side resources used by Kuroneko Web Collect for Woo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0285.89 ▼11.51
Dashboard /wp-admin3.33 ▼0.0278.81 ▼52.12
Posts /wp-admin/edit.php3.38 ▼0.4786.98 ▼3.34
Add New Post /wp-admin/post-new.php5.91 ▲0.02146.95 ▼11.49
Media Library /wp-admin/upload.php3.25 ▲0.0235.55 ▼34.73

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Kuroneko Web Collect for Woo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▲0.373.15 ▼0.5071.29 ▼8.45
Dashboard /wp-admin2,201 ▲244.89 ▼0.71184.00 ▲23.63118.54 ▲28.21
Posts /wp-admin/edit.php2,120 ▲202.27 ▲0.2871.69 ▲3.6181.95 ▲20.05
Add New Post /wp-admin/post-new.php1,538 ▲9823.19 ▲5.66782.22 ▼169.0940.49 ▼51.31
Media Library /wp-admin/upload.php1,415 ▲124.43 ▲0.24110.78 ▼72.0248.56 ▼45.36

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yamato-credit-for-woo/includes/kupaywc-functions.php:190

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires php: Invalid version format
You can look at the official readme.txt

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

The primary PHP file in "Kuroneko Web Collect for Woo" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("yamato-credit-for-woo.php" instead of "kuroneko-pay.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,476 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP207231,0155,455
PO File119514466
JavaScript56412425
CSS1230130

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity37.00
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity5.13
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods149
▷ Static methods1510.07%
▷ Public methods14093.96%
▷ Protected methods21.34%
▷ Private methods74.70%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants30
▷ Global constants516.67%
▷ Class constants2583.33%
▷ Public constants25100.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 images were found in this plugin