84% surbma-jetpack-responsive-videos

Code Review | Surbma | Jetpack Responsive Videos

WordPress plugin Surbma | Jetpack Responsive Videos scored84%from 54 tests.

About plugin

  • Plugin page: surbma-jetpack-re...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 15
  • Update frequency: every 192.8 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.26ms] Passed 4 tests

An overview of server-side resources used by Surbma | Jetpack Responsive Videos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.30 ▲3.44
Dashboard /wp-admin3.31 ▲0.0048.61 ▼4.73
Posts /wp-admin/edit.php3.36 ▲0.0048.79 ▼4.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.01 ▼15.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▼4.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Surbma | Jetpack Responsive Videos
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼0.761.82 ▼0.2138.52 ▼1.01
Dashboard /wp-admin2,206 ▲185.86 ▲0.97102.32 ▼4.9642.66 ▼2.75
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0337.28 ▼8.8033.46 ▼4.62
Add New Post /wp-admin/post-new.php1,520 ▲623.09 ▲5.48643.71 ▲6.5748.96 ▼10.90
Media Library /wp-admin/upload.php1,391 ▲64.30 ▲0.0798.06 ▼6.9643.81 ▼0.91

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

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-jetpack-responsive-videos/surbma-jetpack-responsive-videos.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: jetpack, responsive video, videos, responsive videos, video...

surbma-jetpack-responsive-videos/surbma-jetpack-responsive-videos.php 92% from 13 tests

The principal PHP file in "Surbma | Jetpack Responsive Videos" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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 detected15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181312
Markdown1103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin