79% bizzabo

Code Review | Bizzabo

WordPress plugin Bizzabo scored79%from 54 tests.

About plugin

  • Plugin page: bizzabo
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Oct 14, 2015
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: devopsbizzabo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,857 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.67ms] Passed 4 tests

An overview of server-side resources used by Bizzabo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2337.62 ▼7.59
Dashboard /wp-admin3.52 ▲0.2149.15 ▲1.68
Posts /wp-admin/edit.php3.63 ▲0.2750.37 ▲4.11
Add New Post /wp-admin/post-new.php6.10 ▲0.21102.31 ▼8.86
Media Library /wp-admin/upload.php3.44 ▲0.2142.97 ▲10.06

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_bizzabo-widget-page
widget_theysaidso_widget
widget_recent-comments
widget_bizzabo-widget-community-tab
db_upgraded
can_compress_scripts
widget_bizzabo-widget-tickets
widget_bizzabo-widget-agenda
...

Browser metrics Passed 4 tests

Bizzabo: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.41 ▼0.921.72 ▼0.5938.18 ▼5.92
Dashboard /wp-admin2,206 ▲184.88 ▼0.01107.65 ▼5.9837.95 ▼7.13
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0540.59 ▼4.2934.57 ▼0.69
Add New Post /wp-admin/post-new.php1,542 ▲2318.52 ▼4.87647.87 ▼10.3752.10 ▼5.98
Media Library /wp-admin/upload.php1,391 ▲34.15 ▲0.02110.77 ▲7.9048.48 ▲3.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_bizzabo-widget-community
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_bizzabo-widget-community-tab
    • db_upgraded
    • widget_bizzabo-widget-agenda
    • widget_bizzabo-widget-page
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bizzabo/templates/community.php
    • > /wp-content/plugins/bizzabo/templates/page.php
    • > /wp-content/plugins/bizzabo/templates/buttons.php
    • > /wp-content/plugins/bizzabo/templates/tickets.php
    • > /wp-content/plugins/bizzabo/templates/agenda.php
    • > /wp-content/plugins/bizzabo/templates/community_tab.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: tab_id in wp-content/plugins/bizzabo/templates/page.php on line 2
    • > PHP Notice
      Undefined variable: unique_name in wp-content/plugins/bizzabo/templates/agenda.php on line 2
    • > PHP Notice
      Undefined variable: unique_name in wp-content/plugins/bizzabo/templates/page.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bizzabo/includes/community_tab_widget.php:8
    • > PHP Notice
      Undefined variable: unique_name in wp-content/plugins/bizzabo/templates/community_tab.php on line 2
    • > PHP Notice
      Undefined variable: event_id in wp-content/plugins/bizzabo/templates/tickets.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bizzabo/includes/buttons_widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bizzabo/includes/community_widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bizzabo/bizzabo.php:334
    • > PHP Notice
      Undefined variable: event_id in wp-content/plugins/bizzabo/templates/community.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
5 plugin tags: widget, tickets, events, shortcode, bizzabo

bizzabo/bizzabo.php Passed 13 tests

The principal PHP file in "Bizzabo" v. 0.1.3 is loaded by WordPress automatically on each request
55 characters long description:
Easily embed the Bizzabo widgets on your Wordpress site

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 detected778 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14304800728
Markdown327050

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.75
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1221.43%
▷ Public methods5598.21%
▷ Protected methods11.79%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png21.24KB7.36KB▼ 65.37%
assets/icon-128x128.png12.12KB4.39KB▼ 63.79%