10% einsatzberichte-oo

Code Review | Einsatzberichte OOE

WordPress plugin Einsatzberichte OOE scored10%from 54 tests.

About plugin

  • Plugin page: einsatzberichte-oo
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Oct 8, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 34
  • Update frequency: every 35.9 days
  • Top authors: fellwell5 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,376 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/einsatzberichte-oo/einsatzberichte.php+20
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.59MB] [CPU: ▼51.07ms] Passed 4 tests

This is a short check of server-side resources used by Einsatzberichte OOE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.065.12 ▼36.62
Dashboard /wp-admin2.42 ▼0.888.08 ▼39.26
Posts /wp-admin/edit.php2.42 ▼0.947.34 ▼37.26
Add New Post /wp-admin/post-new.php2.42 ▼3.476.15 ▼91.15
Media Library /wp-admin/upload.php2.42 ▼0.816.25 ▼29.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options
widget_eib_widget_lfd
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_eib_widget_last
widget_eib_widget_stats
widget_recent-comments
widget_eib_widget_map

Browser metrics Passed 4 tests

This is an overview of browser requirements for Einsatzberichte OOE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.45 ▼0.861.62 ▼0.2638.62 ▼12.42
Dashboard /wp-admin2,228 ▲405.13 ▼0.77104.78 ▼12.8241.22 ▼3.71
Posts /wp-admin/edit.php2,111 ▲222.27 ▲0.2335.92 ▼1.8433.98 ▲0.41
Add New Post /wp-admin/post-new.php6,243 ▲4,70725.99 ▲2.97901.82 ▲209.3957.98 ▲5.72
Media Library /wp-admin/upload.php1,413 ▲254.42 ▲0.1798.73 ▼5.8641.07 ▼7.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/einsatzberichte-oo/einsatzberichte.php+20
    date_default_timezone_set(): Timezone ID '' is invalid
  • The uninstall procedure has failed, leaving 10 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_eib_widget_stats
    • widget_eib_widget_map
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_eib_widget_last
    • widget_eib_widget_lfd

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/einsatzberichte-oo/einsatzberichte.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

einsatzberichte-oo/einsatzberichte.php 85% from 13 tests

The principal PHP file in "Einsatzberichte OOE" v. 0.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("einsatzberichte-oo.php" instead of "einsatzberichte.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 331 characters long)

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
Success! There were no dangerous files found in this plugin9,436 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS46132,377
Sass1434341,768
LESS1434441,758
PHP2187105831
JavaScript401731

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.00
▷ Minimum class complexity8.00
▷ Maximum class complexity24.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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