79% evangtermine

Code Review | Evangelische Termine

WordPress plugin Evangelische Termine scored 79% from 54 tests.

About plugin

  • Plugin page: evangtermine
  • Plugin version: 2.2.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 5.8.1
  • First release: Jul 22, 2015
  • Latest release: Mar 8, 2021
  • Number of updates: 82
  • Update frequency: every 26.8 days
  • Top authors: regibaer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼145.33ms] Passed 4 tests

This is a short check of server-side resources used by Evangelische Termine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.0428.05 ▼20.03
Dashboard /wp-admin3.12 ▲0.0646.71 ▼14.75
Posts /wp-admin/edit.php3.20 ▲0.0941.09 ▼5.70
Add New Post /wp-admin/post-new.php5.48 ▲0.05100.13 ▼540.83
Media Library /wp-admin/upload.php3.06 ▲0.0534.07 ▼5.24
Evangelische Termine /wp-admin/options.php5.7135.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
widget_etwidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Evangelische Termine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11216.17 ▲0.7110.27 ▲2.5951.02 ▼2.26
Dashboard /wp-admin2,975 ▲445.90 ▼0.25149.96 ▼9.15121.77 ▼2.82
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0170.27 ▼0.8789.40 ▼9.72
Add New Post /wp-admin/post-new.php1,686 ▲18618.70 ▲0.31377.45 ▼3.08113.38 ▼2.59
Media Library /wp-admin/upload.php1,815 ▲55.01 ▲0.02171.98 ▲5.05134.35 ▲2.34
Evangelische Termine /wp-admin/options.php4,2272.1767.7180.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_etwidget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/evangtermine/application/forms/options.php
    • > /wp-content/plugins/evangtermine/evangtermine.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/evangtermine/application/controllers/class.etwidget.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/evangtermine/application/forms/form.etwidget.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: kirche, termine, vernetzte, evangelische, elkb

evangtermine/evangtermine.php Passed 13 tests

The main PHP file in "Evangelische Termine" ver. 2.2.12 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Dieses Plugin bindet die Evangelischen Termine (www.evangelische-termine.de) in Wordpress ein.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin567 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14134299567

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.45
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods28
▷ Static methods414.29%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
There are no PNG files in this plugin