84% wetter

Code Review | Wetter2

WordPress plugin Wetter2 scored84%from 54 tests.

About plugin

  • Plugin page: wetter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 10, 2019
  • Latest release: Jul 16, 2021
  • Number of updates: 26
  • Update frequency: every 27.2 days
  • Top authors: wetter2 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /3,626 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
Install script ran successfully

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

This is a short check of server-side resources used by Wetter2
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.62 ▼0.61
Dashboard /wp-admin3.39 ▲0.0850.49 ▼3.32
Posts /wp-admin/edit.php3.50 ▲0.1454.11 ▲2.09
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.91 ▼14.44
Media Library /wp-admin/upload.php3.31 ▲0.0839.02 ▲4.64

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_wetter_widget
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wetter2
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.71 ▼0.855.62 ▲3.9344.16 ▲1.73
Dashboard /wp-admin2,225 ▲225.87 ▼0.0396.60 ▼17.9136.09 ▼6.91
Posts /wp-admin/edit.php2,104 ▲252.05 ▲0.0836.17 ▲0.8829.82 ▼6.35
Add New Post /wp-admin/post-new.php1,530 ▼1523.29 ▲0.25601.65 ▼24.0073.43 ▼10.70
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.05103.92 ▼7.7148.49 ▼0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_wetter_widget
    • db_upgraded

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
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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wetter/admin/partials/wetter-admin-display.php
    • > /wp-content/plugins/wetter/public/partials/wetter-public-display.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #1 in wetter/assets to your readme.txt
The official readme.txt might help

wetter/wetter.php Passed 13 tests

The principal PHP file in "Wetter2" v. 1.0.0 is loaded by WordPress automatically on each request
43 characters long description:
The best German weather forecasting widget.

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
Everything looks great! No dangerous files found in this plugin793 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12150542418
JavaScript24162198
CSS24217177

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.25
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity27.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

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