84% bumbal

Code Review | Bumbal connector

WordPress plugin Bumbal connector scored84%from 54 tests.

About plugin

  • Plugin page: bumbal
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Jul 20, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: itbumbal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /189 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.37ms] Passed 4 tests

Analyzing server-side resources used by Bumbal connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.95 ▲2.40
Dashboard /wp-admin3.33 ▲0.0350.02 ▼3.75
Posts /wp-admin/edit.php3.39 ▲0.0345.92 ▼7.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.62 ▼7.11
Media Library /wp-admin/upload.php3.26 ▲0.0339.70 ▲0.79

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
bumbal_timeslot_position
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bumbal connector
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.67 ▼0.921.94 ▼0.0445.29 ▼6.93
Dashboard /wp-admin2,209 ▲215.77 ▲0.90117.60 ▲3.4147.76 ▲1.59
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0538.70 ▼2.3137.66 ▼1.08
Add New Post /wp-admin/post-new.php1,514 ▼617.44 ▼3.79731.60 ▲57.9060.87 ▲3.72
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.21118.38 ▼5.6648.85 ▼2.28

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bumbal/public/partials/bumbal-public-time-slot.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/bumbal/admin/class-bumbal-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/bumbal/public/partials/bumbal-public-timeslot-include-times.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bumbal/public/partials/bumbal-public-timeslot-days-only.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bumbal/admin/partials/bumbal-show-status.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

bumbal/bumbal.php 92% from 13 tests

This is the main PHP file of "Bumbal connector" 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
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,910 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP163019201,501
PO File1139171371
JavaScript24031
CSS2147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods66
▷ Static methods2131.82%
▷ Public methods5075.76%
▷ Protected methods00.00%
▷ Private methods1624.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin