83% bbb-administration-panel

Code Review | BBB Administration Panel

WordPress plugin BBB Administration Panel scored83%from 54 tests.

About plugin

  • Plugin page: bbb-administratio...
  • Plugin version: 1.1.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Feb 2, 2022
  • Number of updates: 33
  • Update frequency: every 44.2 days
  • Top authors: albertosgz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /17,174 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼3.10ms] 75% from 4 tests

A check of server-side resources used by BBB Administration Panel
Please fix the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 673.44ms on /wp-admin/options-general.php?page=bigbluebutton_general)
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3550.82 ▼0.34
Dashboard /wp-admin3.65 ▲0.3555.79 ▼5.66
Posts /wp-admin/edit.php3.76 ▲0.4153.80 ▼4.02
Add New Post /wp-admin/post-new.php6.23 ▲0.3598.94 ▼2.37
Media Library /wp-admin/upload.php3.57 ▲0.3447.08 ▲7.65
BBB Admin Panel /wp-admin/options-general.php?page=bigbluebutton_general3.56673.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: 2 new tables, 10 new options
New tables
wp_bigbluebutton
wp_bigbluebutton_logs
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
bbb_admin_panel_salt
bbb_admin_panel_url
widget_recent-posts
bbb_admin_panel_plugin_version
widget_theysaidso_widget
theysaidso_admin_options
bbb_admin_panel_permissions

Browser metrics Passed 4 tests

This is an overview of browser requirements for BBB Administration Panel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9520.91 ▲6.3268.74 ▲66.7438.84 ▼7.19
Dashboard /wp-admin2,214 ▲379.04 ▲3.46156.52 ▲61.8637.40 ▼5.31
Posts /wp-admin/edit.php2,116 ▲166.33 ▲4.33101.35 ▲64.5834.56 ▲4.57
Add New Post /wp-admin/post-new.php1,699 ▲17327.06 ▲5.05691.98 ▼47.9834.76 ▼21.85
Media Library /wp-admin/upload.php1,416 ▲198.15 ▲3.96172.22 ▲42.7242.83 ▼12.57
BBB Admin Panel /wp-admin/options-general.php?page=bigbluebutton_general1,1676.1289.1967.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bbb-administration-panel/bigbluebutton-plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Attributes that require attention: The official readme.txt might help

bbb-administration-panel/bigbluebutton-plugin.php 92% from 13 tests

Analyzing the main PHP file in "BBB Administration Panel" version 1.1.22
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbb-administration-panel.php" instead of "bigbluebutton-plugin.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 detected2,646 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24245231,966
JavaScript22441524
CSS23313156

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods2696.30%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
DataTables/DataTables-1.10.16/images/sort_both.png0.20KB0.29KB0.00%
DataTables/DataTables-1.10.16/images/sort_desc_disabled.png0.14KB0.25KB0.00%
DataTables/DataTables-1.10.16/images/sort_desc.png0.15KB0.25KB0.00%
DataTables/DataTables-1.10.16/images/sort_asc.png0.16KB0.25KB0.00%
DataTables/DataTables-1.10.16/images/sort_asc_disabled.png0.14KB0.25KB0.00%