84% flowplayer-playlist

Code Review | Flowplayer Playlist

WordPress plugin Flowplayer Playlist scored84%from 54 tests.

About plugin

  • Plugin page: flowplayer-playlist
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Jun 8, 2013
  • Number of updates: 16
  • Update frequency: every 2.8 days
  • Top authors: eye8 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.23ms] Passed 4 tests

This is a short check of server-side resources used by Flowplayer Playlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0726.04 ▼24.77
Dashboard /wp-admin3.36 ▲0.0649.13 ▼1.24
Posts /wp-admin/edit.php3.41 ▲0.0549.33 ▲0.41
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.99 ▼13.05
Media Library /wp-admin/upload.php3.28 ▲0.0536.59 ▼1.84
Add New /wp-admin/post-new.php?post_type=flplaylist3.3245.96
FlPlaylist /wp-admin/edit.php?post_type=flplaylist3.3237.76
Configuration /wp-admin/edit.php?post_type=flplaylist&page=flplaylist-configuration-page3.2534.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Flowplayer Playlist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.45 ▼0.909.49 ▲7.8338.41 ▼4.78
Dashboard /wp-admin2,229 ▲525.57 ▼0.0383.74 ▼8.2942.04 ▼2.58
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0537.06 ▲0.1333.78 ▼2.69
Add New Post /wp-admin/post-new.php1,552 ▲2623.67 ▲0.04660.93 ▼46.2759.48 ▲1.83
Media Library /wp-admin/upload.php1,431 ▲314.22 ▲0.0894.62 ▼15.5543.26 ▼4.18
Add New /wp-admin/post-new.php?post_type=flplaylist1,5592.6248.2051.92
FlPlaylist /wp-admin/edit.php?post_type=flplaylist1,0771.9832.0929.70
Configuration /wp-admin/edit.php?post_type=flplaylist&page=flplaylist-configuration-page8432.0323.2929.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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

SRP 50% from 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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Eye8\\FlPlaylist\\plugin_dir_path() in wp-content/plugins/flowplayer-playlist/flowplayer-playlist.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Eye8\\FlPlaylist\\Plugin' not found in wp-content/plugins/flowplayer-playlist/PlaylistManager.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Eye8\\FlPlaylist\\add_action() in wp-content/plugins/flowplayer-playlist/admin.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Eye8\\FlPlaylist\\Plugin' not found in wp-content/plugins/flowplayer-playlist/Flowplayer.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Each playlist is a custom post type. Create as many playlists as you like.), #2 (Customize each playlist by specifying width, height, autoplay, and autobuffering. Add as many videos as you like (you can use Youtube videos!), each URL in a new line. Update the videos whenever you need to.), #3 (Save your Flowplayer license key to use the commercial player without the Flowplayer logo. Only one license key is needed for all multisites under the same root domain.), #4 (Use a simple shortcode to embed the playlist in any post or page.), #5 (Both Youtube and progressive download videos are supported.)
You can take inspiration from this readme.txt

flowplayer-playlist/flowplayer-playlist.php Passed 13 tests

"Flowplayer Playlist" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Embed Flash video in Wordpress using Flowplayer v.3 (Flash).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected375 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP713420374
JavaScript10231

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.30
Average class complexity4.60
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.48MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png54.59KB19.57KB▼ 64.15%
screenshot-4.png53.02KB23.79KB▼ 55.13%
screenshot-2.png67.26KB19.95KB▼ 70.34%
screenshot-5.png250.75KB88.37KB▼ 64.76%
screenshot-1.png60.96KB26.32KB▼ 56.82%