90% rev-responsive-embedded-video

Code Review | REV - Responsive Embedded Video

WordPress plugin REV - Responsive Embedded Video scored90%from 54 tests.

About plugin

  • Plugin page: rev-responsive-em...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2019
  • Latest release: Jan 16, 2022
  • Number of updates: 13
  • Update frequency: every 69.2 days
  • Top authors: everardonggon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by REV - Responsive Embedded Video
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.28 ▼1.39
Dashboard /wp-admin3.34 ▲0.0349.05 ▼2.20
Posts /wp-admin/edit.php3.39 ▲0.0350.70 ▼2.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.26 ▼4.02
Media Library /wp-admin/upload.php3.26 ▲0.0339.13 ▲2.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for REV - Responsive Embedded Video
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.34 ▲0.131.65 ▼0.4740.92 ▼2.41
Dashboard /wp-admin2,197 ▲175.67 ▲0.0984.64 ▼13.2137.82 ▼4.26
Posts /wp-admin/edit.php2,099 ▼41.98 ▼0.0537.24 ▼5.4835.47 ▲1.77
Add New Post /wp-admin/post-new.php1,528 ▲223.31 ▲0.26639.29 ▼2.3359.80 ▲4.52
Media Library /wp-admin/upload.php1,405 ▲54.22 ▼0.11101.94 ▼4.7944.59 ▼1.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: embed, video, vimeo, youtube, responsive

rev-responsive-embedded-video/rev-responsive-embedded-video.php Passed 13 tests

The entry point to "REV - Responsive Embedded Video" version 1.2.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Easiest way to embed Youtube and Vimeo videos in responsive way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin111 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1179102
CSS1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected