84% hide-related-video-youtube

Code Review | Hide Related Video Youtube

WordPress plugin Hide Related Video Youtube scored84%from 54 tests.

About plugin

  • Plugin page: hide-related-vide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: Jan 17, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: TranHoangQuoc (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /8,899 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.41ms] Passed 4 tests

Analyzing server-side resources used by Hide Related Video Youtube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.32 ▼0.30
Dashboard /wp-admin3.31 ▲0.0149.59 ▼2.13
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.33 ▼4.59
Media Library /wp-admin/upload.php3.23 ▲0.0042.69 ▲2.57

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Hide Related Video Youtube
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▲0.091.75 ▼0.0144.43 ▲0.18
Dashboard /wp-admin2,195 ▲155.61 ▲0.0186.09 ▼6.4738.78 ▼0.73
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0434.37 ▼7.2836.10 ▼1.78
Add New Post /wp-admin/post-new.php1,531 ▲522.94 ▼0.66686.31 ▲0.9662.44 ▲12.43
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.04105.30 ▼12.0145.07 ▼5.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hide-related-video-youtube/hide-related-video-youtube.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === hide-related-video-youtube === )
You can look at the official readme.txt

hide-related-video-youtube/hide-related-video-youtube.php Passed 13 tests

The main PHP file in "Hide Related Video Youtube" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
This is a plugin remove related video other chanel when you use YouTube oEmbed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151335

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin