84% webd-woo-event-bookings

Code Review | WEBD Woo Event Bookings

WordPress plugin WEBD Woo Event Bookings scored84%from 54 tests.

About plugin

  • Plugin page: webd-woo-event-bo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 21, 2021
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: mbp107 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WEBD Woo Event Bookings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.54 ▲3.36
Dashboard /wp-admin3.31 ▲0.0044.05 ▼9.83
Posts /wp-admin/edit.php3.36 ▲0.0048.61 ▲0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.23 ▼0.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.13 ▼0.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 327 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WEBD Woo Event Bookings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.66 ▼0.611.86 ▲0.1446.53 ▲2.36
Dashboard /wp-admin2,210 ▲195.83 ▲0.9597.54 ▼7.5443.40 ▲2.45
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0440.72 ▲2.8636.85 ▲2.21
Add New Post /wp-admin/post-new.php1,518 ▼1517.67 ▼5.27621.11 ▼59.4550.47 ▼0.99
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0496.05 ▼18.6240.00 ▼11.52

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
The following issues need your attention
  • 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-search.php:322
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/timeline.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webd-woo-event-bookings/includes/admin/Meta-Boxes/classes.fields.php:633
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webd-woo-event-bookings/includes/class-email-reminder.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/webd_view-sc-grid.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/webd-woo-event-bookings/templates/webd_view/webd-view-listing.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-grid.php:122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-carousel.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/venues-sc.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/webd-woo-event-bookings/shortcode/content/content-grid-classic.php:3

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

webd-woo-event-bookings/webd-event-bookings-daywise-cost.php 92% from 13 tests

This is the main PHP file of "WEBD Woo Event Bookings" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("webd-woo-event-bookings.php" instead of "webd-event-bookings-daywise-cost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected52,970 lines of code in 271 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1462,0023,54122,464
PHP571,2911,04516,989
CSS316146149,378
Sass1328241,560
LESS1328341,550
SVG100655
JSON600184
Markdown127072
PO File2162063
Bourne Shell124055

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity23.94
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes12.86%
▷ Concrete classes3497.14%
▷ Final classes00.00%
Methods213
▷ Static methods20.94%
▷ Public methods20696.71%
▷ Protected methods31.41%
▷ Private methods41.88%
Functions179
▷ Named functions179100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
shortcode/markerclusterer/images/people45.png2.03KB1.75KB▼ 13.68%
shortcode/markerclusterer/images/people35.png1.36KB1.43KB0.00%
includes/admin/Meta-Boxes/css/select-js-css/jquery-ui/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
includes/admin/Meta-Boxes/css/select-js-css/jquery-ui/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
shortcode/markerclusterer/images/heart50.png2.93KB1.96KB▼ 33.08%