83% install-fitvids-embed-fluid-width-videos

Code Review | Install FitVids - Embed fluid width Videos

WordPress plugin Install FitVids - Embed fluid width Videos scored83%from 54 tests.

About plugin

  • Plugin page: install-fitvids-e...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Oct 10, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: salttechno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.84ms] Passed 4 tests

An overview of server-side resources used by Install FitVids - Embed fluid width Videos
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.24 ▲6.94
Dashboard /wp-admin3.35 ▲0.0046.52 ▼16.11
Posts /wp-admin/edit.php3.47 ▲0.1149.34 ▼2.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.97 ▼3.40
Media Library /wp-admin/upload.php3.28 ▲0.0431.33 ▼0.99

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

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

Browser metrics Passed 4 tests

Install FitVids - Embed fluid width Videos: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.66 ▼0.636.64 ▲4.8639.27 ▼3.27
Dashboard /wp-admin2,210 ▲244.91 ▲0.00107.69 ▼3.6946.66 ▲3.88
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0439.25 ▼0.1635.05 ▲0.63
Add New Post /wp-admin/post-new.php1,523 ▼1023.05 ▼0.16653.83 ▼24.7951.06 ▼1.34
Media Library /wp-admin/upload.php1,395 ▲44.20 ▲0.0396.73 ▼0.0042.49 ▲1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/install-fitvids-embed-fluid-width-videos/admin/partials/fitvids-fluid-video-admin-display.php
    • > /wp-content/plugins/install-fitvids-embed-fluid-width-videos/public/partials/fitvids-fluid-video-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === install-fitvids-embed-fluid-width-videos === )
Please take inspiration from this readme.txt

install-fitvids-embed-fluid-width-videos/fitvids-fluid-video.php 77% from 13 tests

The entry point to "Install FitVids - Embed fluid width Videos" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("install-fitvids-embed-fluid-width-videos.php" instead of "fitvids-fluid-video.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected241 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12115510168
JavaScript3173873
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected