10% reiseblog-widgets

Code Review | Reiseblog Widgets

WordPress plugin Reiseblog Widgets scored10%from 54 tests.

About plugin

  • Plugin page: reiseblog-widgets
  • Plugin version: 1.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Dec 1, 2014
  • Number of updates: 33
  • Update frequency: every 14.0 days
  • Top authors: Reisetiger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /8,418 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/reiseblog-widgets/includes/widget-reisetiger.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_widget_reisetiger has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼57.86ms] Passed 4 tests

Analyzing server-side resources used by Reiseblog Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.326.06 ▼42.60
Dashboard /wp-admin2.17 ▼1.146.17 ▼51.09
Posts /wp-admin/edit.php2.17 ▼1.196.08 ▼44.96
Add New Post /wp-admin/post-new.php2.17 ▼3.726.60 ▼92.77
Media Library /wp-admin/upload.php2.17 ▼1.066.23 ▼28.37
Reiseblog Widgets /wp-admin/options-general.php?page=reiseblogwidgets2.175.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
widget_reisetiger
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_reisecountdown

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reiseblog Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.34 ▼0.021.85 ▼0.3041.04 ▼2.08
Dashboard /wp-admin2,199 ▲225.64 ▲0.0885.28 ▼10.7542.01 ▲0.60
Posts /wp-admin/edit.php2,104 ▲71.99 ▼0.0233.18 ▼3.9136.02 ▲0.34
Add New Post /wp-admin/post-new.php1,531 ▲523.26 ▼0.27651.43 ▼50.8858.92 ▲2.85
Media Library /wp-admin/upload.php1,404 ▲44.24 ▼0.10100.49 ▼4.6346.98 ▲4.28
Reiseblog Widgets /wp-admin/options-general.php?page=reiseblogwidgets7812.0223.4629.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/reiseblog-widgets/includes/widget-reisetiger.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_widget_reisetiger has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_reisecountdown
    • widget_reisetiger
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=reiseblogwidgets
    • > Deprecated in wp-content/plugins/reiseblog-widgets/includes/widget-reisetiger.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_widget_reisetiger has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=reiseblogwidgets
    • > Deprecated in wp-content/plugins/reiseblog-widgets/includes/widget-reisecountdown.php+389
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=reiseblogwidgets
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in wp_widget_reisetiger is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=reiseblogwidgets
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in wp_widget_reisecountdown is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=reiseblogwidgets
    • > Notice in wp-content/plugins/reiseblog-widgets/reiseblog-widgets.php+66
    Undefined variable: outputa

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reiseblog-widgets/includes/widget-reisecountdown.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reiseblog-widgets/includes/widget-reisetiger.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Reise-Countdown Einstellungen), #2 (Reise-Countdown in der Sidebar), #3 (Reise-Schnäppchen Einstellungen), #4 (Reise-Schnäppchen in der Sidebar)
The official readme.txt might help

reiseblog-widgets/reiseblog-widgets.php 92% from 13 tests

This is the main PHP file of "Reiseblog Widgets" version 1.4.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 270 characters long)

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
Success! There were no dangerous files found in this plugin1,613 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript478184734
PHP39157543
CSS2103336

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.15
Average class complexity23.50
▷ Minimum class complexity22.00
▷ Maximum class complexity25.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png5.39KB3.56KB▼ 33.93%
screenshot-1.png29.59KB15.79KB▼ 46.63%
screenshot-3.png17.88KB10.09KB▼ 43.54%
screenshot-4.png5.00KB2.82KB▼ 43.68%