84% einsatzverwaltungeu-letzter-einsatz

Code Review | Einsatzverwaltung.eu - 2.0 - letzter Einsatz

WordPress plugin Einsatzverwaltung.eu - 2.0 - letzter Einsatz scored84%from 54 tests.

About plugin

  • Plugin page: einsatzverwaltung...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Jun 6, 2022
  • Number of updates: 20
  • Update frequency: every 120.0 days
  • Top authors: NicolasGlatz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /973 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Einsatzverwaltung.eu - 2.0 - letzter Einsatz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.13 ▼1.74
Dashboard /wp-admin3.31 ▲0.0146.72 ▼3.43
Posts /wp-admin/edit.php3.36 ▲0.0052.66 ▲5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.34 ▼6.96
Media Library /wp-admin/upload.php3.23 ▲0.0032.79 ▼2.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Einsatzverwaltung.eu - 2.0 - letzter Einsatz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▼0.041.75 ▼0.2543.48 ▼1.54
Dashboard /wp-admin2,192 ▲155.63 ▼0.0387.22 ▼12.3041.33 ▼5.88
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0339.51 ▼0.9534.20 ▼4.06
Add New Post /wp-admin/post-new.php1,526 ▼023.37 ▼0.22658.24 ▼22.4955.28 ▲2.57
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.11101.25 ▼6.5043.85 ▲2.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 no errors were found, this is by no means 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/einsatzverwaltungeu-letzter-einsatz/einsatzverwaltung.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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 require attention:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

einsatzverwaltungeu-letzter-einsatz/einsatzverwaltung.php 92% from 13 tests

The main PHP file in "Einsatzverwaltung.eu - 2.0 - letzter Einsatz" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("einsatzverwaltungeu-letzter-einsatz.php" instead of "einsatzverwaltung.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111916

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin