68% webwinkelkeur

Code Review | WebwinkelKeur: Webshop keurmerk & reviews for WordPress

WordPress plugin WebwinkelKeur: Webshop keurmerk & reviews for WordPress scored68%from 54 tests.

About plugin

  • Plugin page: webwinkelkeur
  • Plugin version: 3.31
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Dec 19, 2013
  • Latest release: Nov 23, 2023
  • Number of updates: 117
  • Update frequency: every 31.0 days
  • Top authors: kiboit (61.54%)apeschar (39.32%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /77,964 total downloads

Benchmarks

Plugin footprint 65% 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.03MB] [CPU: ▼3.57ms] Passed 4 tests

A check of server-side resources used by WebwinkelKeur: Webshop keurmerk & reviews for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.98 ▼3.99
Dashboard /wp-admin3.34 ▼0.0048.79 ▼14.75
Posts /wp-admin/edit.php3.39 ▲0.0451.33 ▼1.21
Add New Post /wp-admin/post-new.php5.94 ▲0.06101.10 ▲7.81
Media Library /wp-admin/upload.php3.26 ▲0.0439.25 ▲5.69
WebwinkelKeur /wp-admin/options-general.php?page=webwinkelkeur3.3638.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables
wp_webwinkelkeur_invite_error
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
webwinkelkeur_last_notice_version
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WebwinkelKeur: Webshop keurmerk & reviews for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5214.54 ▲0.191.59 ▼0.1736.27 ▼7.63
Dashboard /wp-admin2,204 ▲335.64 ▲0.1096.28 ▲4.0250.57 ▲6.65
Posts /wp-admin/edit.php2,112 ▲121.95 ▼0.0739.33 ▲0.9434.99 ▲4.48
Add New Post /wp-admin/post-new.php1,534 ▲523.52 ▲0.16680.25 ▲78.7855.92 ▲5.18
Media Library /wp-admin/upload.php1,412 ▲124.13 ▼0.0695.87 ▼0.4440.95 ▲0.00
WebwinkelKeur /wp-admin/options-general.php?page=webwinkelkeur1,1041.8627.3428.82

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
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_webwinkelkeur_invite_error
  • This plugin does not fully uninstall, leaving 7 options in the database
    • webwinkelkeur_last_notice_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php on line 1
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/webwinkelkeur/common/templates/options.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Valued\\WordPress\\register_activation_hook() in wp-content/plugins/webwinkelkeur/common/src/BasePlugin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to a member function getName() on null in wp-content/plugins/webwinkelkeur/common/templates/options.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Valued\\WordPress\\BasePlugin' not found in wp-content/plugins/webwinkelkeur/src/Plugin.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/webwinkelkeur/common/templates/woocommerce_review_sync_status.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function getDashboardDomain() on null in wp-content/plugins/webwinkelkeur/common/templates/sidebar.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: keurmerk, webwinkelkeur, reviews, woocommerce, webwinkel keurmerk...

webwinkelkeur/webwinkelkeur.php 92% from 13 tests

The principal PHP file in "WebwinkelKeur: Webshop keurmerk & reviews for WordPress" v. 3.31 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 425 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,960 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16222311,607
PO File2105220347
JavaScript1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.67
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods108
▷ Static methods21.85%
▷ Public methods6358.33%
▷ Protected methods32.78%
▷ Private methods4238.89%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants787.50%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected