10% katorymnd-reaction-process

Code Review | Katorymnd Reaction

WordPress plugin Katorymnd Reaction scored 10% from 54 tests.

About plugin

  • Plugin page: katorymnd-reactio...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6+
  • WordPress version: 6.3.1
  • First release: Feb 14, 2021
  • Latest release: Nov 4, 2022
  • Number of updates: 10
  • Update frequency: every 63.4 days
  • Top authors: katorymnd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/katorymnd-reaction-process/katorymnd_feedback.php+75
    Undefined variable: katorymnd_wlse

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.30ms] Passed 4 tests

Server-side resources used by Katorymnd Reaction
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.49 ▼11.54
Dashboard /wp-admin3.33 ▲0.0346.55 ▼0.21
Posts /wp-admin/edit.php3.38 ▲0.0249.05 ▲3.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.72 ▼2.72
Media Library /wp-admin/upload.php3.25 ▲0.0235.27 ▲1.28
Katorymnd Member reaction Settings /wp-admin/options-general.php?page=katorymnd_member_feeds_settings3.2333.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 8 new options
New tables
wp_katorymnd_feeback
New WordPress options
katorymnd_wlse
widget_theysaidso_widget
db_upgraded
katorymnd_kpzv
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Katorymnd Reaction
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲17213.66 ▼0.718.14 ▲5.9240.74 ▲1.09
Dashboard /wp-admin2,214 ▲236.03 ▲0.1395.65 ▼4.6239.06 ▼3.15
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0541.55 ▲6.3335.03 ▲1.15
Add New Post /wp-admin/post-new.php1,528 ▲11623.22 ▲5.27646.85 ▲5.8957.98 ▲8.76
Media Library /wp-admin/upload.php1,399 ▲144.19 ▼0.0294.44 ▼2.8745.40 ▼0.57
Katorymnd Member reaction Settings /wp-admin/options-general.php?page=katorymnd_member_feeds_settings8632.0328.2249.13

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • katorymnd_wlse
    • katorymnd_kpzv
    • db_upgraded
    • can_compress_scripts

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)
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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/katorymnd-reaction-process/katorymnd_feebackAdmin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/katorymnd-reaction-process/katorymnd_feedback.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/katorymnd-reaction-process/katorymnd_Showfeeback.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/katorymnd-reaction-process/katorymnd_feebackForm.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tested up to: Version not formatted correctly
  • Requires at least: Version not formatted correctly
  • Requires php: Version not formatted correctly
Please take inspiration from this readme.txt

katorymnd-reaction-process/katorymnd_feedback.php 92% from 13 tests

The primary PHP file in "Katorymnd Reaction" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("katorymnd-reaction-process.php" instead of "katorymnd_feedback.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
There were no executable files found in this plugin653 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP635192542
CSS1197110
JavaScript1051

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/GnyDvKN.png4.24KB1.48KB▼ 65.18%
img/Q9BGTuy.png4.34KB1.51KB▼ 65.32%