89% skyboot-subscribe-button-for-youtube

Code Review | Skyboot Subscribe Button for Youtube

WordPress plugin Skyboot Subscribe Button for Youtube scored89%from 54 tests.

About plugin

  • Plugin page: skyboot-subscribe...
  • Plugin version: 1....
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 30, 2019
  • Latest release: Aug 12, 2020
  • Number of updates: 7
  • Update frequency: every 41.4 days
  • Top authors: skybootstrap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.23ms] Passed 4 tests

This is a short check of server-side resources used by Skyboot Subscribe Button for Youtube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.44 ▼1.86
Dashboard /wp-admin3.34 ▼0.0148.32 ▼16.75
Posts /wp-admin/edit.php3.39 ▲0.0351.44 ▼0.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.57 ▼21.67
Media Library /wp-admin/upload.php3.26 ▲0.0339.70 ▲6.13

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_skyboot_youtube_subscrib_button
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Skyboot Subscribe Button for Youtube
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.17 ▼1.368.99 ▲7.2339.85 ▼0.82
Dashboard /wp-admin2,195 ▲145.55 ▼0.1688.05 ▼15.6238.96 ▼5.73
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0340.25 ▲1.2234.59 ▼4.04
Add New Post /wp-admin/post-new.php1,528 ▲223.32 ▼0.15628.46 ▼53.3857.70 ▲4.30
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.02103.24 ▼0.8645.00 ▼2.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_skyboot_youtube_subscrib_button
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: subscribe, subscribe button widget, youtube subscribe button, youtube subscribe

skyboot-subscribe-button-for-youtube/skyboot-youtube-subscribe-button.php 77% from 13 tests

The main PHP script in "Skyboot Subscribe Button for Youtube" version 1.... is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("skyboot-subscribe-button-for-youtube.php" instead of "skyboot-youtube-subscribe-button.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1....")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2282083

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected