83% einsatzverwaltungeu

Code Review | Einsatzverwaltung 2.0

WordPress plugin Einsatzverwaltung 2.0 scored83%from 54 tests.

About plugin

  • Plugin page: einsatzverwaltungeu
  • Plugin version: 2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 7, 2015
  • Latest release: Jun 6, 2022
  • Number of updates: 36
  • Update frequency: every 66.9 days
  • Top authors: NicolasGlatz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,070 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.33ms] Passed 4 tests

An overview of server-side resources used by Einsatzverwaltung 2.0
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.94 ▲8.04
Dashboard /wp-admin3.32 ▲0.0145.17 ▼5.61
Posts /wp-admin/edit.php3.37 ▲0.0141.88 ▼7.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.94 ▼9.06
Media Library /wp-admin/upload.php3.24 ▲0.0131.29 ▼3.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Einsatzverwaltung 2.0
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▲0.011.74 ▼0.0246.16 ▲0.28
Dashboard /wp-admin2,195 ▲215.61 ▲0.0986.86 ▼1.2842.73 ▲0.18
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0034.02 ▼6.8433.56 ▼6.00
Add New Post /wp-admin/post-new.php1,531 ▲223.57 ▲0.37664.63 ▲56.1243.55 ▼9.92
Media Library /wp-admin/upload.php1,403 ▲94.18 ▼0.0294.73 ▼11.4540.91 ▼5.76

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/einsatzverwaltungeu/einsatzverwaltung.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Requires at least: Invalid version format
  • Screenshots: These screenshots require images: #1 (banner.jpg), #2 (logo_h4y.jpg)
The official readme.txt is a good inspiration

einsatzverwaltungeu/einsatzverwaltung.php 85% from 13 tests

The main file in "Einsatzverwaltung 2.0" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("einsatzverwaltungeu.php" instead of "einsatzverwaltung.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301366

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.19
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin