90% responsive-videos-fitvids

Code Review | Responsive videos - Fitvids

WordPress plugin Responsive videos - Fitvids scored90%from 54 tests.

About plugin

  • Plugin page: responsive-videos...
  • Plugin version: 3.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Nov 9, 2020
  • Number of updates: 40
  • Update frequency: every 44.7 days
  • Top authors: seebeen (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

900+ active /13,931 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.51ms] Passed 4 tests

This is a short check of server-side resources used by Responsive videos - Fitvids
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.14 ▼4.77
Dashboard /wp-admin3.42 ▲0.0849.77 ▼17.62
Posts /wp-admin/edit.php3.54 ▲0.1848.88 ▼3.13
Add New Post /wp-admin/post-new.php6.00 ▲0.1295.19 ▼12.51
Media Library /wp-admin/upload.php3.35 ▲0.1235.74 ▼3.12
Responsive Videos /wp-admin/options-general.php?page=sgi-fitvids3.3133.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Responsive videos - Fitvids
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲12613.66 ▼0.725.58 ▲3.1841.05 ▼1.34
Dashboard /wp-admin2,213 ▲285.86 ▼0.0299.46 ▼15.6641.07 ▼4.30
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0641.07 ▲2.3247.23 ▲13.37
Add New Post /wp-admin/post-new.php1,536 ▲2223.14 ▲5.47661.45 ▼3.7847.51 ▼18.78
Media Library /wp-admin/upload.php1,392 ▲104.20 ▲0.0594.78 ▼3.9042.33 ▼0.37
Responsive Videos /wp-admin/options-general.php?page=sgi-fitvids8511.6924.9828.61

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: vimeo, jwplayer, youtube, fitvids, videos...

responsive-videos-fitvids/responsive-videos-fitvids.php 92% from 13 tests

The main PHP script in "Responsive videos - Fitvids" version 3.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.1" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected835 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14240359763
JavaScript1111160
JSON10012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48.33%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin