78% 3cx-webinars

Code Review | 3CX Webinars

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

About plugin

  • Plugin page: 3cx-webinars
  • Plugin version: 18.2.4
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: Aug 16, 2023
  • Number of updates: 27
  • Update frequency: every 61.6 days
  • Top authors: wordpress3cx (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 7,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.66MB] [CPU: ▼17.98ms] Passed 4 tests

Analyzing server-side resources used by 3CX Webinars
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.45 ▼7.22
Dashboard /wp-admin3.34 ▲0.0444.43 ▲0.06
Posts /wp-admin/edit.php3.39 ▲0.0442.11 ▼10.56
Add New Post /wp-admin/post-new.php3.15 ▼2.7337.69 ▼54.19
Media Library /wp-admin/upload.php3.26 ▲0.0336.05 ▲3.37
Webinar Forms /wp-admin/admin.php?page=wp3cxw3.2734.14
Add New /wp-admin/admin.php?page=wp3cxw-new3.3334.75

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
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 /2,983 ▲22613.84 ▼0.4511.72 ▲9.6735.92 ▼5.76
Dashboard /wp-admin2,277 ▲1225.83 ▲0.2092.37 ▼3.3938.94 ▲2.63
Posts /wp-admin/edit.php2,164 ▲722.03 ▼0.0136.50 ▲0.1333.71 ▼2.09
Add New Post /wp-admin/post-new.php1,560 ▲4018.36 ▼4.95591.57 ▼56.5658.38 ▲1.54
Media Library /wp-admin/upload.php1,462 ▲774.18 ▼0.1298.29 ▲0.9140.37 ▼4.64
Webinar Forms /wp-admin/admin.php?page=wp3cxw1,1691.9628.6431.31
Add New /wp-admin/admin.php?page=wp3cxw-new4,2263.2572.8550.42

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/3cx-webinars/admin/edit-webinar-form.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > 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 'WP3CXW_PLUGIN_DIR/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/3cx-webinars/settings.php on line 3
    • > PHP Warning
      require_once(WP3CXW_PLUGIN_DIR/admin/includes/admin-functions.php): failed to open stream: No such file or directory 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 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 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
    • > 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 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 plugin_basename() in wp-content/plugins/3cx-webinars/wp-3cxwebinar.php:34

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: webinar, 3cx, web conference, video conferencing, web meeting

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

The principal PHP file in "3CX Webinars" v. 18.2.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3cx-webinars.php" instead of "wp-3cxwebinar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions 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 brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
includes/css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
includes/css/images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%
includes/css/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
images/flags.png57.07KB16.82KB▼ 70.53%
includes/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%