10% wp-stadtklick

Code Review | WP-StadtKlick

WordPress plugin WP-StadtKlick scored10%from 54 tests.

About plugin

  • Plugin page: wp-stadtklick
  • Plugin version: 0.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-3.9
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: Feb 16, 2014
  • Number of updates: 29
  • Update frequency: every 9.9 days
  • Top authors: wuerzblog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /889 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-stadtklick/wp-stadtklick.php+55
    Undefined index: stadtklick_isbn

Server metrics [RAM: ▼1.90MB] [CPU: ▼50.22ms] Passed 4 tests

An overview of server-side resources used by WP-StadtKlick
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.388.46 ▼31.19
Dashboard /wp-admin2.11 ▼1.207.98 ▼41.34
Posts /wp-admin/edit.php2.11 ▼1.258.27 ▼44.58
Add New Post /wp-admin/post-new.php2.11 ▼3.787.17 ▼83.77
Media Library /wp-admin/upload.php2.11 ▼1.126.31 ▼30.74
WP-Stadtklick /wp-admin/options-general.php?page=wp_stadtklick2.117.55

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
wp_stadtklick_more_options

Browser metrics Passed 4 tests

Checking browser requirements for WP-StadtKlick
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.111.73 ▲0.1943.30 ▼4.18
Dashboard /wp-admin2,199 ▲195.58 ▼0.02106.95 ▲17.8048.99 ▲10.24
Posts /wp-admin/edit.php2,107 ▲42.00 ▼0.0339.25 ▼3.6536.63 ▼1.55
Add New Post /wp-admin/post-new.php1,529 ▲123.61 ▲0.53696.03 ▲17.9965.32 ▲8.89
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0598.33 ▼21.9947.22 ▼2.83
WP-Stadtklick /wp-admin/options-general.php?page=wp_stadtklick8262.0123.5225.47

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
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-stadtklick/wp-stadtklick.php+55
    Undefined index: stadtklick_isbn
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • wp_stadtklick_more_options
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp_stadtklick
    • > Notice in wp-content/plugins/wp-stadtklick/wp-stadtklick.php+55
    Undefined index: stadtklick_isbn
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_stadtklick
    • > Notice in wp-content/plugins/wp-stadtklick/wp-stadtklick.php+202
    Undefined variable: i

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-stadtklick/wp-stadtklick.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shop, deeplink, books, ecommerce, randomize

wp-stadtklick/wp-stadtklick.php Passed 13 tests

This is the main PHP file of "WP-StadtKlick" version 0.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Plugin für "Lass den Klick in deiner Stadt"

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
Everything looks great! No dangerous files found in this plugin183 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14513176
JavaScript1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues 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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected