84% responsive-embed-videos

Code Review | Responsive Embed Videos

WordPress plugin Responsive Embed Videos scored84%from 54 tests.

About plugin

  • Plugin page: responsive-embed-...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Dec 14, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: kywyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,278 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.01MB] [CPU: ▼6.75ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Embed Videos
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.31 ▼2.16
Dashboard /wp-admin3.32 ▲0.0143.82 ▼9.06
Posts /wp-admin/edit.php3.37 ▲0.0141.91 ▼3.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.27 ▼12.03
Media Library /wp-admin/upload.php3.24 ▲0.0132.84 ▼1.42

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

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

Browser metrics Passed 4 tests

Responsive Embed Videos: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.62 ▼0.689.54 ▲7.7641.84 ▼1.44
Dashboard /wp-admin2,203 ▲125.79 ▲0.9196.16 ▼20.0037.47 ▼9.36
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0035.37 ▼0.5538.38 ▲4.84
Add New Post /wp-admin/post-new.php1,519 ▲223.14 ▲5.44662.94 ▼3.1856.36 ▲7.37
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.0298.07 ▲1.7643.53 ▼0.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though no errors were found, 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-embed-videos/responsive-embed-videos.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: youtube, player, simple, responsive, vimeo...

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

The primary PHP file in "Responsive Embed Videos" version 0.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP151158
JavaScript14023
CSS1209

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin