84% gruveo-call-button

Code Review | Video Call Button by Gruveo

WordPress plugin Video Call Button by Gruveo scored84%from 54 tests.

About plugin

  • Plugin page: gruveo-call-button
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Mar 16, 2021
  • Number of updates: 18
  • Update frequency: every 72.6 days
  • Top authors: artmatsak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,124 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.90ms] Passed 4 tests

Server-side resources used by Video Call Button by Gruveo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.12 ▼4.58
Dashboard /wp-admin3.32 ▼0.0342.23 ▼16.88
Posts /wp-admin/edit.php3.37 ▲0.0144.70 ▲1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.73 ▼29.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.48 ▼0.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_gruveo_widget
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Video Call Button by Gruveo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.05 ▼0.5027.03 ▲25.2543.24 ▲0.02
Dashboard /wp-admin2,208 ▲234.83 ▼0.98111.10 ▲6.8443.05 ▲2.97
Posts /wp-admin/edit.php2,091 ▼12.14 ▲0.1343.11 ▲2.8336.95 ▲0.52
Add New Post /wp-admin/post-new.php1,545 ▲1718.27 ▼0.12611.76 ▲6.7850.46 ▼5.95
Media Library /wp-admin/upload.php1,390 ▲54.20 ▲0.0094.71 ▼3.0541.33 ▼2.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_gruveo_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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gruveo-call-button/modules/widgets.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gruveo-call-button/modules/hooks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gruveo-call-button/modules/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gruveo-call-button/modules/scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gruveo-call-button/modules/shortcodes.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
6 plugin tags: support, call, video conferencing, video, screen sharing...

gruveo-call-button/gruveo-call-button.php Passed 13 tests

"Video Call Button by Gruveo" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
Let your website visitors call you with voice and video using the Gruveo button. No account or installs are needed for callers!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected184 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP65218173
CSS10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin