10% wetterwarner

Code Review | Wetterwarner

WordPress plugin Wetterwarner scored10%from 54 tests.

About plugin

  • Plugin page: wetterwarner
  • Plugin version: 2.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Oct 25, 2023
  • Number of updates: 209
  • Update frequency: every 13.9 days
  • Top authors: bocanegra (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /23,601 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/wetterwarner/wetterwarner-functions.php+48
    syntax error, unexpected 'throw' (T_THROW)

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

This is a short check of server-side resources used by Wetterwarner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.18 ▼1.25
Dashboard /wp-admin3.31 ▲0.0043.12 ▼6.52
Posts /wp-admin/edit.php3.36 ▲0.0040.04 ▼6.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.85 ▼32.29
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▼3.08

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 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

A check of browser resources used by Wetterwarner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.03 ▼0.591.72 ▼0.0837.03 ▼1.76
Dashboard /wp-admin2,195 ▲145.61 ▼0.0283.11 ▼13.8037.90 ▼5.39
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0134.19 ▼1.6135.07 ▲1.55
Add New Post /wp-admin/post-new.php1,526 ▼222.98 ▲0.07632.45 ▼52.6453.55 ▼0.19
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0196.63 ▼5.0446.14 ▲1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 0% 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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wetterwarner/wetterwarner.php
    • > /wp-content/plugins/wetterwarner/resources/file-cache/file-cache.php
    • > /wp-content/plugins/wetterwarner/wetterwarner-settings.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected 'throw' (T_THROW) in wp-content/plugins/wetterwarner/wetterwarner-functions.php on line 48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget im Front-End Bereich), #2 (Widget Konfiguration im Back-End), #3 (Weitere Einstellungen)
The official readme.txt might help

wetterwarner/wetterwarner.php Passed 13 tests

The principal PHP file in "Wetterwarner" v. 2.6 is loaded by WordPress automatically on each request
49 characters long description:
Zeigt amtliche Wetterwarnungen in einem Widget an

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin14,745 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS73899,256
Sass1328241,560
LESS1328341,550
SVG200912
PHP48264725
JavaScript377276421
Markdown3830321

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity39.50
▷ Minimum class complexity15.00
▷ Maximum class complexity64.00
Average method complexity7.42
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods650.00%
▷ Protected methods00.00%
▷ Private methods650.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin