84% wettervorhersage

Code Review | Wettervorhersage

WordPress plugin Wettervorhersage scored84%from 54 tests.

About plugin

  • Plugin page: wettervorhersage
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Feb 24, 2022
  • Number of updates: 16
  • Update frequency: every 34.3 days
  • Top authors: wettervorhersage (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /9,266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.48ms] Passed 4 tests

A check of server-side resources used by Wettervorhersage
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.07 ▼3.88
Dashboard /wp-admin3.38 ▲0.0849.45 ▼3.78
Posts /wp-admin/edit.php3.50 ▲0.1454.13 ▲3.38
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.05 ▼12.09
Media Library /wp-admin/upload.php3.31 ▲0.0837.86 ▲1.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wettervorhersage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.37 ▼1.029.43 ▲7.6143.11 ▲0.97
Dashboard /wp-admin2,202 ▲225.62 ▼0.0393.67 ▲5.8940.90 ▼3.33
Posts /wp-admin/edit.php2,107 ▲41.96 ▼0.0741.38 ▲5.7136.11 ▼0.34
Add New Post /wp-admin/post-new.php1,530 ▲423.50 ▲0.51664.67 ▼4.9455.43 ▼25.53
Media Library /wp-admin/upload.php1,401 ▼24.14 ▼0.1499.53 ▼10.1241.32 ▼3.86

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_wettervorhersage_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wettervorhersage/public/partials/wettervorhersage-public-display.php
    • > /wp-content/plugins/wettervorhersage/admin/partials/wettervorhersage-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in wettervorhersage/assets to your readme.txt
Please take inspiration from this readme.txt

wettervorhersage/wettervorhersage.php Passed 13 tests

The main PHP file in "Wettervorhersage" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Wettervorhersage is a top nutch weather forecasting widget English and German

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,077 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS211917471
PHP12149551389
JavaScript25156181
SVG40036

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.25
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected