68% webrtc-for-wp-soydigital

Code Review | WebRTC for WP SoyDigital

WordPress plugin WebRTC for WP SoyDigital scored68%from 54 tests.

About plugin

  • Plugin page: webrtc-for-wp-soy...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 3, 2015
  • Latest release: Feb 22, 2016
  • Number of updates: 20
  • Update frequency: every 10.4 days
  • Top authors: cehojac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /866 total downloads

Benchmarks

Plugin footprint 65% from 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.94MB] [CPU: ▼31.97ms] Passed 4 tests

An overview of server-side resources used by WebRTC for WP SoyDigital
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.74 ▼7.17
Dashboard /wp-admin3.00 ▼0.3021.91 ▼24.21
Posts /wp-admin/edit.php3.00 ▼0.3522.33 ▼22.16
Add New Post /wp-admin/post-new.php3.00 ▼2.8822.84 ▼65.80
Media Library /wp-admin/upload.php3.00 ▼0.2221.20 ▼15.69
Set WebRTC for WP SoyDigital /wp-admin/options-general.php?page=digital_rtc3.0122.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options
digital_rtc_w
theysaidso_admin_options
widget_recent-posts
digital_rtc_varkey
widget_d_rtc
db_upgraded
digital_rtc_b
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for WebRTC for WP SoyDigital
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.74 ▼0.642.15 ▲0.2435.34 ▼9.66
Dashboard /wp-admin2,207 ▲225.81 ▼0.0597.74 ▼19.9037.58 ▼5.37
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0146.06 ▲11.5243.72 ▲5.41
Add New Post /wp-admin/post-new.php1,536 ▲822.99 ▲4.38652.82 ▲29.1354.31 ▼0.29
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0297.73 ▼1.1142.08 ▼2.59
Set WebRTC for WP SoyDigital /wp-admin/options-general.php?page=digital_rtc8522.2124.8327.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 11 options
    • widget_d_rtc
    • digital_rtc_varkey
    • can_compress_scripts
    • widget_theysaidso_widget
    • digital_rtc_w
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • digital_rtc_b
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=digital_rtc
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=digital_rtc
    • > Notice in wp-content/plugins/webrtc-for-wp-soydigital/webrtc-for-wp-soydigital.php+227
    Undefined index: d_rtc_submit
    • > GET request to /wp-admin/options-general.php?page=digital_rtc
    • > Notice in wp-content/plugins/webrtc-for-wp-soydigital/webrtc-for-wp-soydigital.php+279
    Undefined variable: data

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× 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/webrtc-for-wp-soydigital/webrtc-for-wp-soydigital.php:61

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: soydigital, llamadas rtc, web-rtc, webrtc, soy digital...

webrtc-for-wp-soydigital/webrtc-for-wp-soydigital.php Passed 13 tests

The entry point to "WebRTC for WP SoyDigital" version 1.2 is a PHP file that has certain tags in its header comment area
98 characters long description:
Inserta facilmente tu codigo Digital-RTC de SoyDigital con este plugin,mediante widget o shotrcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin453 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP141757343
CSS1641161
JavaScript11135
XML30014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo_soydigital.png6.62KB3.01KB▼ 54.51%
assets/screenshot-2.png24.39KB9.01KB▼ 63.05%
assets/img/empresas.png37.67KB14.44KB▼ 61.66%
assets/img/personal.png36.86KB14.11KB▼ 61.72%
assets/screenshot-1.png42.22KB15.25KB▼ 63.89%