78% evangtermine

Code Review | Evangelische Termine

WordPress plugin Evangelische Termine scored78%from 54 tests.

About plugin

  • Plugin page: evangtermine
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 99
  • Update frequency: every 29.8 days
  • Top authors: regibaer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,795 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.05MB] [CPU: ▼2.13ms] 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 /3.50 ▲0.0337.21 ▲0.76
Dashboard /wp-admin3.37 ▲0.0644.85 ▲0.74
Posts /wp-admin/edit.php3.48 ▲0.1245.67 ▼1.10
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.86 ▼6.54
Media Library /wp-admin/upload.php3.29 ▲0.0635.21 ▼1.62
Evangelische Termine /wp-admin/options.php5.9834.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 454 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_etwidget
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

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 /2,793 ▲3214.33 ▼0.031.64 ▲0.0640.20 ▼6.90
Dashboard /wp-admin2,199 ▲225.54 ▼0.0581.60 ▼7.6037.79 ▼4.10
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0334.87 ▼0.5431.13 ▼7.89
Add New Post /wp-admin/post-new.php1,531 ▲522.98 ▼0.16670.46 ▼22.4671.37 ▲15.78
Media Library /wp-admin/upload.php1,398 ▲14.23 ▲0.04101.87 ▼2.5645.42 ▼2.36
Evangelische Termine /wp-admin/options.php3,1281.6829.5550.58

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 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_etwidget
    • theysaidso_admin_options
    • widget_recent-comments

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/evangtermine.php
    • > /wp-content/plugins/evangtermine/application/forms/options.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: evangelische, kirche, termine, vernetzte, elkb

evangtermine/evangtermine.php Passed 13 tests

The main PHP file in "Evangelische Termine" ver. 3.3 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 plugin52,517 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
CSS861,4672,21345,426
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP15156336729
JavaScript33324165

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.28
Average class complexity6.42
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods31
▷ Static methods1238.71%
▷ Public methods2993.55%
▷ Protected methods00.00%
▷ Private methods26.45%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
311 PNG files occupy 0.98MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/ui/1.12.1/themes/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png5.68KB1.20KB▼ 78.89%
assets/ui/1.12.1/themes/mint-choc/images/ui-bg_glass_15_5f391b_1x400.png0.38KB0.16KB▼ 58.02%
assets/ui/1.12.1/themes/ui-darkness/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/ui/1.12.1/themes/sunny/images/ui-bg_gloss-wave_90_fff9e5_500x100.png5.32KB0.57KB▼ 89.32%
assets/ui/1.12.1/themes/base/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%