10% webshop-keurmerk

Code Review | Webshop Keurmerk

WordPress plugin Webshop Keurmerk scored10%from 54 tests.

About plugin

  • Plugin page: webshop-keurmerk
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 17, 2017
  • Latest release: Jan 20, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: riotweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /972 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/webshop-keurmerk/Webshop-keurmerk.php+101
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.66ms] Passed 4 tests

An overview of server-side resources used by Webshop Keurmerk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.56 ▼36.75
Dashboard /wp-admin2.09 ▼1.225.61 ▼42.30
Posts /wp-admin/edit.php2.09 ▼1.277.43 ▼45.60
Add New Post /wp-admin/post-new.php2.09 ▼3.806.10 ▼101.98
Media Library /wp-admin/upload.php2.09 ▼1.145.42 ▼32.70

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_keurmerk_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webshop Keurmerk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.391.67 ▼0.1041.13 ▼4.57
Dashboard /wp-admin2,206 ▲155.95 ▲1.08105.60 ▲2.5341.37 ▼1.51
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0835.10 ▼4.3634.05 ▼2.48
Add New Post /wp-admin/post-new.php1,535 ▲2123.34 ▲5.78587.97 ▼92.1451.60 ▲0.04
Media Library /wp-admin/upload.php1,391 ▼04.30 ▲0.17102.40 ▼3.4745.65 ▼9.27

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/webshop-keurmerk/Webshop-keurmerk.php+101
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_keurmerk_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webshop-keurmerk/Webshop-keurmerk.php

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: widgets, dutch, netherlands, webshop keurmerk, keurmerk...

webshop-keurmerk/Webshop-keurmerk.php 92% from 13 tests

Analyzing the main PHP file in "Webshop Keurmerk" version 1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("webshop-keurmerk.php" instead of "Webshop-keurmerk.php")

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 plugin63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1241563

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Webshop-Keurmerk-Groot.png14.75KB6.73KB▼ 54.36%
images/Webshop-Keurmerk-Klein.png4.90KB3.04KB▼ 37.92%
images/Webshop-Keurmerk-Normaal.png5.43KB3.31KB▼ 39.00%