68% fw-fussnoten

Code Review | FW Fussnoten

WordPress plugin FW Fussnoten scored68%from 54 tests.

About plugin

  • Plugin page: fw-fussnoten
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Feb 23, 2014
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: Tikolan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /925 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.91MB] [CPU: ▼35.56ms] Passed 4 tests

A check of server-side resources used by FW Fussnoten
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.37 ▼7.63
Dashboard /wp-admin3.04 ▼0.3025.81 ▼39.73
Posts /wp-admin/edit.php3.04 ▼0.3127.23 ▼28.37
Add New Post /wp-admin/post-new.php3.04 ▼2.8426.15 ▼63.53
Media Library /wp-admin/upload.php3.04 ▼0.1823.16 ▼10.59
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=fussnote3.0524.17
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=fussnote3.0527.12
hinzufügen /wp-admin/post-new.php?post_type=fussnote3.0421.80
Alle Fussnoten /wp-admin/edit.php?post_type=fussnote3.0427.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
category_children
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for FW Fussnoten
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.72 ▼0.642.12 ▲0.1044.50 ▲2.41
Dashboard /wp-admin2,239 ▲574.82 ▼1.0599.48 ▼15.0941.15 ▼2.49
Posts /wp-admin/edit.php2,119 ▲302.05 ▲0.0236.25 ▼4.5035.91 ▼0.57
Add New Post /wp-admin/post-new.php1,561 ▲4223.45 ▲0.45681.26 ▲61.5962.37 ▲9.94
Media Library /wp-admin/upload.php1,421 ▲364.18 ▼0.0697.03 ▼11.1043.03 ▼5.86
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=fussnote1,4762.1427.9833.90
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=fussnote1,3372.1428.0929.07
hinzufügen /wp-admin/post-new.php?post_type=fussnote2,9907.94176.8177.43
Alle Fussnoten /wp-admin/edit.php?post_type=fussnote1,1831.9933.0832.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'fussnote_option_menu' not found or invalid function name
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fussnote
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'fussnote_option_menu' not found or invalid function name
    • > GET request to /wp-admin/post-new.php?post_type=fussnote
    • > Notice in wp-content/plugins/fw-fussnoten/fwfussnoten.php+247
    Undefined variable: fcontent

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fw-fussnoten/fwfussnoten.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: content, fussnoten

fw-fussnoten/fwfussnoten.php 92% from 13 tests

The main file in "FW Fussnoten" v. 0.6.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fw-fussnoten.php" instead of "fwfussnoten.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19692192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Constants0
▷ Global constants00.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 are no PNG files in this plugin