79% video-destacado

Code Review | Video Destacado

WordPress plugin Video Destacado scored79%from 54 tests.

About plugin

  • Plugin page: video-destacado
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Jul 1, 2020
  • Number of updates: 70
  • Update frequency: every 39.9 days
  • Top authors: airtonvancin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /6,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Video Destacado
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.10 ▼0.63
Dashboard /wp-admin3.36 ▲0.0550.78 ▲2.41
Posts /wp-admin/edit.php3.41 ▲0.0550.94 ▲4.95
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.90 ▼21.66
Media Library /wp-admin/upload.php3.28 ▲0.0534.37 ▼3.58
Featured Video /wp-admin/options-general.php?page=video-destacado3.2231.65

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
video_destacado_attachment
video_destacado_active
video_destacado_post
video_destacado_page

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Destacado
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.78 ▲0.761.89 ▲0.0940.49 ▼5.92
Dashboard /wp-admin2,214 ▲264.88 ▼1.0095.89 ▼19.8039.89 ▼6.43
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0841.22 ▲3.3234.99 ▼5.36
Add New Post /wp-admin/post-new.php1,529 ▼423.36 ▲0.05616.48 ▼67.2564.07 ▲1.29
Media Library /wp-admin/upload.php1,396 ▲84.25 ▲0.0899.36 ▼8.2540.26 ▼8.73
Featured Video /wp-admin/options-general.php?page=video-destacado8582.0627.2325.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • video_destacado_page
    • video_destacado_active
    • db_upgraded
    • video_destacado_attachment
    • video_destacado_post
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=video-destacado
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=video-destacado
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/video-destacado/video-destacado-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-destacado/video-destacado-assets.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-destacado/video-destacado-metabox.php:3

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
8 plugin tags: youtube, videos, add, post type, featured...

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

The primary PHP file in "Video Destacado" version 1.5.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
Insert a video posted to Youtube for posts, pages and custom post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin616 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP74863221
JavaScript22049205
PO File2242483
Markdown140079
JSON10021
CSS1017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin