84% wc-responsive-video

Code Review | Responsive Videos by Angie Makes

WordPress plugin Responsive Videos by Angie Makes scored84%from 54 tests.

About plugin

  • Plugin page: wc-responsive-video
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Jan 18, 2014
  • Latest release: May 10, 2017
  • Number of updates: 34
  • Update frequency: every 35.5 days
  • Top authors: cbaldelomar (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /27,464 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.00MB] [CPU: ▼1.04ms] Passed 4 tests

Server-side resources used by Responsive Videos by Angie Makes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.85 ▲0.09
Dashboard /wp-admin3.31 ▲0.0048.89 ▼2.68
Posts /wp-admin/edit.php3.36 ▲0.0047.26 ▼2.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.91 ▲1.18
Media Library /wp-admin/upload.php3.23 ▲0.0041.15 ▲6.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Videos by Angie Makes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼0.981.76 ▼0.1044.65 ▼0.32
Dashboard /wp-admin2,209 ▲215.86 ▲0.97103.52 ▼5.5142.75 ▼0.87
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0034.75 ▼4.0533.83 ▼2.69
Add New Post /wp-admin/post-new.php1,544 ▲2518.06 ▼5.29683.95 ▲49.9355.43 ▲5.63
Media Library /wp-admin/upload.php1,385 ▼04.09 ▼0.12106.90 ▲0.8446.41 ▼1.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-responsive-video/includes/functions.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-responsive-video/includes/scripts.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wc-responsive-video/wc-responsive-video.php:15

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 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
Please take inspiration from this readme.txt

wc-responsive-video/wc-responsive-video.php Passed 13 tests

The main PHP script in "Responsive Videos by Angie Makes" version 1.11 is automatically included on every request by WordPress
94 characters long description:
Simple responsive video plugin. Automatically determine aspect ratio. CSS only. No Javascript.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin158 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3182983
Markdown130047
CSS10628

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin