90% blockplayer

Code Review | WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer

WordPress plugin WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer scored90%from 54 tests.

About plugin

  • Plugin page: blockplayer
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 13, 2022
  • Latest release: Jul 13, 2022
  • Number of updates: 16
  • Update frequency: every 3.8 days
  • Top authors: gutenplayer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,312 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.38 ▼13.01
Dashboard /wp-admin3.32 ▲0.0255.15 ▼0.87
Posts /wp-admin/edit.php3.37 ▲0.0251.49 ▲0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.98 ▲7.88
Media Library /wp-admin/upload.php3.25 ▲0.0232.68 ▼2.72

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲11914.82 ▲0.216.19 ▲3.9445.26 ▲1.46
Dashboard /wp-admin2,212 ▲215.86 ▲0.05117.83 ▲7.1741.29 ▲1.29
Posts /wp-admin/edit.php2,095 ▲62.52 ▲0.4939.57 ▲2.6036.38 ▲1.87
Add New Post /wp-admin/post-new.php6,350 ▲4,83129.08 ▲5.93858.60 ▲166.1263.08 ▲9.16
Media Library /wp-admin/upload.php1,397 ▲95.01 ▲0.83114.27 ▲0.6143.67 ▼10.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in blockplayer/assets to your readme.txt
The official readme.txt is a good inspiration

blockplayer/blockplayer.php Passed 13 tests

The primary PHP file in "WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer" version 1.1.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
WordPress video player for WordPress gutenberg blocks and WordPress gutenberg template library - Blockplayer

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
Success! There were no dangerous files found in this plugin65 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3101959
CSS2104
JavaScript2002

PHP code Passed 2 tests

Analyzing 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.05
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin