83% my-wp-responsive-video

Code Review | WP Responsive Video

WordPress plugin WP Responsive Video scored83%from 54 tests.

About plugin

  • Plugin page: my-wp-responsive-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 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
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Responsive Video
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.03 ▼4.77
Dashboard /wp-admin3.34 ▲0.0450.55 ▲5.11
Posts /wp-admin/edit.php3.39 ▲0.0447.74 ▲3.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.67 ▼18.82
Media Library /wp-admin/upload.php3.27 ▲0.0432.39 ▼1.80

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Responsive Video
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.45 ▼1.279.32 ▲7.5343.19 ▼0.55
Dashboard /wp-admin2,213 ▲455.63 ▲0.1092.75 ▼7.0537.36 ▼10.10
Posts /wp-admin/edit.php2,115 ▲152.00 ▼0.0241.49 ▲5.0736.37 ▼0.63
Add New Post /wp-admin/post-new.php1,543 ▲623.04 ▲4.53656.86 ▲8.4550.17 ▼16.19
Media Library /wp-admin/upload.php1,415 ▲184.21 ▲0.0393.37 ▼4.0740.16 ▼2.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • 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
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-wp-responsive-video/video-shortcdoes.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (How to use shortcode in editor.), #2 (Another demo.)
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

my-wp-responsive-video/video-shortcdoes.php 85% from 13 tests

"WP Responsive Video" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 252 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-wp-responsive-video.php" instead of "video-shortcdoes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin327 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17351201
JavaScript31837105
CSS13121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshort.png103.10KB26.31KB▼ 74.48%
img/shadow-top.png5.20KB6.27KB0.00%
js/youtube.png1.85KB1.26KB▼ 31.75%
js/vimeo.png1.67KB1.01KB▼ 39.66%