84% intelli-tv-video

Code Review | Intelli TV video

WordPress plugin Intelli TV video scored84%from 54 tests.

About plugin

  • Plugin page: intelli-tv-video
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jun 14, 2021
  • Number of updates: 21
  • Update frequency: every 6.6 days
  • Top authors: intellitv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.05ms] Passed 4 tests

Analyzing server-side resources used by Intelli TV video
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.38 ▼9.11
Dashboard /wp-admin3.32 ▲0.0140.10 ▼10.32
Posts /wp-admin/edit.php3.37 ▲0.0146.60 ▼1.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.13 ▼23.61
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▲3.90

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Intelli TV video
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.36 ▼1.391.68 ▼0.7240.15 ▼1.71
Dashboard /wp-admin2,203 ▲155.77 ▲0.92100.33 ▼16.5039.42 ▼8.07
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0533.52 ▼2.1934.83 ▲1.49
Add New Post /wp-admin/post-new.php6,354 ▲4,82628.06 ▲9.53893.87 ▲291.6054.14 ▲3.98
Media Library /wp-admin/upload.php1,388 ▼34.33 ▲0.0595.45 ▼1.3442.12 ▼1.05

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/intelli-tv-video/includes/hooks.php
    • > /wp-content/plugins/intelli-tv-video/includes/config.php
    • > /wp-content/plugins/intelli-tv-video/igniter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
5 plugin tags: iframe, block, gutenberg, external, intellitv

intelli-tv-video/igniter.php 85% from 13 tests

This is the main PHP file of "Intelli TV video" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("intelli-tv-video.php" instead of "igniter.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected642 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22347490
CSS150102
PHP420950

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin