84% include-fussball-de-widgets

Code Review | Include Fussball.de Widgets

WordPress plugin Include Fussball.de Widgets scored84%from 54 tests.

About plugin

  • Plugin page: include-fussball-...
  • Plugin version: 3.7.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2017
  • Latest release: Jul 4, 2023
  • Number of updates: 149
  • Update frequency: every 14.4 days
  • Top authors: mheob (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /22,062 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.89ms] Passed 4 tests

Analyzing server-side resources used by Include Fussball.de Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.50 ▼0.29
Dashboard /wp-admin3.45 ▲0.1548.87 ▼0.89
Posts /wp-admin/edit.php3.56 ▲0.2148.41 ▲4.29
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.26 ▼16.47
Media Library /wp-admin/upload.php3.37 ▲0.1535.69 ▼1.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_ifdw_fubade_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Include Fussball.de Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.76 ▲0.1845.27 ▲0.84
Dashboard /wp-admin2,192 ▲185.58 ▲0.0096.89 ▼7.9641.53 ▼1.98
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0536.14 ▼7.3830.71 ▼10.48
Add New Post /wp-admin/post-new.php6,194 ▲4,66019.20 ▲1.16905.84 ▲303.1659.97 ▼0.08
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.03100.95 ▲1.1743.56 ▲3.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_ifdw_fubade_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\FilterBase' not found in wp-content/plugins/include-fussball-de-widgets/Utils/PluginActions.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ActionBase' not found in wp-content/plugins/include-fussball-de-widgets/Utils/Textdomain.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Utils\\Logging\\LoggerBase' not found in wp-content/plugins/include-fussball-de-widgets/Utils/Logging/ConsoleLogger.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ActionBase' not found in wp-content/plugins/include-fussball-de-widgets/Widgets/Widgets.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/include-fussball-de-widgets/Widgets/FubadeWidget.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ActionBase' not found in wp-content/plugins/include-fussball-de-widgets/Frontend/Enqueue.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ActionBase' not found in wp-content/plugins/include-fussball-de-widgets/Backend/BorlabsCookie.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ActionBase' not found in wp-content/plugins/include-fussball-de-widgets/Blocks/Enqueue.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ITSB\\IFDW\\Infrastructure\\ShortcodeBase' not found in wp-content/plugins/include-fussball-de-widgets/Shortcodes/Fubade.php:21

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 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
6 plugin tags: gutenberg, football, fussball, widget, fussballde...

include-fussball-de-widgets/index.php 92% from 13 tests

This is the main PHP file of "Include Fussball.de Widgets" version 3.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("include-fussball-de-widgets.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin928 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP23196917798
PO File14347126
JavaScript2002
CSS1001
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes22
▷ Abstract classes418.18%
▷ Concrete classes1881.82%
▷ Final classes1266.67%
Methods62
▷ Static methods1016.13%
▷ Public methods4267.74%
▷ Protected methods58.06%
▷ Private methods1524.19%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants17.14%
▷ Class constants1392.86%
▷ Public constants538.46%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/cb-fubade.png1.85KB1.42KB▼ 23.05%