90% wp-video-floater

Code Review | WP Video Floater

WordPress plugin WP Video Floater scored90%from 54 tests.

About plugin

  • Plugin page: wp-video-floater
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Nov 17, 2015
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: ttiagorrodrigues (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.94ms] Passed 4 tests

Server-side resources used by WP Video Floater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.79 ▼6.97
Dashboard /wp-admin3.31 ▲0.0145.96 ▼2.02
Posts /wp-admin/edit.php3.36 ▲0.0147.08 ▲1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.65 ▲5.54
Media Library /wp-admin/upload.php3.23 ▲0.0133.05 ▼0.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Video Floater
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.36 ▼1.021.57 ▼0.1442.02 ▲3.25
Dashboard /wp-admin2,206 ▲154.88 ▼0.94109.23 ▼0.0141.23 ▼2.50
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0140.84 ▲4.2736.47 ▲5.05
Add New Post /wp-admin/post-new.php1,533 ▲1023.41 ▲0.09607.10 ▼68.5357.18 ▲4.50
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0398.25 ▼7.7241.63 ▼1.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The SRP test was a success

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: float, scroll, page, video, iframe...

wp-video-floater/wpvideofloater.php 92% from 13 tests

"WP Video Floater" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-video-floater.php" instead of "wpvideofloater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin51 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP251022
JavaScript21619
CSS10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions2
▷ Named functions2100.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