10% vimeo-video-autoplay-automute

Code Review | Vimeo Video Autoplay Automute

WordPress plugin Vimeo Video Autoplay Automute scored 10% from 54 tests.

About plugin

  • Plugin page: vimeo-video-autop...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0.1
  • WordPress version: 5.9.2
  • First release: Dec 18, 2014
  • Latest release: Dec 18, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rhinokul (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 5,007 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/vimeo-video-autoplay-automute/vvaa.php+42
    Use of undefined constant vvaa - assumed 'vvaa' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼2.51MB] [CPU: ▼351.68ms] Passed 4 tests

Server-side resources used by Vimeo Video Autoplay Automute
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼1.654.33 ▼50.45
Dashboard /wp-admin1.88 ▼1.533.61 ▼28.97
Posts /wp-admin/edit.php1.88 ▼1.763.59 ▼35.05
Add New Post /wp-admin/post-new.php1.88 ▼5.124.50 ▼1,292.26
Media Library /wp-admin/upload.php1.88 ▼1.414.07 ▼23.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Vimeo Video Autoplay Automute
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,922 ▲18016.38 ▲0.669.99 ▲3.112.73 ▲0.09
Dashboard /wp-admin2,903 ▲456.14 ▼0.01125.00 ▼6.01164.37 ▼1.20
Posts /wp-admin/edit.php2,699 ▲293.26 ▲0.0163.45 ▼0.56140.89 ▼3.41
Add New Post /wp-admin/post-new.php1,695 ▼1521.05 ▲0.29429.07 ▼7.68159.53 ▲9.23
Media Library /wp-admin/upload.php1,706 ▲85.93 ▲0.45142.56 ▲2.45188.00 ▼11.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/vimeo-video-autoplay-automute/vvaa.php+42
    Use of undefined constant vvaa - assumed 'vvaa' (this will throw an Error in a future version of PHP)

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vimeo-video-autoplay-automute/vvaa.php:37

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot for how to write vimeo short code into post or page.), #2 (This is the second screen shot corresponding output.)
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

vimeo-video-autoplay-automute/vvaa.php 92% from 13 tests

The entry point to "Vimeo Video Autoplay Automute" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vimeo-video-autoplay-automute.php" instead of "vvaa.php")

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
Good job! No executable or dangerous file extensions detected79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161044
JavaScript12235

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity7.00
▷ Minimum method complexity7.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.37MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png236.15KB69.04KB▼ 70.76%
screenshot-1.png143.07KB41.45KB▼ 71.03%