10% konvent

Code Review | Konvent

WordPress plugin Konvent scored 10% from 54 tests.

About plugin

  • Plugin page: konvent
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Oct 29, 2013
  • Number of updates: 13
  • Update frequency: every 11.9 days
  • Top authors: konvent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 787 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/konvent/eventlist/eventlist.php+41
    Declaration of Konvent_EventList::update($params) should be compatible with Konvent_Widget::update($targetUri, $optionName, array $params = Array, $ttl = 7200)

Server metrics [RAM: ▼1.91MB] [CPU: ▼56.08ms] Passed 4 tests

Analyzing server-side resources used by Konvent
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.24 ▼38.55
Dashboard /wp-admin2.10 ▼1.217.26 ▼46.70
Posts /wp-admin/edit.php2.10 ▼1.265.63 ▼44.21
Add New Post /wp-admin/post-new.php2.10 ▼3.795.76 ▼94.87
Media Library /wp-admin/upload.php2.10 ▼1.136.63 ▼28.55

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: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Konvent
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.14 ▼1.611.74 ▼0.2645.80 ▼6.22
Dashboard /wp-admin2,209 ▲185.88 ▲0.99109.40 ▲3.5943.34 ▼1.06
Posts /wp-admin/edit.php2,086 ▼02.01 ▼0.1334.75 ▼2.2332.66 ▲0.45
Add New Post /wp-admin/post-new.php1,533 ▲1923.35 ▲5.86669.01 ▼26.4057.37 ▲4.10
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.02107.63 ▲5.0046.31 ▲1.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/konvent/eventlist/eventlist.php+41
    Declaration of Konvent_EventList::update($params) should be compatible with Konvent_Widget::update($targetUri, $optionName, array $params = Array, $ttl = 7200)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/konvent/eventlist/views/widget.php
    • > /wp-content/plugins/konvent/tickettypes/views/widget.php
    • > /wp-content/plugins/konvent/tickettypes/views/content.php
    • > /wp-content/plugins/konvent/eventlist/views/list.php
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: apiData in wp-content/plugins/konvent/eventlist/views/list.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/konvent/eventlist/views/widget-control.php:2
    • > PHP Notice
      Undefined variable: apiData in wp-content/plugins/konvent/tickettypes/views/content.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Konvent_Widget' not found in wp-content/plugins/konvent/tickettypes/tickettypes.php:10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/konvent/eventlist/views/list.php on line 2
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/konvent/tickettypes/views/widget.php on line 2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/konvent/tickettypes/views/content.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/konvent/tickettypes/views/widget-control.php:2
    • > PHP Notice
      Undefined variable: apiData in wp-content/plugins/konvent/tickettypes/views/content.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Konvent_Widget' not found in wp-content/plugins/konvent/eventlist/eventlist.php:10

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #2 is missing in konvent/assets to your readme.txt
You can take inspiration from this readme.txt

konvent/konvent.php Passed 13 tests

This is the main PHP file of "Konvent" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
List of events from Konvent.se

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
There were no executable files found in this plugin273 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP116246210
CSS113063

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods2090.91%
▷ Protected methods14.55%
▷ Private methods14.55%
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
PNG images were not found in this plugin