61% fv-wordpress-flowplayer

Code Review | FV Flowplayer Video Player

WordPress plugin FV Flowplayer Video Player scored61%from 54 tests.

About plugin

  • Plugin page: fv-wordpress-flow...
  • Plugin version: 7.5.41.7212
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2009
  • Latest release: Oct 4, 2023
  • Number of updates: 978
  • Update frequency: every 5.2 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

87 reviews

Install metrics

30,000+ active /2,217,798 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼0.25ms] Passed 4 tests

A check of server-side resources used by FV Flowplayer Video Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3734.31 ▼3.47
Dashboard /wp-admin3.87 ▲0.5744.15 ▼3.01
Posts /wp-admin/edit.php3.99 ▲0.6348.51 ▲3.04
Add New Post /wp-admin/post-new.php6.49 ▲0.6098.46 ▲2.45
Media Library /wp-admin/upload.php3.80 ▲0.5736.91 ▲3.53
Videos/Playlists /wp-admin/admin.php?page=fv_player3.89104.19
Settings /wp-admin/admin.php?page=fvplayer4.7685.68
Bunny Stream /wp-admin/admin.php?page=fv_player_bunny_stream3.7735.67
FV Player /wp-admin/options-general.php?page=fvplayer3.9566.01

Server storage [IO: ▲9.36MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • You have illegally modified 1 file (111.21KB) outside of "wp-content/plugins/fv-wordpress-flowplayer/" and "wp-content/uploads/"
    • (new file) wp-content/fv-flowplayer-custom/style-1.css
Filesystem: 1,027 new files
Database: 5 new tables, 12 new options
New tables
wp_fv_player_players
wp_fv_player_videos
wp_fv_player_videometa
wp_fv_player_playermeta
wp_fv_player_encoding_jobs
New WordPress options
fv_player_bunny_stream_ver
db_upgraded
fv_player_mailchimp_lists
fv_flowplayer_checker_queue
can_compress_scripts
widget_widget_fvplayer
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
fvwpflowplayer
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for FV Flowplayer Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲11813.25 ▼1.104.24 ▲2.3340.71 ▲0.99
Dashboard /wp-admin2,296 ▲1165.67 ▲0.0186.08 ▼0.9675.10 ▲28.70
Posts /wp-admin/edit.php2,215 ▲1182.55 ▲0.5746.12 ▲11.2635.09 ▼2.91
Add New Post /wp-admin/post-new.php8,766 ▲7,23823.29 ▲0.281,092.20 ▲441.7848.50 ▼3.69
Media Library /wp-admin/upload.php1,508 ▲1144.39 ▲0.24106.74 ▲11.6373.65 ▲29.44
Videos/Playlists /wp-admin/admin.php?page=fv_player5,1216.72159.6768.83
Settings /wp-admin/admin.php?page=fvplayer8,8228.28269.25173.92
Bunny Stream /wp-admin/admin.php?page=fv_player_bunny_stream1,2863.4057.8766.09
FV Player /wp-admin/options-general.php?page=fvplayer8,8318.31256.70142.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 5 tables
    • wp_fv_player_encoding_jobs
    • wp_fv_player_videos
    • wp_fv_player_videometa
    • wp_fv_player_playermeta
    • wp_fv_player_players
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_recent-comments
    • widget_recent-posts
    • fv_player_mailchimp_lists
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • fv_flowplayer_checker_queue
    • fv_player_email_lists
    • fvwpflowplayer
    • db_upgraded
    • can_compress_scripts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=fv_player_bunny_stream
    • > Notice in wp-content/plugins/fv-wordpress-flowplayer/models/bunny-stream-wizard/step_2_stream_libs.php+32
    Undefined index: bunnycdn_api

SRP 0% from 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fv-wordpress-flowplayer/controller/track.php
    • > /wp-content/plugins/fv-wordpress-flowplayer/vendor/mtdowling/jmespath.php/bin/jp.php
  • 232× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'Aws\\S3\\CalculatesChecksumTrait' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/S3/ApplyChecksumMiddleware.php on line 17
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/Exception/ConfigurationException.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/Exception/IncalculablePayloadException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/guzzlehttp/promises/src/Promise.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Multipart\\AbstractUploadManager' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/Multipart/AbstractUploader.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Arn\\S3\\AccessPointArn' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/Arn/S3/MultiRegionAccessPointArn.php:13
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/fv-wordpress-flowplayer/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\ErrorParser\\AbstractErrorParser' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/Api/ErrorParser/XmlErrorParser.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/fv-wordpress-flowplayer/vendor/aws/aws-sdk-php/src/Api/Parser/JsonRpcParser.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'FV_Player_Wizard_Base_Class' not found in wp-content/plugins/fv-wordpress-flowplayer/models/class.fv-player-bunny_stream-wizard.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

fv-wordpress-flowplayer/flowplayer.php 85% from 13 tests

The main PHP file in "FV Flowplayer Video Player" ver. 7.5.41.7212 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fv-wordpress-flowplayer.php" instead of "flowplayer.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected88,906 lines of code in 818 files:
LanguageFilesBlank linesComment linesLines of code
PHP61612,18320,90362,012
JavaScript1362,9682,01711,880
PO File42,8784,0584,990
Markdown251,50604,223
CSS143711183,928
JSON14701,414
SVG500203
XSLT2100192
reStructuredText1352959
Bourne Shell1005

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 247)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.22
▷ Minimum class complexity1.00
▷ Maximum class complexity677.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity247.00
Code structure
Namespaces73
Interfaces61
Traits27
Classes402
▷ Abstract classes245.97%
▷ Concrete classes37894.03%
▷ Final classes5013.23%
Methods3,501
▷ Static methods58516.71%
▷ Public methods2,68976.81%
▷ Protected methods1444.11%
▷ Private methods66819.08%
Functions647
▷ Named functions28644.20%
▷ Anonymous functions36155.80%
Constants269
▷ Global constants228.18%
▷ Class constants24791.82%
▷ Public constants23595.14%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.36MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png10.04KB6.70KB▼ 33.22%
images/fv-logo.png2.09KB0.89KB▼ 57.38%
images/icon@x2.png0.81KB0.81KB0.36%
images/icon.png0.45KB0.45KB0.00%
css/img/techinfo.png0.30KB0.47KB0.00%