74% manager-for-galene-videoconference

Code Review | Manager for Galène videoconference

WordPress plugin Manager for Galène videoconference scored74%from 54 tests.

About plugin

  • Plugin page: manager-for-galen...
  • Plugin version: 0.5.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: theripper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /300 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.23MB] [CPU: ▼43.07ms] Passed 4 tests

This is a short check of server-side resources used by Manager for Galène videoconference
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7212.23 ▼25.17
Dashboard /wp-admin2.78 ▼0.5315.37 ▼31.86
Posts /wp-admin/edit.php2.78 ▼0.5819.44 ▼30.76
Add New Post /wp-admin/post-new.php2.78 ▼3.1117.26 ▼84.49
Media Library /wp-admin/upload.php2.78 ▼0.4519.07 ▼15.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 431 new files
Database: 4 new tables, 6 new options
New tables
wp_galene_settings
wp_galene_room
wp_galene_access
wp_galene_user
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Manager for Galène videoconference
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.32 ▼1.131.89 ▲0.0341.15 ▼3.16
Dashboard /wp-admin2,209 ▲214.84 ▼0.05104.32 ▼2.2339.18 ▼3.96
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0034.45 ▼6.5233.94 ▼1.83
Add New Post /wp-admin/post-new.php1,542 ▲818.43 ▼4.60615.82 ▲15.8554.41 ▲3.64
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0092.91 ▼7.7841.04 ▼2.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/manager-for-galene-videoconference/galene-manager.php+147
    Undefined index: galene_action
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 175× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Base' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/Prime.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\OpenSSH' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/OpenSSH.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect163k1' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistk163.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\RSA' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/PrivateKey.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\BCMath\\Base' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/EvalBarrett.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manager-for-galene-videoconference/includes/class-galmgr-template-registrar.php:152
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\OpenSSL' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/OpenSSL.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/PKCS8.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\JWK' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/JWK.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\et\\SSH2' not found in wp-content/plugins/manager-for-galene-videoconference/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: videoconference, lectures, conferences, meetings

manager-for-galene-videoconference/galene-manager.php 92% from 13 tests

Analyzing the main PHP file in "Manager for Galène videoconference" version 0.5.0
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("manager-for-galene-videoconference.php" instead of "galene-manager.php")

Code Analysis 97% from 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 plugin133,310 lines of code in 415 files:
LanguageFilesBlank linesComment linesLines of code
JSON60094,587
PHP3827,41122,55036,952
Twig1012001,054
PO File1153243345
JavaScript15916187
CSS428892
SVG80059
XML10019
Markdown13012
Bourne Shell1203

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.53
▷ Minimum class complexity1.00
▷ Maximum class complexity670.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces41
Interfaces3
Traits4
Classes352
▷ Abstract classes20859.09%
▷ Concrete classes14440.91%
▷ Final classes2517.36%
Methods1,563
▷ Static methods52133.33%
▷ Public methods1,10970.95%
▷ Protected methods21914.01%
▷ Private methods23515.04%
Functions35
▷ Named functions25.71%
▷ Anonymous functions3394.29%
Constants319
▷ Global constants123.76%
▷ Class constants30796.24%
▷ Public constants307100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/videocall-pngrepo-com.png12.01KB7.96KB▼ 33.72%