73% kirchenjahr-evangelisch

Code Review | Kirchenjahr evangelisch

WordPress plugin Kirchenjahr evangelisch scored73%from 54 tests.

About plugin

  • Plugin page: kirchenjahr-evang...
  • Plugin version: 2023.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2019
  • Latest release: Feb 3, 2023
  • Number of updates: 33
  • Update frequency: every 44.9 days
  • Top authors: ByggvirOfBarley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,583 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Kirchenjahr evangelisch
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.54 ▲4.89
Dashboard /wp-admin3.44 ▲0.1445.17 ▼3.55
Posts /wp-admin/edit.php3.55 ▲0.2045.96 ▼3.60
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.59 ▼3.97
Media Library /wp-admin/upload.php3.36 ▲0.1340.03 ▲5.02
Kirchenjahr /wp-admin/options-general.php?page=evkj_kirchenjahr3.3331.00

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 1 new table, 7 new options
New tables
wp_evkj_cache
New WordPress options
widget_recent-posts
widget_evkj_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Kirchenjahr evangelisch
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.43 ▼0.928.11 ▲6.4242.20 ▲2.02
Dashboard /wp-admin2,200 ▲195.57 ▼0.1081.03 ▼18.6038.23 ▼4.40
Posts /wp-admin/edit.php2,108 ▲82.01 ▼0.0135.32 ▲1.0231.20 ▼6.13
Add New Post /wp-admin/post-new.php1,535 ▲923.13 ▲0.11654.95 ▼40.6557.58 ▼0.04
Media Library /wp-admin/upload.php1,408 ▲84.18 ▼0.2397.06 ▼12.1942.18 ▼4.55
Kirchenjahr /wp-admin/options-general.php?page=evkj_kirchenjahr9391.9925.0228.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/kirchenjahr-evangelisch/uninstall.php+33
    Constant EVKJ_CACHETAB already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/kirchenjahr-evangelisch/public/partials/evkj-public-display.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/includes/class-evkj-activator.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/admin/partials/evkj-admin-display.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/public/class-shortcodes.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/public/class-litkalapi.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/public/class-widget.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/evkj.php
    • > /wp-content/plugins/kirchenjahr-evangelisch/admin/setting-template.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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === kirchenjahr-evangelisch === )
You can take inspiration from this readme.txt

kirchenjahr-evangelisch/evkj.php 85% from 13 tests

The primary PHP file in "Kirchenjahr evangelisch" version 2023.1 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: Please rename the main PHP file in this plugin to the plugin slug ("kirchenjahr-evangelisch.php" instead of "evkj.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,124 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP17356820702
CSS39114268
Markdown1500148
JavaScript25586

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.64
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3274.42%
▷ Protected methods00.00%
▷ Private methods1125.58%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants6
▷ Global constants6100.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
8 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
evkj-3.png50.22KB21.33KB▼ 57.52%
evkj-1.png24.33KB7.97KB▼ 67.23%
evkj-5.png36.33KB17.53KB▼ 51.74%
evkj-2.png48.40KB22.56KB▼ 53.39%
evkj-6.png42.76KB18.85KB▼ 55.92%