84% fussballde-widget-includer

Code Review | Fussball.de Widget Includer

WordPress plugin Fussball.de Widget Includer scored84%from 54 tests.

About plugin

  • Plugin page: fussballde-widget...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6
  • WordPress version: 6.3.1
  • First release: Jun 20, 2013
  • Latest release: Aug 23, 2013
  • Number of updates: 25
  • Update frequency: every 2.6 days
  • Top authors: Atlant1s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,004 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.46ms] Passed 4 tests

Analyzing server-side resources used by Fussball.de Widget Includer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.55 ▼5.70
Dashboard /wp-admin3.31 ▲0.0152.65 ▼1.35
Posts /wp-admin/edit.php3.36 ▲0.0149.29 ▼3.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.21 ▼11.69
Media Library /wp-admin/upload.php3.24 ▲0.0139.08 ▲0.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
fbdeWINC_data
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fussball.de Widget Includer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.23 ▼0.122.03 ▲0.2743.71 ▼0.93
Dashboard /wp-admin2,211 ▲345.61 ▼0.0491.53 ▼15.0739.84 ▼3.71
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0140.43 ▼1.4335.56 ▼1.32
Add New Post /wp-admin/post-new.php1,544 ▲1623.46 ▲0.12629.80 ▼34.5151.94 ▼5.70
Media Library /wp-admin/upload.php1,410 ▲134.19 ▲0.0694.93 ▼22.4343.42 ▼8.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/fussballde-widget-includer/admin_display.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fussballde-widget-includer/admin_display.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/fussballde-widget-includer/admin_display.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fussballde-widget-includer/fussballde-widget-includer.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: plugin, fussballde, post, shortcode, pages

fussballde-widget-includer/fussballde-widget-includer.php Passed 13 tests

"Fussball.de Widget Includer" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Vereinfachte Benutzung des Fussball.de-Widgets für dein Wordpress!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin263 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34373263

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.50
▷ Minimum class complexity13.00
▷ Maximum class complexity14.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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