79% wp-gotowebinar

Code Review | WP GoToWebinar

WordPress plugin WP GoToWebinar scored 79% from 54 tests.

About plugin

  • Plugin page: wp-gotowebinar
  • Plugin version: 14.46
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Aug 29, 2023
  • Number of updates: 252
  • Update frequency: every 10.5 days
  • Top authors: northernbeacheswebsites (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active / 44,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.61MB] [CPU: ▼0.45ms] Passed 4 tests

Analyzing server-side resources used by WP GoToWebinar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6445.77 ▲6.18
Dashboard /wp-admin3.95 ▲0.6551.65 ▲3.17
Posts /wp-admin/edit.php4.00 ▲0.6548.64 ▼0.44
Add New Post /wp-admin/post-new.php6.47 ▲0.5890.07 ▼8.45
Media Library /wp-admin/upload.php3.81 ▲0.5837.23 ▲3.90
WP GoToWebinar /wp-admin/options-general.php?page=wp-gotowebinar3.8137.70

Server storage [IO: ▲4.15MB] [DB: ▲0.20MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 8 new options
New WordPress options
widget_gotowebinar_widget
widget_theysaidso_widget
widget_recent-posts
gotowebinar_connection_log
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP GoToWebinar: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.35 ▼1.021.95 ▲0.2644.72 ▲4.73
Dashboard /wp-admin2,222 ▲315.09 ▼0.79129.19 ▲28.4639.16 ▼7.25
Posts /wp-admin/edit.php2,105 ▲162.22 ▲0.2359.57 ▲18.2034.63 ▲0.38
Add New Post /wp-admin/post-new.php1,522 ▲817.92 ▲0.19681.52 ▲9.9778.12 ▲23.93
Media Library /wp-admin/upload.php1,398 ▲104.46 ▲0.16140.15 ▲31.4147.45 ▲1.88
WP GoToWebinar /wp-admin/options-general.php?page=wp-gotowebinar5,58228.92721.78209.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • gotowebinar_connection_log
    • can_compress_scripts
    • widget_gotowebinar_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-gotowebinar
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php+1576
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-gotowebinar
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php+1504
    Undefined index: error
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-gotowebinar
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php+1505
    Undefined index: error_description

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
Please take a closer look at the following
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-gotowebinar/inc/shortcode-registration.php:607
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gotowebinar/inc/registration.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_time() in wp-content/plugins/wp-gotowebinar/inc/widget-output.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gotowebinar/inc/clear-cache.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-gotowebinar/inc/shortcode-calendar.php:163
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-gotowebinar/inc/shortcode.php:214
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-gotowebinar/inc/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gotowebinar/inc/visual-composer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-gotowebinar/inc/widget-options.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: gotowebinar, constant contact, mailchimp, wpbakery page builder, widget...

wp-gotowebinar/wp-gotowebinar.php Passed 13 tests

This is the main PHP file of "WP GoToWebinar" version 14.46, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
97 characters long description:
Show upcoming GoToWebinars on any post or page or in a widget and register users on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected22,239 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
JavaScript141,8366077,587
PHP131,5694063,539
CSS10224361,094
PO File83603821,065

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions132
▷ Named functions13199.24%
▷ Anonymous functions10.76%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/tinymce.png36.82KB12.28KB▼ 66.64%
inc/images/visual-composer-icon.png1.21KB0.61KB▼ 49.23%