89% talkshoplive-player

Code Review | TalkShopLive Player

WordPress plugin TalkShopLive Player scored89%from 54 tests.

About plugin

  • Plugin page: talkshoplive-player
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Sep 20, 2021
  • Latest release: May 28, 2022
  • Number of updates: 11
  • Update frequency: every 23.1 days
  • Top authors: talkshoplive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,631 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼14.73ms] Passed 4 tests

Analyzing server-side resources used by TalkShopLive Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3546.37 ▲6.80
Dashboard /wp-admin3.65 ▲0.3551.80 ▼2.98
Posts /wp-admin/edit.php3.70 ▲0.3451.66 ▼3.07
Add New Post /wp-admin/post-new.php3.46 ▼2.4242.72 ▼59.14
Media Library /wp-admin/upload.php3.57 ▲0.3441.31 ▲6.26

Server storage [IO: ▲0.09MB] [DB: ▼0.05MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
talk_shop_live::player_defaults
widget_recent-posts
widget_talk_shop_live_player_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by TalkShopLive Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.33 ▼1.042.40 ▼0.3240.93 ▼2.39
Dashboard /wp-admin2,226 ▲644.93 ▼0.74101.55 ▲14.8037.30 ▼8.39
Posts /wp-admin/edit.php2,140 ▲542.33 ▲0.3044.33 ▲6.2634.54 ▲1.82
Add New Post /wp-admin/post-new.php6,225 ▲4,71119.03 ▼4.70865.61 ▲231.6436.76 ▼25.24
Media Library /wp-admin/upload.php1,435 ▲474.49 ▲0.22103.20 ▼1.4847.32 ▼0.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_talk_shop_live_player_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: embed, streaming, talkshoplive, live embed, live shopping

talkshoplive-player/talkshoplive.php 77% from 13 tests

The entry point to "TalkShopLive Player" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/public/lang" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("talkshoplive-player.php" instead of "talkshoplive.php")
  • Description: The description should be shorter than 140 characters (currently 312 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,783 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP224474071,679
JavaScript46376
SVG10115
CSS13013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.27
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods160
▷ Static methods127.50%
▷ Public methods14691.25%
▷ Protected methods148.75%
▷ Private methods00.00%
Functions14
▷ Named functions00.00%
▷ Anonymous functions14100.00%
Constants27
▷ Global constants00.00%
▷ Class constants27100.00%
▷ Public constants2696.30%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin