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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.29 | 59.31 ▲10.39 |
Dashboard /wp-admin | 3.71 ▲0.31 | 37.51 ▲3.77 |
Posts /wp-admin/edit.php | 3.94 ▲0.30 | 39.61 ▲0.61 |
Add New Post /wp-admin/post-new.php | 3.54 ▼3.43 | 30.04 ▼1,251.80 |
Media Library /wp-admin/upload.php | 3.65 ▲0.36 | 27.95 ▲2.75 |
Add New /wp-admin/admin.php?page=wp3cxw-new | 3.68 | 26.78 |
Webinar Forms /wp-admin/admin.php?page=wp3cxw | 3.69 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,021 ▲267 | 16.93 ▲1.23 | 11.72 ▲5.91 | 3.02 ▲0.17 |
Dashboard /wp-admin | 2,974 ▲116 | 6.04 ▼0.10 | 121.47 ▼13.76 | 156.06 ▼12.78 |
Posts /wp-admin/edit.php | 2,769 ▲84 | 3.25 ▲0.01 | 64.07 ▼9.06 | 140.38 ▼15.44 |
Add New Post /wp-admin/post-new.php | 1,736 ▲25 | 21.11 ▲0.08 | 435.30 ▼5.38 | 168.56 ▲9.18 |
Media Library /wp-admin/upload.php | 1,780 ▲82 | 5.51 ▼0.02 | 148.39 ▲4.47 | 185.36 ▼1.62 |
Add New /wp-admin/admin.php?page=wp3cxw-new | 4,588 | 3.53 | 108.24 | 177.54 |
Webinar Forms /wp-admin/admin.php?page=wp3cxw | 1,459 | 2.81 | 59.53 | 127.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 1,344 | 1,477 | 3,744 |
PHP | 19 | 564 | 54 | 2,408 |
JavaScript | 4 | 140 | 100 | 2,043 |
CSS | 7 | 147 | 79 | 1,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 code | 0.33 |
Average class complexity | 17.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 10 | 16.67% |
▷ Public methods | 56 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.67% |
Functions | 69 | |
▷ Named functions | 69 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags.png | 57.07KB | 16.82KB | ▼ 70.53% |
includes/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
includes/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
includes/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
images/blank.png | 0.90KB | 0.09KB | ▼ 89.72% |