90% srs-player

Code Review | Live Streaming Video Player - by SRS Player

WordPress plugin Live Streaming Video Player - by SRS Player scored90%from 54 tests.

About plugin

  • Plugin page: srs-player
  • Plugin version: 1.0.17
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Jul 23, 2023
  • Number of updates: 15
  • Update frequency: every 31.2 days
  • Top authors: winlinvip (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /5,274 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.32ms] Passed 4 tests

This is a short check of server-side resources used by Live Streaming Video Player - by SRS Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.99 ▲1.13
Dashboard /wp-admin3.35 ▲0.0450.87 ▼3.78
Posts /wp-admin/edit.php3.46 ▲0.1049.70 ▲1.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.26 ▼11.96
Media Library /wp-admin/upload.php3.27 ▲0.0440.15 ▲2.34

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Live Streaming Video Player - by SRS Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16014.51 ▼0.0221.12 ▲19.4640.93 ▲2.14
Dashboard /wp-admin2,198 ▲185.57 ▼0.08106.72 ▲18.0840.24 ▲2.40
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0541.98 ▲5.9836.23 ▲0.74
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.17651.14 ▼9.5447.28 ▼13.34
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0296.91 ▼6.7841.56 ▼2.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: player, audio, video player, e-commerce, woocommerce...

srs-player/srs-player.php Passed 13 tests

"Live Streaming Video Player - by SRS Player" version 1.0.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
SRS Player is a video streaming player, supports HLS/HTTP-FLV/WebRTC etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,039 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.40
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods211.11%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin