84% wp-zoom

Code Review | Zoom for WordPress

WordPress plugin Zoom for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wp-zoom
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2021
  • Latest release: Jun 23, 2022
  • Number of updates: 12
  • Update frequency: every 41.4 days
  • Top authors: dkjensen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.97MB] [CPU: ▲5.62ms] Passed 4 tests

Server-side resources used by Zoom for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0152.28 ▲10.28
Dashboard /wp-admin4.30 ▲1.0060.60 ▲11.08
Posts /wp-admin/edit.php4.35 ▲1.0053.43 ▲1.52
Add New Post /wp-admin/post-new.php6.84 ▲0.9698.92 ▲1.27
Media Library /wp-admin/upload.php4.16 ▲0.9447.07 ▲9.42
Zoom for WordPress /wp-admin/options-general.php?page=wp-zoom4.1338.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 322 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Zoom for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲12813.81 ▼0.6316.26 ▲14.5441.58 ▲0.84
Dashboard /wp-admin2,204 ▲305.65 ▲0.0190.29 ▲2.0538.29 ▼7.36
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0734.26 ▼4.6035.29 ▼4.49
Add New Post /wp-admin/post-new.php1,531 ▼023.33 ▲0.27661.36 ▼10.0955.16 ▲1.77
Media Library /wp-admin/upload.php1,406 ▲64.28 ▲0.05104.21 ▲0.1446.78 ▼1.15
Zoom for WordPress /wp-admin/options-general.php?page=wp-zoom7962.0224.5323.66

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
  • 166× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/wp-zoom/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-zoom/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-zoom/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-zoom/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-zoom/includes/wp-zoom-enqueue-scripts.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-zoom/templates/settings/registration.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-zoom/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-zoom/includes/shortcodes/wp-zoom-list-shortcode.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-zoom/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-zoom/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: zoom, meetings, webinars, woocommerce

wp-zoom/wp-zoom.php Passed 13 tests

Analyzing the main PHP file in "Zoom for WordPress" version 1.5.4
62 characters long description:
Simple Zoom integration with WordPress makes anything possible

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin38,977 lines of code in 313 files:
LanguageFilesBlank linesComment linesLines of code
PHP2974,71912,91036,937
Markdown12340969
JSON100927
YAML425087
XML10019
SVG10011
Dockerfile18010
make1409
Bourne Shell1203
JavaScript3013
CSS2002

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.39
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces34
Interfaces29
Traits13
Classes206
▷ Abstract classes94.37%
▷ Concrete classes19795.63%
▷ Final classes2412.18%
Methods1,500
▷ Static methods20213.47%
▷ Public methods1,10073.33%
▷ Protected methods20613.73%
▷ Private methods19412.93%
Functions249
▷ Named functions13453.82%
▷ Anonymous functions11546.18%
Constants223
▷ Global constants4721.08%
▷ Class constants17678.92%
▷ Public constants176100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected