84% lzd-skyway-webrtc

Code Review | Skyway WebRTC

WordPress plugin Skyway WebRTC scored 84% from 54 tests.

About plugin

  • Plugin page: lzd-skyway-webrtc
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Mar 27, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: lizefield (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,029 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.19ms] Passed 4 tests

Analyzing server-side resources used by Skyway WebRTC
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.09 ▼4.49
Dashboard /wp-admin3.33 ▲0.0346.93 ▼0.87
Posts /wp-admin/edit.php3.38 ▲0.0247.22 ▲3.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.51 ▼8.89
Media Library /wp-admin/upload.php3.25 ▲0.0234.49 ▲1.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
lzd_skyway_webrtc_api_key
db_upgraded
lzd_skyway_webrtc_enable_external_user
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Skyway WebRTC
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.27 ▼1.081.69 ▼0.0740.22 ▲1.08
Dashboard /wp-admin2,215 ▲245.83 ▲0.9797.80 ▼21.1636.67 ▼9.56
Posts /wp-admin/edit.php2,104 ▲182.03 ▲0.0141.67 ▲6.7236.22 ▲4.96
Add New Post /wp-admin/post-new.php1,543 ▲2623.12 ▲5.54622.24 ▼25.6256.16 ▼2.34
Media Library /wp-admin/upload.php1,403 ▲154.24 ▲0.0694.83 ▼6.3143.22 ▲0.74

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • lzd_skyway_webrtc_api_key
    • theysaidso_admin_options
    • lzd_skyway_webrtc_enable_external_user
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lzd-skyway-webrtc/lzd_skyway.php:121

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (nothing) image missing
The official readme.txt might help

lzd-skyway-webrtc/lzd_skyway.php 92% from 13 tests

"Skyway WebRTC" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("lzd-skyway-webrtc.php" instead of "lzd_skyway.php")

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
Everything looks great! No dangerous files found in this plugin1,695 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11,0841,4751,606
PHP1182289

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected