62% entscheidungshilfe-decision-box-free

Code Review | Entscheidungshilfe free

WordPress plugin Entscheidungshilfe free scored62%from 54 tests.

About plugin

  • Plugin page: entscheidungshilf...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2019
  • Latest release: Dec 6, 2019
  • Number of updates: 5
  • Update frequency: every 63.8 days
  • Top authors: flodji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 total downloads

Benchmarks

Plugin footprint 65% 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.90MB] [CPU: ▼33.59ms] Passed 4 tests

This is a short check of server-side resources used by Entscheidungshilfe free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.82 ▲3.12
Dashboard /wp-admin3.05 ▼0.2623.69 ▼26.89
Posts /wp-admin/edit.php3.05 ▼0.3122.35 ▼28.31
Add New Post /wp-admin/post-new.php3.05 ▼2.8423.79 ▼65.96
Media Library /wp-admin/upload.php3.05 ▼0.1822.70 ▼13.20
Decision Box /wp-admin/options-general.php?page=entscheidungshilfe-decision-box-free/entscheidungshilfe.php3.0526.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Entscheidungshilfe free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.67 ▼0.981.73 ▲0.0243.23 ▲3.14
Dashboard /wp-admin2,229 ▲415.07 ▲0.16115.88 ▲0.8541.57 ▼4.30
Posts /wp-admin/edit.php2,117 ▲252.31 ▲0.2735.05 ▼6.8529.52 ▼8.00
Add New Post /wp-admin/post-new.php1,531 ▲1223.21 ▲0.09676.60 ▼8.6235.58 ▼21.76
Media Library /wp-admin/upload.php1,414 ▲324.41 ▲0.21109.10 ▲3.7647.32 ▲0.59
Decision Box /wp-admin/options-general.php?page=entscheidungshilfe-decision-box-free/entscheidungshilfe.php1,0762.1129.4034.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=entscheidungshilfe-decision-box-free/entscheidungshilfe.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=entscheidungshilfe-decision-box-free/entscheidungshilfe.php
    • > Notice in wp-content/plugins/entscheidungshilfe-decision-box-free/entscheidungshilfe.php+221
    Undefined variable: checked

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/entscheidungshilfe-decision-box-free/entscheidungshilfe.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=entscheidungshilfe-decision-box-free/entscheidungshilfe.php
    • > Network (severe)
    wp-content/plugins/entscheidungshilfe-decision-box-free/ehf-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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:
  • Screenshots: These screenshots require images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

entscheidungshilfe-decision-box-free/entscheidungshilfe.php 92% from 13 tests

This is the main PHP file of "Entscheidungshilfe free" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("entscheidungshilfe-decision-box-free.php" instead of "entscheidungshilfe.php")

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 detected338 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22510220
PO File1116194102
CSS10011
JavaScript1105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin