67% frames-video-gallery

Code Review | Frames Video Player

WordPress plugin Frames Video Player scored 67% from 54 tests.

About plugin

  • Plugin page: frames-video-gallery
  • Plugin version: 0.2.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: Feb 13, 2017
  • Number of updates: 46
  • Update frequency: every 6.4 days
  • Top authors: plugin.builders (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 6,364 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼0.08ms] Passed 4 tests

Server-side resources used by Frames Video Player
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2439.39 ▼6.51
Dashboard /wp-admin3.70 ▲0.3960.74 ▲11.66
Posts /wp-admin/edit.php3.74 ▲0.3952.66 ▲4.84
Add New Post /wp-admin/post-new.php6.19 ▲0.3188.18 ▼0.43
Media Library /wp-admin/upload.php3.54 ▲0.3137.46 ▲1.78

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 9 new options
New tables
wp_frames_themes
wp_frames_videos
wp_frames_playlists
New WordPress options
frames_db_changes
widget_recent-posts
frames_vg_version
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_frames_vg_widget

Browser metrics Passed 4 tests

Checking browser requirements for Frames Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲25815.06 ▲0.681.60 ▼0.2639.66 ▼3.66
Dashboard /wp-admin2,402 ▲2116.43 ▲1.54125.27 ▲24.4242.33 ▼4.39
Posts /wp-admin/edit.php2,308 ▲2193.35 ▲1.3046.60 ▲3.5830.03 ▼3.67
Add New Post /wp-admin/post-new.php1,571 ▲5123.16 ▼0.01579.68 ▼118.5334.29 ▼10.09
Media Library /wp-admin/upload.php1,444 ▲564.18 ▼0.0282.60 ▼18.8942.62 ▼1.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_frames_videos
    • wp_frames_playlists
    • wp_frames_themes
  • Zombie WordPress options detected upon uninstall: 9 options
    • frames_db_changes
    • widget_frames_vg_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • frames_vg_version
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/frames-video-gallery/admin/sanitizer.php
    • > /wp-content/plugins/frames-video-gallery/front/templates/templates.php
    • > /wp-content/plugins/frames-video-gallery/admin/templates/inputs.php
    • > /wp-content/plugins/frames-video-gallery/engine/api.php
    • > /wp-content/plugins/frames-video-gallery/engine/front.php
    • > /wp-content/plugins/frames-video-gallery/engine/admin-side.php
    • > /wp-content/plugins/frames-video-gallery/admin/schema.php
    • > /wp-content/plugins/frames-video-gallery/frames.php
    • > /wp-content/plugins/frames-video-gallery/admin/database/database.php
    • > /wp-content/plugins/frames-video-gallery/admin/database/db.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/frames-video-gallery/admin/templates/templates.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 39 tag instead of maximum 10
You can look at the official readme.txt

frames-video-gallery/frames.php 69% from 13 tests

The main PHP file in "Frames Video Player" ver. 0.2.9.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("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: Name the main plugin file the same as the plugin slug ("frames-video-gallery.php" instead of "frames.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10,041 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91,2963925,404
CSS7433822,214
PHP11449221,857
SVG200566

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.50
▷ Minimum class complexity3.00
▷ Maximum class complexity36.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods100
▷ Static methods22.00%
▷ Public methods9999.00%
▷ Protected methods00.00%
▷ Private methods11.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/frames.png0.21KB0.12KB▼ 41.98%