67% mwa-zoom-meetup

Code Review | Video Conferencing - Zoom Meetings

WordPress plugin Video Conferencing - Zoom Meetings scored67%from 54 tests.

About plugin

  • Plugin page: mwa-zoom-meetup
  • Plugin version: 2.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2020
  • Latest release: Jul 1, 2021
  • Number of updates: 66
  • Update frequency: every 3.5 days
  • Top authors: wpmwa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,887 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.08ms] Passed 4 tests

This is a short check of server-side resources used by Video Conferencing - Zoom Meetings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.94 ▲2.69
Dashboard /wp-admin3.52 ▲0.1751.84 ▼6.19
Posts /wp-admin/edit.php3.63 ▲0.2849.77 ▲0.92
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.80 ▼9.75
Media Library /wp-admin/upload.php3.44 ▲0.2138.36 ▲7.76
GCal Event Manager /wp-admin/admin.php?page=manage_event3.4134.45
Manage Meeting /wp-admin/admin.php?page=manage_meeting3.4635.76
Add User & List /wp-admin/admin.php?page=add_users3.4534.41
Create Meeting /wp-admin/admin.php?page=create_meeting3.4836.27
Token Manager /wp-admin/admin.php?page=token_manage3.9136.54
All Events /wp-admin/admin.php?page=all_events3.4234.65
Upgrade To Pro /wp-admin/admin.php?page=upg_to_pro3.4332.94
Zoom Dashboard /wp-admin/admin.php?page=mwa_wpz_plug3.4332.54
Tutorial /wp-admin/admin.php?page=tutorial_vc3.4232.84

Server storage [IO: ▲6.65MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 295 new files
Database: 7 new tables, 7 new options
New tables
wp_mwa_zoom_auth
wp_mwa_zoom_token
wp_mwa_zoom_email_users
wp_mwa_zoom_meetdata
wp_mwa_timezone
wp_mwa_zoom_host
wp_mwa_zoom_userinfo
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_mwa_wp_zoom_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Video Conferencing - Zoom Meetings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14414.17 ▼0.181.88 ▲0.3344.14 ▲1.20
Dashboard /wp-admin2,270 ▲935.56 ▼0.1185.51 ▲2.2064.56 ▲25.12
Posts /wp-admin/edit.php2,175 ▲752.01 ▼0.0134.34 ▼2.1531.89 ▼0.74
Add New Post /wp-admin/post-new.php1,589 ▲5423.10 ▲4.89648.06 ▼27.34169.96 ▲100.74
Media Library /wp-admin/upload.php1,472 ▲724.23 ▲0.0596.78 ▼12.3370.77 ▲23.97
GCal Event Manager /wp-admin/admin.php?page=manage_event9282.3035.5395.58
Manage Meeting /wp-admin/admin.php?page=manage_meeting1,2893.2257.5655.85
Add User & List /wp-admin/admin.php?page=add_users1,1422.8744.0165.08
Create Meeting /wp-admin/admin.php?page=create_meeting2,2562.7442.5056.36
Token Manager /wp-admin/admin.php?page=token_manage1,2922.9744.9451.48
All Events /wp-admin/admin.php?page=all_events9342.2429.1147.21
Upgrade To Pro /wp-admin/admin.php?page=upg_to_pro1,0872.2828.1160.37
Zoom Dashboard /wp-admin/admin.php?page=mwa_wpz_plug1,0662.2427.7744.40
Tutorial /wp-admin/admin.php?page=tutorial_vc1,47510.69271.3575.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables were found after uninstall: 7 tables
    • wp_mwa_zoom_host
    • wp_mwa_zoom_meetdata
    • wp_mwa_timezone
    • wp_mwa_zoom_auth
    • wp_mwa_zoom_userinfo
    • wp_mwa_zoom_token
    • wp_mwa_zoom_email_users
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_mwa_wp_zoom_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% 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 | 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mwa-zoom-meetup/libs/aura/vendor/aura/session/phpunit.php
  • 53× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/guzzle/src/Pool.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Aura\\Session\\RandvalInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/aura/vendor/aura/session/src/Randval.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mwa-zoom-meetup/libs/zoom/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

mwa-zoom-meetup/mwa-wp-zoom.php 62% from 13 tests

The principal PHP file in "Video Conferencing - Zoom Meetings" v. 2.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.2" instead of "7.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mwa-zoom-meetup.php" instead of "mwa-wp-zoom.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "5.2")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 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
Success! There were no dangerous files found in this plugin49,687 lines of code in 254 files:
LanguageFilesBlank linesComment linesLines of code
PHP1632,5746,42915,537
CSS141,5298813,820
JavaScript132,2721,9599,334
Markdown161,13203,495
SVG1002,671
Sass1434341,768
LESS1434441,758
JSON1300896
PO File1163187351
YAML20026
XML10012
Dockerfile18010
make1409

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces13
Interfaces17
Traits2
Classes99
▷ Abstract classes00.00%
▷ Concrete classes99100.00%
▷ Final classes1414.14%
Methods884
▷ Static methods16318.44%
▷ Public methods73483.03%
▷ Protected methods202.26%
▷ Private methods13014.71%
Functions201
▷ Named functions10954.23%
▷ Anonymous functions9245.77%
Constants109
▷ Global constants4944.95%
▷ Class constants6055.05%
▷ Public constants60100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.43MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/gcalevntmngr.png125.51KB43.20KB▼ 65.58%
assets/images/zoom_meeting.png83.25KB21.07KB▼ 74.69%
assets/images/mwa_wp-zoom.png0.92KB0.73KB▼ 20.43%
assets/images/gcalist.png95.14KB31.65KB▼ 66.73%
assets/images/webibarzoom.png131.13KB44.02KB▼ 66.43%