68% webling

Code Review | Webling

WordPress plugin Webling scored68%from 54 tests.

About plugin

  • Plugin page: webling
  • Plugin version: 3.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jun 8, 2023
  • Number of updates: 176
  • Update frequency: every 14.4 days
  • Top authors: usystemsgmbh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /7,435 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.58MB] [CPU: ▼5.01ms] Passed 4 tests

Server-side resources used by Webling
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3847.89 ▲3.61
Dashboard /wp-admin3.96 ▲0.6254.65 ▼9.04
Posts /wp-admin/edit.php4.02 ▲0.6651.23 ▲0.66
Add New Post /wp-admin/post-new.php6.55 ▲0.6692.24 ▼15.25
Media Library /wp-admin/upload.php3.89 ▲0.6643.87 ▲9.42
Anmeldeformulare /wp-admin/admin.php?page=webling_page_main3.8038.86
Anmeldeformular erstellen /wp-admin/admin.php?page=webling_page_form_edit3.8340.95
Mitgliederlisten /wp-admin/admin.php?page=webling_page_memberlist_list3.8039.52
Einstellungen /wp-admin/admin.php?page=webling_page_settings3.8037.96
Mitgliederliste erstellen /wp-admin/admin.php?page=webling_page_memberlist_edit3.8336.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 102 new files
Database: 4 new tables, 8 new options
New tables
wp_webling_forms
wp_webling_cache
wp_webling_memberlists
wp_webling_form_fields
New WordPress options
webling-db-version
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
webling-options

Browser metrics Passed 4 tests

Webling: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.28 ▲0.121.90 ▼0.0937.67 ▼5.73
Dashboard /wp-admin2,227 ▲505.53 ▼0.1587.05 ▼11.1042.76 ▲1.22
Posts /wp-admin/edit.php2,135 ▲352.01 ▼0.0234.72 ▼2.6734.02 ▼2.38
Add New Post /wp-admin/post-new.php1,554 ▲2622.97 ▼0.33644.39 ▼24.4554.27 ▲5.66
Media Library /wp-admin/upload.php1,438 ▲384.18 ▲0.0197.70 ▼7.8341.01 ▼7.60
Anmeldeformulare /wp-admin/admin.php?page=webling_page_main9721.9028.7328.84
Anmeldeformular erstellen /wp-admin/admin.php?page=webling_page_form_edit8291.7728.0225.77
Mitgliederlisten /wp-admin/admin.php?page=webling_page_memberlist_list9691.9228.8928.11
Einstellungen /wp-admin/admin.php?page=webling_page_settings9111.9123.1029.87
Mitgliederliste erstellen /wp-admin/admin.php?page=webling_page_memberlist_edit8291.7623.6825.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_webling_form_fields
    • wp_webling_memberlists
    • wp_webling_forms
    • wp_webling_cache
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
Good news, no errors were detected

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webling/src/admin/admin.php
    • > /wp-content/plugins/webling/webling.php
  • 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webling/src/admin/errors/no_connection.html.php:1
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/API/../../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/API/CurlHttpTest.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webling/src/admin/errors/no_read_access.html.php:1
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/webling/vendor/usystems/webling-api-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/webling/vendor/usystems/webling-api-php/examples/image_proxy.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/API/../../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/API/CertificateTest.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'Webling\\CacheAdapters\\ICacheAdapter' not found in wp-content/plugins/webling/vendor/usystems/webling-api-php/src/Webling/CacheAdapters/FileCacheAdapter.php:7
    • > PHP Warning
      require_once(wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/Cache/../../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/Cache/FileCacheTest.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Webling\\API\\CurlHttp' not found in wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/API/Mocks/CurlHttpMock.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Webling\\API\\IResponse' not found in wp-content/plugins/webling/vendor/usystems/webling-api-php/src/Webling/API/Response.php:5
    • > PHP Warning
      require_once(wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/Cache/../../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/webling/vendor/usystems/webling-api-php/tests/Webling/Cache/CacheTest.php on line 4

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
8 plugin tags: anmeldung, webling, verein, vereinsverwaltung, mitglieder...

webling/webling.php Passed 13 tests

The main file in "Webling" v. 3.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Mitgliederdaten aus der Vereinssoftware webling.eu auf deiner Webseite anzeigen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected29,338 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55,1603,97720,757
PHP641,0229855,283
CSS81251302,587
HTML19616447
JSON400152
Markdown132070
YAML14021
XML10014
Bourne Shell2427

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.49
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces4
Interfaces4
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes26.45%
Methods272
▷ Static methods4516.54%
▷ Public methods23385.66%
▷ Protected methods217.72%
▷ Private methods186.62%
Functions29
▷ Named functions2689.66%
▷ Anonymous functions310.34%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/jquery-ui-1.12.1.custom/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
js/jquery-ui-1.12.1.custom/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
js/jquery-ui-1.12.1.custom/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
js/jquery-ui-1.12.1.custom/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
js/jquery-ui-1.12.1.custom/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%