83% get-youtube-subs

Code Review | Get Youtube Subs

WordPress plugin Get Youtube Subs scored83%from 54 tests.

About plugin

  • Plugin page: get-youtube-subs
  • Plugin version: 3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2020
  • Latest release: May 13, 2023
  • Number of updates: 11
  • Update frequency: every 81.0 days
  • Top authors: zohaib167 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.00ms] Passed 4 tests

An overview of server-side resources used by Get Youtube Subs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.44 ▼3.82
Dashboard /wp-admin3.34 ▲0.0461.42 ▲1.21
Posts /wp-admin/edit.php3.39 ▲0.0353.26 ▲0.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.85 ▼9.50
Media Library /wp-admin/upload.php3.27 ▲0.0340.58 ▲1.98

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_youtubesubs_widget
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Get Youtube Subs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.82 ▲0.336.03 ▲4.2339.58 ▼7.78
Dashboard /wp-admin2,192 ▲125.63 ▲0.02102.14 ▼0.9853.59 ▲6.27
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0040.33 ▲3.7935.08 ▲0.31
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▲0.01687.37 ▼10.7757.71 ▼3.93
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.03102.01 ▼3.2746.36 ▲0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_youtubesubs_widget

Smoke tests 75% from 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)
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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/get-youtube-subs/includes/youtubesubs-class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-youtube-subs/includes/youtubesubs-scripts.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: youtube subscribers, subcribers count, youtube channel

get-youtube-subs/youtubesubs.php 77% from 13 tests

The main PHP file in "Get Youtube Subs" ver. 3.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 193 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-youtube-subs.php" instead of "youtubesubs.php")

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 plugin96 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3465496
JavaScript1010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin