84% video-embeds

Code Review | Video Embeds

WordPress plugin Video Embeds scored84%from 54 tests.

About plugin

  • Plugin page: video-embeds
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 21, 2013
  • Latest release: Dec 21, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: ryan.burnette (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,401 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
Installer ran successfully

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

An overview of server-side resources used by Video Embeds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.72 ▼10.39
Dashboard /wp-admin3.31 ▲0.0146.36 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0147.63 ▲2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.44 ▼23.10
Media Library /wp-admin/upload.php3.23 ▲0.0136.80 ▲2.39
Video Embeds /wp-admin/options-general.php?page=rbve3.2534.98

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options
rbve_youtube_options
widget_recent-comments
rbve_vimeo_options
db_upgraded
rbve_fitvids
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
rbve_version

Browser metrics Passed 4 tests

Checking browser requirements for Video Embeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.12 ▼1.564.56 ▲2.3640.59 ▼3.03
Dashboard /wp-admin2,213 ▲224.88 ▼0.0099.17 ▼3.6438.29 ▼3.18
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0539.74 ▼3.8136.08 ▼0.47
Add New Post /wp-admin/post-new.php1,537 ▲1823.11 ▼0.10653.51 ▲57.0763.33 ▲12.70
Media Library /wp-admin/upload.php1,392 ▲104.21 ▲0.0398.98 ▲2.0042.72 ▼0.52
Video Embeds /wp-admin/options-general.php?page=rbve1,3211.8523.8027.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • rbve_fitvids
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • rbve_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • rbve_vimeo_options
    • rbve_youtube_options

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
Good news, no errors were detected

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 items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-embeds/video-embeds.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-embeds/pages/settings.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-embeds/lib/fitvids.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: embed, video, shortcode, youtube, vimeo

video-embeds/video-embeds.php Passed 13 tests

"Video Embeds" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Just another plugin that creates shortcodes for embedding videos in posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin440 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP79627387
JavaScript213453

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
There are no PNG files in this plugin