83% art-video-player

Code Review | Art Video Player - HTML5 Video player, Video Player for WordPress

WordPress plugin Art Video Player - HTML5 Video player, Video Player for WordPress scored 83% from 54 tests.

About plugin

  • Plugin page: art-video-player
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Jan 19, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: eleas13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.24ms] Passed 4 tests

This is a short check of server-side resources used by Art Video Player - HTML5 Video player, Video Player for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.70 ▼4.18
Dashboard /wp-admin3.32 ▲0.0147.66 ▼4.37
Posts /wp-admin/edit.php3.37 ▲0.0147.63 ▲0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.87 ▼8.62
Media Library /wp-admin/upload.php3.24 ▲0.0136.72 ▲3.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Art Video Player - HTML5 Video player, Video Player for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.75 ▼0.8111.70 ▲9.9239.92 ▼4.57
Dashboard /wp-admin2,206 ▲215.91 ▲1.02107.52 ▼4.7638.56 ▼7.73
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0138.94 ▲2.5835.46 ▲6.15
Add New Post /wp-admin/post-new.php1,517 ▲318.05 ▲0.59609.69 ▼68.8443.41 ▼19.57
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0696.90 ▼1.8041.85 ▼3.70

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/art-video-player/art-player.php:15
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/art-video-player/art-player.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: video player, art video player, html video player, mp4 player

art-video-player/art-player.php 77% from 13 tests

The main PHP file in "Art Video Player - HTML5 Video player, Video Player for WordPress" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("art-video-player.php" instead of "art-player.php")

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 plugin69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121368
JavaScript1161

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Constants2
▷ Global constants2100.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