10% verowa-connect

Code Review | Verowa Connect

WordPress plugin Verowa Connect scored10%from 54 tests.

About plugin

  • Plugin page: verowa-connect
  • Plugin version: 2.14.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 179
  • Update frequency: every 15.9 days
  • Top authors: pictureplanet (88.27%)michaelpfister (12.29%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /5,880 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/verowa-connect/general/wp-filter.php+29
    Undefined variable: wp_version

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.26ms] Passed 4 tests

A check of server-side resources used by Verowa Connect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1346.03 ▲7.74
Dashboard /wp-admin3.42 ▲0.0748.02 ▼15.46
Posts /wp-admin/edit.php3.53 ▲0.1846.47 ▼1.23
Add New Post /wp-admin/post-new.php5.62 ▼0.27329.26 ▲225.34
Media Library /wp-admin/upload.php3.34 ▲0.1137.01 ▲3.91
Persons /wp-admin/edit.php?post_type=verowa_person3.3836.00
Verowa templates /wp-admin/admin.php?page=verowa-options-templates3.3328.23
Events /wp-admin/edit.php?post_type=verowa_event3.3835.66
Verowa options /wp-admin/options-general.php?page=verowa-options3.3131.75
Verowa: Agenda filter /wp-admin/options-general.php?page=verowa-options-dropdowns3.2934.70
Verowa Anmeldungen /wp-admin/options-general.php?page=subscriptions_settings3.3129.97

Server storage [IO: ▲1.20MB] [DB: ▲0.09MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 99 new files
Database: 8 new tables, 15 new options
New tables
wp_verowa_log
wp_verowa_temp_userdata
wp_verowa_person_groups
wp_verowa_person
wp_verowa_templates
wp_verowa_events
wp_verowa_roster_duties
wp_verowa_translations
New WordPress options
widget_verowa_event_filter_widget
widget_theysaidso_widget
widget_verowa_eventlist_widget
how_many_verowa_dropdowns
verowa_default_eventdetails_template
verowa_connect_db_version
widget_verowa_persons_widget
verowa_default_personlist_template
can_compress_scripts
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Verowa Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22713.61 ▼0.7612.75 ▲10.8242.39 ▼0.94
Dashboard /wp-admin2,238 ▲645.59 ▼0.0387.27 ▼12.4658.51 ▲10.80
Posts /wp-admin/edit.php2,156 ▲562.20 ▲0.2337.11 ▲0.8334.42 ▼3.68
Add New Post /wp-admin/post-new.php6,665 ▲5,13927.63 ▲4.871,007.94 ▲385.2972.62 ▼9.75
Media Library /wp-admin/upload.php1,449 ▲554.23 ▲0.06101.30 ▲1.8573.07 ▲27.22
Persons /wp-admin/edit.php?post_type=verowa_person1,1172.1532.1730.71
Verowa templates /wp-admin/admin.php?page=verowa-options-templates1,1521.9432.2331.31
Events /wp-admin/edit.php?post_type=verowa_event1,1222.1432.3331.93
Verowa options /wp-admin/options-general.php?page=verowa-options1,0171.8024.7926.64
Verowa: Agenda filter /wp-admin/options-general.php?page=verowa-options-dropdowns9231.8831.1828.34
Verowa Anmeldungen /wp-admin/options-general.php?page=subscriptions_settings9992.0127.2529.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 tables in the database
    • wp_verowa_log
    • wp_verowa_temp_userdata
    • wp_verowa_person
    • wp_verowa_person_groups
    • wp_verowa_templates
    • wp_verowa_roster_duties
    • wp_verowa_events
    • wp_verowa_translations
  • Zombie WordPress options detected upon uninstall: 15 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • verowa_default_personlist_template
    • theysaidso_admin_options
    • verowa_default_persondetails_template
    • how_many_verowa_dropdowns
    • widget_recent-posts
    • verowa_connect_db_version
    • verowa_default_eventdetails_template
    • verowa_default_eventlist_template
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=verowa-options-dropdowns
    • > Notice in wp-content/plugins/verowa-connect/events/agenda-dropdowns.php+125
    Undefined offset: 0
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=verowa-options-dropdowns
    • > Notice in wp-content/plugins/verowa-connect/events/agenda-dropdowns.php+125
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/verowa-connect/admin/class-verowa-templates-list.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/verowa-connect/functions/general.php:887
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/functions/lite-speed.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/events/event-list-widget.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_shortcode_regex() in wp-content/plugins/verowa-connect/includes/presets.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_shortcode_regex() in wp-content/plugins/verowa-connect/includes/presets.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/admin/admin-pages.php:308
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/admin/save-post-action.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/persons/show-persons-widget.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verowa-connect/general/update-cron.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=verowa-options-templates
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'initialize')" "TypeError: Cannot read properties of undefined (reading 'initialize')\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=verowa-options-templates:209:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=verowa-options-templates
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'initialize')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

verowa-connect/verowa-connect.php 85% from 13 tests

"Verowa Connect" version 2.14.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "5.2")
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin21,557 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP542,7203,43910,609
JavaScript81,9261,9299,115
CSS112111401,833

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.11
▷ Minimum class complexity2.00
▷ Maximum class complexity153.00
Average method complexity5.51
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods70
▷ Static methods57.14%
▷ Public methods5375.71%
▷ Protected methods00.00%
▷ Private methods1724.29%
Functions245
▷ Named functions23294.69%
▷ Anonymous functions135.31%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/datepicker/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
images/datepicker/ui-bg_inset-hard_100_fcfdfd_1x100.png0.29KB0.10KB▼ 65.41%
images/datepicker/ui-bg_gloss-wave_55_5c9ccc_500x100.png5.69KB2.08KB▼ 63.46%
images/datepicker/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
images/datepicker/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%