84% evangelische-termine-for-the-events-calendar

Code Review | Evangelische Termine für The Events Calendar

WordPress plugin Evangelische Termine für The Events Calendar scored84%from 54 tests.

About plugin

  • Plugin page: evangelische-term...
  • Plugin version: 0.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 11, 2022
  • Latest release: May 30, 2022
  • Number of updates: 5
  • Update frequency: every 11.0 days
  • Top authors: yspeech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.52ms] Passed 4 tests

A check of server-side resources used by Evangelische Termine für The Events Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.35 ▼1.77
Dashboard /wp-admin3.49 ▲0.1572.53 ▲9.03
Posts /wp-admin/edit.php3.53 ▲0.1751.84 ▲3.43
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.10 ▼18.61
Media Library /wp-admin/upload.php3.34 ▲0.1135.98 ▼1.11

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Evangelische Termine für The Events Calendar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.20 ▼0.151.65 ▲0.0839.11 ▼3.24
Dashboard /wp-admin2,207 ▲275.65 ▼0.0291.28 ▼7.6039.32 ▼5.43
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0339.12 ▲4.3438.69 ▲4.24
Add New Post /wp-admin/post-new.php1,538 ▲1022.94 ▼0.41653.44 ▲16.7153.28 ▲3.98
Media Library /wp-admin/upload.php1,415 ▲154.11 ▼0.1296.25 ▲2.3145.41 ▲5.78

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/evangelische-termine-for-the-events-calendar/assets/inc/yspeechetftec-style-functions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/evangelische-termine-for-the-events-calendar/src/views/v2/list/event-target-group.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Import Einstellungen), #2 (Lizenz Einstellungen)
You can take inspiration from this readme.txt

evangelische-termine-for-the-events-calendar/evangelische-termine-for-the-events-calendar.php 92% from 13 tests

"Evangelische Termine für The Events Calendar" version 0.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected614 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7126185614

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.50
▷ Minimum class complexity7.00
▷ Maximum class complexity28.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants9
▷ Global constants9100.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
No PNG images were found in this plugin