82% 3cx-webinars

Code Review | 3CX Webinars

WordPress plugin 3CX Webinars scored 82% from 54 tests.

About plugin

  • Plugin page: 3cx-webinars
  • Plugin version: 18.2.3
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 5.9.2
  • First release: Jan 28, 2019
  • Latest release: Nov 16, 2021
  • Number of updates: 24
  • Update frequency: every 42.7 days
  • Top authors: wordpress3cx (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 5,963 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼311.17ms] Passed 4 tests

Analyzing server-side resources used by 3CX Webinars
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.2959.31 ▲10.39
Dashboard /wp-admin3.71 ▲0.3137.51 ▲3.77
Posts /wp-admin/edit.php3.94 ▲0.3039.61 ▲0.61
Add New Post /wp-admin/post-new.php3.54 ▼3.4330.04 ▼1,251.80
Media Library /wp-admin/upload.php3.65 ▲0.3627.95 ▲2.75
Add New /wp-admin/admin.php?page=wp3cxw-new3.6826.78
Webinar Forms /wp-admin/admin.php?page=wp3cxw3.6926.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 1 new option
New WordPress options
wp3cxw

Browser metrics Passed 4 tests

3CX Webinars: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,021 ▲26716.93 ▲1.2311.72 ▲5.913.02 ▲0.17
Dashboard /wp-admin2,974 ▲1166.04 ▼0.10121.47 ▼13.76156.06 ▼12.78
Posts /wp-admin/edit.php2,769 ▲843.25 ▲0.0164.07 ▼9.06140.38 ▼15.44
Add New Post /wp-admin/post-new.php1,736 ▲2521.11 ▲0.08435.30 ▼5.38168.56 ▲9.18
Media Library /wp-admin/upload.php1,780 ▲825.51 ▼0.02148.39 ▲4.47185.36 ▼1.62
Add New /wp-admin/admin.php?page=wp3cxw-new4,5883.53108.24177.54
Webinar Forms /wp-admin/admin.php?page=wp3cxw1,4592.8159.53127.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 25% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/3cx-webinars/admin/edit-webinar-form.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/3cx-webinars/includes/controller.php:3
    • > PHP Warning
      require_once(WP3CXW_PLUGIN_DIR/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/3cx-webinars/settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/3cx-webinars/includes/capabilities.php:3
    • > PHP Warning
      Use of undefined constant WP3CXW_PLUGIN_DIR - assumed 'WP3CXW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/3cx-webinars/admin/admin.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/3cx-webinars/admin/includes/class-webinar-forms-list-table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/3cx-webinars/admin/includes/class-webinar-forms-list-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/3cx-webinars/admin/includes/class-webinar-forms-list-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'WP3CXW_PLUGIN_DIR/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/3cx-webinars/settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/3cx-webinars/wp-3cxwebinar.php:34
    • > PHP Warning
      Use of undefined constant WP3CXW_PLUGIN_DIR - assumed 'WP3CXW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/3cx-webinars/settings.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wp3cxw
    • > Intervention (severe) in unknown
    /wp-admin/admin.php?page=wp3cxw-new - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: webinar, web conference, web meeting, 3cx, video conferencing

3cx-webinars/wp-3cxwebinar.php 85% from 13 tests

The principal PHP file in "3CX Webinars" v. 18.2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("3cx-webinars.php" instead of "wp-3cxwebinar.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected10,173 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PO File141,3441,4773,744
PHP19564542,408
JavaScript41401002,043
CSS7147791,978

PHP code Passed 2 tests

A short 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.33
Average class complexity17.83
▷ Minimum class complexity4.00
▷ Maximum class complexity39.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods60
▷ Static methods1016.67%
▷ Public methods5693.33%
▷ Protected methods00.00%
▷ Private methods46.67%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants964.29%
▷ Class constants535.71%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags.png57.07KB16.82KB▼ 70.53%
includes/css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
includes/css/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
includes/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
images/blank.png0.90KB0.09KB▼ 89.72%