84% youtube-share-overlay-buttons

Code Review | YouTube Share Overlay Buttons

WordPress plugin YouTube Share Overlay Buttons scored84%from 54 tests.

About plugin

  • Plugin page: youtube-share-ove...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Sep 13, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tranhoang (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,625 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
This plugin's installer ran successfully

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

A check of server-side resources used by YouTube Share Overlay Buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.20 ▼7.67
Dashboard /wp-admin3.31 ▼0.0346.81 ▼13.53
Posts /wp-admin/edit.php3.36 ▲0.0146.40 ▲4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.35 ▼1.42
Media Library /wp-admin/upload.php3.23 ▲0.0035.75 ▲1.19

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

YouTube Share Overlay Buttons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.70 ▲0.271.78 ▲0.0437.45 ▼7.23
Dashboard /wp-admin2,209 ▲214.90 ▲0.03102.55 ▼16.9039.52 ▼4.62
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0540.53 ▲6.3334.90 ▼1.37
Add New Post /wp-admin/post-new.php1,533 ▲1423.27 ▼0.26640.18 ▼37.5052.64 ▼1.50
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.1996.79 ▼7.0140.40 ▼4.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-share-overlay-buttons/function.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-share-overlay-buttons/function.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: youtube shortcode, share, share video, yotube, share tweet...

youtube-share-overlay-buttons/index.php 92% from 13 tests

The main PHP script in "YouTube Share Overlay Buttons" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-share-overlay-buttons.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin67 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS15046
PHP2142021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
There were not PNG files found in your plugin