84% ivplayer

Code Review | IV Player

WordPress plugin IV Player scored84%from 54 tests.

About plugin

  • Plugin page: ivplayer
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2020
  • Latest release: Sep 25, 2020
  • Number of updates: 20
  • Update frequency: every 0.4 days
  • Top authors: sandeshnaroju (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▲1.14ms] Passed 4 tests

A check of server-side resources used by IV Player
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.23 ▲2.67
Dashboard /wp-admin3.39 ▲0.0947.98 ▲0.39
Posts /wp-admin/edit.php3.51 ▲0.1544.96 ▼0.32
Add New Post /wp-admin/post-new.php6.03 ▲0.15104.52 ▲12.73
Media Library /wp-admin/upload.php3.32 ▲0.0933.31 ▲1.82

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for IV Player
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13319.23 ▲4.6169.98 ▲68.1546.26 ▲5.07
Dashboard /wp-admin2,215 ▲305.77 ▼0.1399.48 ▼2.5538.26 ▼3.53
Posts /wp-admin/edit.php2,101 ▲122.02 ▼0.0236.89 ▲1.8834.42 ▲1.58
Add New Post /wp-admin/post-new.php1,527 ▼617.70 ▼5.67615.08 ▼43.0860.32 ▼0.96
Media Library /wp-admin/upload.php1,394 ▲64.17 ▼0.1396.95 ▼14.5841.16 ▼6.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ivplayer/admin/partials/iv-player-admin-display.php
    • > /wp-content/plugins/ivplayer/open/partials/iv-player-open-display.php

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: timing files video player, view on screen video player, timing text video player, video player, javascript video player...

ivplayer/ivplayer.php 92% from 13 tests

The entry point to "IV Player" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected1,525 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS69215981
PHP12141557349
JavaScript121896138
JSON20055
HTML2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants3
▷ Global constants3100.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
No PNG files were detected