10% rp-kundenbewertung

Code Review | RP-Kundenbewertung

WordPress plugin RP-Kundenbewertung scored10%from 54 tests.

About plugin

  • Plugin page: rp-kundenbewertung
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 32.4 days
  • Top authors: rpdatentechnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /192 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/rp-kundenbewertung/includes/class-rp-kundenbewertung-activator.php+48
    Undefined variable: charset_collate

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.21ms] Passed 4 tests

This is a short check of server-side resources used by RP-Kundenbewertung
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1345.90 ▲1.58
Dashboard /wp-admin3.45 ▲0.1451.47 ▲0.06
Posts /wp-admin/edit.php3.56 ▲0.2052.56 ▲1.73
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.61 ▼16.22
Media Library /wp-admin/upload.php3.37 ▲0.1443.64 ▲7.25
RP-Kundenbewertung /wp-admin/plugins.php?page=rp-kundenbewertung3.3133.31

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 7 new options
New tables
wp_rp_kundenbewertung
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
rp_kundenbewertung_settings_group
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for RP-Kundenbewertung
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.83 ▼0.528.52 ▲6.6339.24 ▼1.91
Dashboard /wp-admin2,200 ▲235.56 ▼0.1786.03 ▼9.7338.11 ▼5.70
Posts /wp-admin/edit.php2,108 ▲82.02 ▼0.1339.50 ▲3.1336.60 ▲1.06
Add New Post /wp-admin/post-new.php1,533 ▼1223.00 ▼0.12685.73 ▲5.8053.32 ▲2.14
Media Library /wp-admin/upload.php1,411 ▲174.30 ▲0.07109.38 ▲7.9348.00 ▲4.03
RP-Kundenbewertung /wp-admin/plugins.php?page=rp-kundenbewertung1,1412.0321.8530.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_rp-kundenbewertung' not found or invalid function name
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=rp-kundenbewertung
    • > Notice in wp-content/plugins/rp-kundenbewertung/admin/class-rp-kundenbewertung-admin.php+101
    Undefined index: tab
    • > GET request to /wp-admin/plugins.php?page=rp-kundenbewertung
    • > Notice in wp-content/plugins/rp-kundenbewertung/admin/class-rp-kundenbewertung-admin.php+102
    Undefined index: valueID
    • > GET request to /wp-admin/plugins.php?page=rp-kundenbewertung
    • > Notice in wp-content/plugins/rp-kundenbewertung/admin/class-rp-kundenbewertung-admin.php+103
    Undefined index: richtung
    • > GET request to /wp-admin/plugins.php?page=rp-kundenbewertung
    • > Notice in wp-content/plugins/rp-kundenbewertung/admin/class-rp-kundenbewertung-admin.php+104
    Undefined index: antwort_sid

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rp-kundenbewertung/public/partials/rp-kundenbewertung-public-display.php
    • > /wp-content/plugins/rp-kundenbewertung/admin/partials/rp-kundenbewertung-admin-display.php

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: kundenumfrage, kundenzufriedenheitsanalyse, meinungsumfrage, kundenbefragung, kundenzufriedenheit

rp-kundenbewertung/rp-kundenbewertung.php Passed 13 tests

"RP-Kundenbewertung" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Eine Kundenzufriedenheitsbefragung erstellen und im Frontend integrieren

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,009 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12303600755
CSS3426241
JavaScript2111213

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.57
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin