72% eroom-zoom-meetings-webinar

Code Review | eRoom - Zoom Meetings & Webinars

WordPress plugin eRoom - Zoom Meetings & Webinars scored72%from 54 tests.

About plugin

  • Plugin page: eroom-zoom-meetin...
  • Plugin version: 1.4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Sep 11, 2023
  • Number of updates: 74
  • Update frequency: every 16.8 days
  • Top authors: stylemix (100%)

Code review

54 tests

User reviews

61 reviews

Install metrics

10,000+ active /414,756 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲4.64MB] [CPU: ▲803.55ms] 50% from 4 tests

A check of server-side resources used by eRoom - Zoom Meetings & Webinars
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 845.23ms on /wp-admin/admin.php?page=stm_zoom_users)
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 803.55ms on /wp-admin/admin.php?page=stm_zoom_assign_host_id)
PageMemory (MB)CPU Time (ms)
Home /6.44 ▲2.94459,038.85 ▲458,996.29
Dashboard /wp-admin8.53 ▲5.1490.02 ▲24.26
Posts /wp-admin/edit.php8.61 ▲5.21101.33 ▲51.95
Add New Post /wp-admin/post-new.php12.33 ▲6.403,197.90 ▲3,098.13
Media Library /wp-admin/upload.php8.52 ▲5.2576.02 ▲39.84
Users /wp-admin/admin.php?page=stm_zoom_users8.60845.23
Meetings /wp-admin/edit.php?post_type=stm-zoom8.6880.26
Add user /wp-admin/admin.php?page=stm_zoom_add_user8.6076.52
Upgrade /wp-admin/admin.php?page=stm_zoom_go_pro8.60327.88
Zoom Settings /wp-admin/admin.php?page=stm_zoom_settings8.6078.10
Webinars /wp-admin/edit.php?post_type=stm-zoom-webinar8.6880.27
Reports /wp-admin/admin.php?page=stm_zoom_reports8.6077.10
Assign host id /wp-admin/admin.php?page=stm_zoom_assign_host_id8.6071.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 535 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
theysaidso_admin_options
eroom_installed
eroom_version
eroom_db_updates
notification_enqueue
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for eRoom - Zoom Meetings & Webinars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,577 ▲81620.09 ▲5.736.28 ▲4.5035.93 ▼8.54
Dashboard /wp-admin2,831 ▲65410.54 ▲5.01204.49 ▲112.55206.32 ▲162.79
Posts /wp-admin/edit.php2,739 ▲6397.43 ▲5.49119.88 ▲80.04195.73 ▲159.46
Add New Post /wp-admin/post-new.php2,095 ▲56727.78 ▲4.76704.50 ▲41.4934.49 ▼23.88
Media Library /wp-admin/upload.php1,955 ▲5528.70 ▲4.48180.25 ▲78.5990.15 ▲48.45
Users /wp-admin/admin.php?page=stm_zoom_users1,9217.89120.69197.92
Meetings /wp-admin/edit.php?post_type=stm-zoom2,0897.53124.46201.27
Add user /wp-admin/admin.php?page=stm_zoom_add_user1,7867.90125.11198.31
Upgrade /wp-admin/admin.php?page=stm_zoom_go_pro1,9957.31233.3248.21
Zoom Settings /wp-admin/admin.php?page=stm_zoom_settings2,4968.44140.56215.96
Webinars /wp-admin/edit.php?post_type=stm-zoom-webinar2,1017.65138.53199.37
Reports /wp-admin/admin.php?page=stm_zoom_reports1,8147.31117.66169.17
Assign host id /wp-admin/admin.php?page=stm_zoom_assign_host_id1,8457.37154.7986.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • eroom_installed
    • notification_enqueue
    • eroom_db_updates
    • widget_recent-comments
    • db_upgraded
    • eroom_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 113 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stm_zoom_assign_host_id
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 113 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stm_zoom_assign_host_id
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
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/eroom-zoom-meetings-webinar/includes/additional_fields/shortcodes.php
  • 220× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: section_name in wp-content/plugins/eroom-zoom-meetings-webinar/nuxy/metaboxes/fields/editor.php on line 15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/eroom-zoom-meetings-webinar/zoom-app/vendor/guzzlehttp/psr7/src/CachingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eroom-zoom-meetings-webinar/nuxy/metaboxes/fields/duration.php:17
    • > PHP Notice
      Undefined variable: section_name in wp-content/plugins/eroom-zoom-meetings-webinar/nuxy/metaboxes/fields/multi_checkbox.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/eroom-zoom-meetings-webinar/zoom-app/vendor/guzzlehttp/promises/src/CancellationException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ANP\\Popup\\ItemBase' not found in wp-content/plugins/eroom-zoom-meetings-webinar/libs/admin-notifications-popup/classes/Popup/Theme/ItemStarterTheme.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eroom-zoom-meetings-webinar/nuxy/metaboxes/fields/multiselect.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/eroom-zoom-meetings-webinar/nuxy/metaboxes/fields/import_export.php on line 17
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/eroom-zoom-meetings-webinar/zoom-app/vendor/guzzlehttp/psr7/src/HttpFactory.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/eroom-zoom-meetings-webinar/zoom-app/vendor/guzzlehttp/psr7/src/Uri.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

eroom-zoom-meetings-webinar/eroom-zoom-meetings-webinar.php 92% from 13 tests

This is the main PHP file of "eRoom - Zoom Meetings & Webinars" version 1.4.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin162,147 lines of code in 475 files:
LanguageFilesBlank linesComment linesLines of code
JSON150068,502
JavaScript1166,2933,27449,320
PHP2543,8057,53617,797
CSS201,3953711,097
SVG39009,920
Markdown231,54404,308
PO File85285281,203

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.70
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces22
Interfaces30
Traits3
Classes133
▷ Abstract classes10.75%
▷ Concrete classes13299.25%
▷ Final classes3526.52%
Methods1,080
▷ Static methods26524.54%
▷ Public methods91184.35%
▷ Protected methods272.50%
▷ Private methods14213.15%
Functions172
▷ Named functions6236.05%
▷ Anonymous functions11063.95%
Constants108
▷ Global constants2624.07%
▷ Class constants8275.93%
▷ Public constants7186.59%

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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/zoom_icon.png12.55KB6.18KB▼ 50.75%
assets/images/popup_image_recurring.png28.12KB11.87KB▼ 57.78%
assets/images/popup_image.png62.48KB11.24KB▼ 82.01%