78% wiwi-websolutions-bookingsystem

Code Review | Wiwi Websolutions Bookingsystem

WordPress plugin Wiwi Websolutions Bookingsystem scored78%from 54 tests.

About plugin

  • Plugin page: wiwi-websolutions...
  • Plugin version: 1.1.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Jan 23, 2023
  • Number of updates: 27
  • Update frequency: every 6.9 days
  • Top authors: supportwi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.93ms] Passed 4 tests

A check of server-side resources used by Wiwi Websolutions Bookingsystem
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.00 ▲1.19
Dashboard /wp-admin3.31 ▲0.0052.08 ▲2.22
Posts /wp-admin/edit.php3.36 ▲0.0051.40 ▲3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.51 ▼18.85
Media Library /wp-admin/upload.php3.23 ▲0.0038.91 ▲5.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 562 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wiwi Websolutions Bookingsystem
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.141.55 ▼0.2642.44 ▼1.13
Dashboard /wp-admin2,206 ▲185.91 ▲1.03108.85 ▲4.4741.42 ▼0.78
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0239.50 ▼1.6734.38 ▼3.39
Add New Post /wp-admin/post-new.php1,533 ▲523.24 ▲4.70668.71 ▲48.3358.01 ▲0.83
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0493.45 ▼7.8240.44 ▼2.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 115× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Container/Broken_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Container/Container.php:18
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Datastore/Comment_Meta_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Level_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wiwi-websolutions-bookingsystem/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

wiwi-websolutions-bookingsystem/wiwi-websolutions-bookingsystem.php Passed 13 tests

The primary PHP file in "Wiwi Websolutions Bookingsystem" version 1.1.0 is used by WordPress to initiate all plugin functionality
60 characters long description:
Plugin that connects to the Wiwi Websolutions Bookingsystem.

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
No dangerous file extensions were detected48,873 lines of code in 506 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2595,9489,43831,565
PHP1502,5916,6669,710
CSS124681,2462,946
PO File278801,0972,341
Sass5035151,807
JSON400360
Markdown4410144

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.32
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces25
Interfaces5
Traits0
Classes121
▷ Abstract classes119.09%
▷ Concrete classes11090.91%
▷ Final classes10.91%
Methods898
▷ Static methods9010.02%
▷ Public methods72981.18%
▷ Protected methods16518.37%
▷ Private methods40.45%
Functions119
▷ Named functions3630.25%
▷ Anonymous functions8369.75%
Constants32
▷ Global constants928.12%
▷ Class constants2371.88%
▷ Public constants23100.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
There were not PNG files found in your plugin