78% fluchtlingen-helfen

Code Review | Flüchtlingen helfen

WordPress plugin Flüchtlingen helfen scored78%from 54 tests.

About plugin

  • Plugin page: fluchtlingen-helfen
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2015
  • Latest release: Sep 12, 2015
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: 1manfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.82ms] Passed 4 tests

Analyzing server-side resources used by Flüchtlingen helfen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.24 ▼2.56
Dashboard /wp-admin3.34 ▼0.0048.90 ▼12.39
Posts /wp-admin/edit.php3.39 ▲0.0348.80 ▼5.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.19 ▼14.96
Media Library /wp-admin/upload.php3.26 ▲0.0339.05 ▲2.54

Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/fluchtlingen-helfen/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
fh1man_zindex
can_compress_scripts
fh1man_type
widget_recent-comments
db_upgraded
fh1man_sticky
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Flüchtlingen helfen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10314.76 ▲0.592.02 ▲0.2945.28 ▲1.81
Dashboard /wp-admin2,225 ▲215.86 ▲0.79113.78 ▲2.2644.57 ▲4.06
Posts /wp-admin/edit.php2,104 ▲42.04 ▼0.0235.82 ▼0.2332.75 ▼2.37
Add New Post /wp-admin/post-new.php1,548 ▲2223.03 ▲5.57637.77 ▼19.3756.78 ▲2.86
Media Library /wp-admin/upload.php1,404 ▲104.18 ▼0.0699.02 ▼1.7541.32 ▼4.33
Flüchtlingen helfen /wp-admin/fluechtlingen-helfen.php260.440.1013.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fluchtlingen-helfen/fluechtlingen-helfen.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/fluechtlingen-helfen.php
    • > Network (severe)
    wp-admin/fluechtlingen-helfen.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (simple Settings - left or right?), #2 (left), #3 (right), #4 (screenshot of linked google map)
The official readme.txt is a good inspiration

fluchtlingen-helfen/fluechtlingen-helfen.php 92% from 13 tests

"Flüchtlingen helfen" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fluchtlingen-helfen.php" instead of "fluechtlingen-helfen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin176 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1462499
CSS18040
PO File1101037

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.37MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png12.86KB7.66KB▼ 40.43%
fluechtlingen-helfen-links.png7.38KB4.77KB▼ 35.35%
fluechtlingen-helfen-rechts.png7.85KB4.83KB▼ 38.50%
screenshot-1.png19.40KB10.78KB▼ 44.45%
screenshot-4.png305.47KB110.68KB▼ 63.77%