63% einsatzverwaltung

Code Review | Einsatzverwaltung

WordPress plugin Einsatzverwaltung scored 63% from 54 tests.

About plugin

  • Plugin page: einsatzverwaltung
  • Plugin version: 1.10.2
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2014
  • Latest release: Nov 6, 2022
  • Number of updates: 166
  • Update frequency: every 19.6 days
  • Top authors: abrain (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active / 32,316 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.77MB] [CPU: ▼38.26ms] Passed 4 tests

Analyzing server-side resources used by Einsatzverwaltung
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3642.59 ▼0.90
Dashboard /wp-admin3.18 ▼0.1321.34 ▼28.87
Posts /wp-admin/edit.php3.18 ▼0.1822.10 ▼27.33
Add New Post /wp-admin/post-new.php3.18 ▼2.7121.25 ▼82.51
Media Library /wp-admin/upload.php3.18 ▼0.0521.27 ▼14.32
Einsatzberichte importieren /wp-admin/tools.php?page=einsatzvw-tool-import3.8740.92
Einsatzberichte exportieren /wp-admin/tools.php?page=einsatzvw-tool-export3.1822.09
Add New /wp-admin/post-new.php?post_type=einsatz3.1820.00
Externe Einsatzmittel /wp-admin/edit-tags.php?taxonomy=exteinsatzmittel&post_type=einsatz3.1822.18
Incident Categories /wp-admin/edit-tags.php?taxonomy=einsatzart&post_type=einsatz3.1821.95
Fahrzeuge /wp-admin/edit-tags.php?taxonomy=fahrzeug&post_type=einsatz3.1821.54
Einsatzverwaltung /wp-admin/options-general.php?page=einsatzvw-settings3.6939.91
All Incident Reports /wp-admin/edit.php?post_type=einsatz3.1820.89
Units /wp-admin/edit-tags.php?taxonomy=evw_unit&post_type=einsatz3.1819.87
Alerting Methods /wp-admin/edit-tags.php?taxonomy=alarmierungsart&post_type=einsatz3.1819.81

Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 139 new files
Database: no new tables, 10 new options
New WordPress options
einsatzvw_category
widget_recent-incidents-formatted
widget_theysaidso_widget
theysaidso_admin_options
widget_einsatzverwaltung_widget
einsatzvw_db_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Einsatzverwaltung
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲16513.73 ▼0.701.72 ▼0.1143.82 ▲0.56
Dashboard /wp-admin2,297 ▲1065.22 ▲0.31105.06 ▲0.8438.52 ▼0.82
Posts /wp-admin/edit.php2,155 ▲632.28 ▲0.2440.99 ▲0.6633.30 ▼2.14
Add New Post /wp-admin/post-new.php1,590 ▲5623.46 ▲0.19688.45 ▲21.3639.71 ▼25.10
Media Library /wp-admin/upload.php1,471 ▲804.38 ▲0.1891.85 ▼17.7543.39 ▼2.65
Einsatzberichte importieren /wp-admin/tools.php?page=einsatzvw-tool-import8621.8730.8526.67
Einsatzberichte exportieren /wp-admin/tools.php?page=einsatzvw-tool-export1,0101.9529.8128.48
Add New /wp-admin/post-new.php?post_type=einsatz6,67621.79918.2741.05
Externe Einsatzmittel /wp-admin/edit-tags.php?taxonomy=exteinsatzmittel&post_type=einsatz1,3542.0630.6028.20
Incident Categories /wp-admin/edit-tags.php?taxonomy=einsatzart&post_type=einsatz1,6973.8053.7229.86
Fahrzeuge /wp-admin/edit-tags.php?taxonomy=fahrzeug&post_type=einsatz1,4662.0830.3528.34
Einsatzverwaltung /wp-admin/options-general.php?page=einsatzvw-settings1,0312.6542.6725.11
All Incident Reports /wp-admin/edit.php?post_type=einsatz1,1862.2633.1030.26
Units /wp-admin/edit-tags.php?taxonomy=evw_unit&post_type=einsatz1,3882.0929.7127.59
Alerting Methods /wp-admin/edit-tags.php?taxonomy=alarmierungsart&post_type=einsatz1,3182.0531.0327.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/einsatzverwaltung/Export/Tool.php+65
    Undefined index: page
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • widget_recent-posts
    • einsatzvw_category
    • widget_einsatzverwaltung_widget
    • widget_recent-incidents-formatted
    • widget_recent-comments
    • theysaidso_admin_options
    • einsatzvw_db_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=einsatzvw-tool-export
    • > Notice in wp-content/plugins/einsatzverwaltung/Export/Tool.php+66
    Undefined index: download
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=alarmierungsart&post_type=einsatz
    • > Notice in wp-content/plugins/einsatzverwaltung/Export/Tool.php+65
    Undefined index: page

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/einsatzverwaltung/einsatzverwaltung.php
  • 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'abrain\\Einsatzverwaltung\\CustomFields\\CustomField' not found in wp-content/plugins/einsatzverwaltung/CustomFields/UrlInput.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'abrain\\Einsatzverwaltung\\Import\\Sources\\AbstractSource' not found in wp-content/plugins/einsatzverwaltung/Import/Sources/Csv.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'abrain\\Einsatzverwaltung\\Types\\CustomTaxonomy' not found in wp-content/plugins/einsatzverwaltung/Types/AlertingMethod.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/einsatzverwaltung/Widgets/AbstractWidget.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'abrain\\Einsatzverwaltung\\Types\\CustomType' not found in wp-content/plugins/einsatzverwaltung/Types/CustomTaxonomy.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'abrain\\Einsatzverwaltung\\Shortcodes\\AbstractShortcode' not found in wp-content/plugins/einsatzverwaltung/Shortcodes/ReportArchives.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'abrain\\Einsatzverwaltung\\Types\\CustomTaxonomy' not found in wp-content/plugins/einsatzverwaltung/Types/Vehicle.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'abrain\\Einsatzverwaltung\\CustomFields\\CustomField' not found in wp-content/plugins/einsatzverwaltung/CustomFields/UnitSelector.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'abrain\\Einsatzverwaltung\\Export\\Formats\\Format' not found in wp-content/plugins/einsatzverwaltung/Export/Formats/AbstractFormat.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'abrain\\Einsatzverwaltung\\Settings\\Pages\\SubPage' not found in wp-content/plugins/einsatzverwaltung/Settings/Pages/About.php:12

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: fire department, feuerwehr, ems

einsatzverwaltung/einsatzverwaltung.php Passed 13 tests

The principal PHP file in "Einsatzverwaltung" v. 1.10.2 is loaded by WordPress automatically on each request
70 characters long description:
Public incident reports for fire departments and other rescue services

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected18,984 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP901,7583,9539,857
SVG1002,671
CSS541152,512
Sass1434341,768
LESS1434441,758
Markdown1580281
JavaScript6174137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.02
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces20
Interfaces4
Traits0
Classes84
▷ Abstract classes910.71%
▷ Concrete classes7589.29%
▷ Final classes00.00%
Methods653
▷ Static methods365.51%
▷ Public methods51578.87%
▷ Protected methods274.13%
▷ Private methods11117.00%
Functions39
▷ Named functions25.13%
▷ Anonymous functions3794.87%
Constants33
▷ Global constants00.00%
▷ Class constants33100.00%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin