84% klubraum-membership-request

Code Review | Klubraum Membership Request

WordPress plugin Klubraum Membership Request scored84%from 54 tests.

About plugin

  • Plugin page: klubraum-membersh...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Feb 2, 2023
  • Number of updates: 17
  • Update frequency: every 39.2 days
  • Top authors: klubraum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /920 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.13ms] Passed 4 tests

This is a short check of server-side resources used by Klubraum Membership Request
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.88 ▲1.96
Dashboard /wp-admin3.33 ▼0.0244.28 ▼15.90
Posts /wp-admin/edit.php3.38 ▲0.0245.29 ▼2.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.42 ▼14.94
Media Library /wp-admin/upload.php3.25 ▲0.0231.85 ▼11.37
Settings /wp-admin/admin.php?page=klubraum-membership-request-widget-settings3.2228.56
Klubraum Membership Request /wp-admin/admin.php?page=klubraum-membership-request-widget3.2230.08

Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables
wp_kr_mr_membership_requests
New WordPress options
kr_mr_introduction_text
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Klubraum Membership Request
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲24813.62 ▼0.975.48 ▲3.8742.87 ▼1.27
Dashboard /wp-admin2,283 ▲955.86 ▼0.04105.58 ▼6.8639.99 ▲1.66
Posts /wp-admin/edit.php2,175 ▲832.01 ▼0.0035.60 ▲0.7233.41 ▼2.35
Add New Post /wp-admin/post-new.php1,540 ▲2123.07 ▼0.02632.40 ▼42.5057.68 ▼0.92
Media Library /wp-admin/upload.php1,465 ▲774.20 ▼0.0497.52 ▲0.6346.30 ▲4.41
Settings /wp-admin/admin.php?page=klubraum-membership-request-widget-settings8982.0638.4134.90
Klubraum Membership Request /wp-admin/admin.php?page=klubraum-membership-request-widget8852.0424.1126.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/public/class-klubraum-membership-request-widget-public.php:221
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/admin/class-klubraum-membership-request-widget-admin.php:150
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/klubraum-membership-request/admin/partials/klubraum-membership-request-widget-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: spam, comments

klubraum-membership-request/klubraum-membership-request-widget.php 85% from 13 tests

"Klubraum Membership Request" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("klubraum-membership-request.php" instead of "klubraum-membership-request-widget.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected707 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12146586492
CSS22879
JavaScript295469
PO File1273767

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods722.58%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/klubraum_logo_blue.png13.39KB7.40KB▼ 44.78%