10% sidevideoembed

Code Review | SideVideoEmbed

WordPress plugin SideVideoEmbed scored 10% from 54 tests.

About plugin

  • Plugin page: sidevideoembed
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 5.8.1
  • First release: Jun 8, 2016
  • Latest release: Dec 26, 2017
  • Number of updates: 4
  • Update frequency: every 141.5 days
  • Top authors: webmaric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 586 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/sidevideoembed/sidevideoembed.php+142
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼189.43ms] Passed 4 tests

This is a short check of server-side resources used by SideVideoEmbed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.986.05 ▼12.93
Dashboard /wp-admin1.76 ▼1.295.68 ▼37.32
Posts /wp-admin/edit.php1.76 ▼1.354.97 ▼40.04
Add New Post /wp-admin/post-new.php1.76 ▼3.675.19 ▼647.32
Media Library /wp-admin/upload.php1.76 ▼1.255.96 ▼33.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
widget_syt_plugin

Browser metrics Passed 4 tests

A check of browser resources used by SideVideoEmbed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10215.76 ▲0.128.13 ▼0.5648.59 ▲1.24
Dashboard /wp-admin2,973 ▲395.87 ▼0.14131.61 ▼35.62115.11 ▲5.46
Posts /wp-admin/edit.php2,742 ▲32.70 ▲0.0162.00 ▼5.7296.31 ▲8.04
Add New Post /wp-admin/post-new.php1,502 ▼18118.57 ▼0.24362.86 ▼12.57120.99 ▲9.59
Media Library /wp-admin/upload.php1,813 ▲35.05 ▲0.06144.23 ▼10.32117.93 ▼2.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/sidevideoembed/sidevideoembed.php+142
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_syt_plugin

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidevideoembed/sidevideoembed.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: iframe, sidebar, simple, vimeo, youtube...

sidevideoembed/sidevideoembed.php Passed 13 tests

The entry point to "SideVideoEmbed" version 1.1.0 is a PHP file that has certain tags in its header comment area
26 characters long description:
Sidebar Video embed plugin

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
Success! There were no dangerous files found in this plugin275 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP21427104
PO File34810593
CSS20078

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png153.34KB49.47KB▼ 67.74%