90% ty-project-player

Code Review | TYLR Player

WordPress plugin TYLR Player scored90%from 54 tests.

About plugin

  • Plugin page: ty-project-player
  • Plugin version: 0.2.17
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2023
  • Latest release: Oct 3, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: maxafterlogic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.77ms] Passed 4 tests

Analyzing server-side resources used by TYLR Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.45 ▼4.79
Dashboard /wp-admin3.40 ▲0.0945.15 ▼3.98
Posts /wp-admin/edit.php3.45 ▲0.1044.88 ▼4.44
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.64 ▼25.86
Media Library /wp-admin/upload.php3.32 ▲0.0938.30 ▲5.36
TYLR Player /wp-admin/options-general.php?page=typp3.2931.03

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by TYLR Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.46 ▲0.051.64 ▼0.6140.37 ▼2.40
Dashboard /wp-admin2,215 ▲275.85 ▲0.96103.73 ▼6.6039.18 ▼3.46
Posts /wp-admin/edit.php2,289 ▲1972.16 ▲0.1543.61 ▲3.3134.24 ▼2.61
Add New Post /wp-admin/post-new.php1,691 ▲16022.18 ▼1.00630.69 ▲0.4747.18 ▼11.32
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0397.73 ▼0.4241.70 ▲1.58
TYLR Player /wp-admin/options-general.php?page=typp7872.0825.1130.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: tylr player

ty-project-player/ty-project-wp-plugin.php 92% from 13 tests

This is the main PHP file of "TYLR Player" version 0.2.17, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ty-project-player.php" instead of "ty-project-wp-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected32,126 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON20031,444
PHP73513437
JavaScript366221
CSS10324

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin