90% flowplayer6-video-player

Code Review | Flowplayer Video Player

WordPress plugin Flowplayer Video Player scored90%from 54 tests.

About plugin

  • Plugin page: flowplayer6-video...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Nov 14, 2022
  • Number of updates: 20
  • Update frequency: every 135.6 days
  • Top authors: naa986 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /42,863 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.03MB] [CPU: ▲1.76ms] Passed 4 tests

Server-side resources used by Flowplayer Video Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.13 ▼0.01
Dashboard /wp-admin3.34 ▲0.0455.42 ▲7.76
Posts /wp-admin/edit.php3.39 ▲0.0352.45 ▼0.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.29 ▲6.96
Media Library /wp-admin/upload.php3.26 ▲0.0336.58 ▲0.22
Flowplayer /wp-admin/options-general.php?page=flowplayer6-video-player-settings3.2329.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Flowplayer Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲15014.45 ▲0.0932.20 ▲30.1549.91 ▲6.50
Dashboard /wp-admin2,199 ▲195.62 ▼0.0791.14 ▼8.9237.33 ▼9.86
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0140.37 ▲2.8037.52 ▼2.71
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▼0.65642.60 ▼49.4459.09 ▲6.69
Media Library /wp-admin/upload.php1,407 ▲44.18 ▲0.0397.44 ▼15.1743.34 ▼2.74
Flowplayer /wp-admin/options-general.php?page=flowplayer6-video-player-settings7692.1525.7224.53

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

flowplayer6-video-player/flowplayer6-video-player.php Passed 13 tests

The entry point to "Flowplayer Video Player" version 1.0.5 is a PHP file that has certain tags in its header comment area
50 characters long description:
Easily embed a video in WordPress using Flowplayer

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
Good job! No executable or dangerous file extensions detected8,792 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,4111,0357,632
CSS11150907
PHP11619155
SVG10098

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin