90% reng-player

Code Review | Reng Player

WordPress plugin Reng Player scored 90% from 54 tests.

About plugin

  • Plugin page: reng-player
  • Plugin version: 0.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2022
  • Latest release: Jun 15, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: amirition (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.50ms] Passed 4 tests

A check of server-side resources used by Reng Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.85 ▼4.06
Dashboard /wp-admin3.31 ▲0.0043.69 ▼0.82
Posts /wp-admin/edit.php3.36 ▲0.0049.45 ▼0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.53 ▼4.44
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▲0.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reng Player
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.084.50 ▲2.5539.84 ▼0.17
Dashboard /wp-admin2,209 ▲274.81 ▼1.10105.57 ▲2.3638.62 ▼8.05
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0139.68 ▼1.1334.43 ▼5.37
Add New Post /wp-admin/post-new.php1,514 ▼1917.85 ▼5.51680.50 ▲96.9250.08 ▲1.58
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.01108.98 ▲5.0046.10 ▲0.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
5 plugin tags: block, player, music, audio, media

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

The main PHP script in "Reng Player" version 0.2.1 is automatically included on every request by WordPress
34 characters long description:
Your next lightweight audio player

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
There were no executable files found in this plugin36,362 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JSON50035,679
JavaScript145169407
Sass2130134
PHP5291866
CSS3102054
SVG15017
Markdown1105

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Blocks/single-player/build/images/music.b0a23dd2.png4.29KB2.38KB▼ 44.41%
src/Blocks/single-player/src/img/music.png4.29KB2.38KB▼ 44.41%