10% auto-youtube-summarize

Code Review | Auto Youtube Summarize

WordPress plugin Auto Youtube Summarize scored 10% from 54 tests.

About plugin

  • Plugin page: auto-youtube-summ...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.1
  • WordPress version: 5.9.2
  • First release: Jun 4, 2019
  • Latest release: Aug 29, 2019
  • Number of updates: 14
  • Update frequency: every 19.7 days
  • Top authors: ryokurosu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 1,839 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼2.51MB] [CPU: ▼353.70ms] Passed 4 tests

This is a short check of server-side resources used by Auto Youtube Summarize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼1.655.56 ▼54.37
Dashboard /wp-admin1.88 ▼1.535.74 ▼31.50
Posts /wp-admin/edit.php1.88 ▼1.764.95 ▼38.19
Add New Post /wp-admin/post-new.php1.88 ▼5.125.79 ▼1,290.74
Media Library /wp-admin/upload.php1.88 ▼1.414.87 ▼28.24
Force Video Extraction Now /wp-admin/options-general.php?page=exec_ays_get_movie1.885.60
Auto Youtube Summarize /wp-admin/options-general.php?page=auto-youtube-summarize1.885.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 15 new options
New WordPress options
ays_authkey
ays_descriptionIndex
ays_maxResults
ays_afterTemplateText
ays_order
ays_publishedAfter
ays_postCommentCount
ays_postMovieDescription
ays_commentTemplateName
ays_postFirstContent
...

Browser metrics Passed 4 tests

Checking browser requirements for Auto Youtube Summarize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.43 ▼0.6410.24 ▲2.143.00 ▼0.36
Dashboard /wp-admin2,902 ▲416.15 ▼0.06140.39 ▼21.74181.58 ▼6.86
Posts /wp-admin/edit.php2,695 ▲103.23 ▼0.0171.86 ▼0.28166.03 ▲6.33
Add New Post /wp-admin/post-new.php1,723 ▲8814.58 ▼6.01534.17 ▲49.32178.61 ▲3.62
Media Library /wp-admin/upload.php1,705 ▲105.45 ▼0.08202.13 ▲24.94253.42 ▲23.96
Force Video Extraction Now /wp-admin/options-general.php?page=exec_ays_get_movie9642.3765.84106.53
Auto Youtube Summarize /wp-admin/options-general.php?page=auto-youtube-summarize1,6942.7763.01339.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 15 options in the database
    • ays_commentCount
    • ays_postCommentCount
    • ays_descriptionIndex
    • ays_maxResults
    • ays_postMovieDescription
    • ays_postFirstContent
    • ays_commentTemplateName
    • ays_authkey
    • ays_keywords
    • ays_commentName
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=auto-youtube-summarize
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-youtube-summarize/admin/setting.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-youtube-summarize/admin/index.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-youtube-summarize/admin/addon.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-youtube-summarize/admin/install.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-youtube-summarize/auto-youtube-summarize.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

auto-youtube-summarize/auto-youtube-summarize.php Passed 13 tests

"Auto Youtube Summarize" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
This is a better and simple way to auto youtube summary posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,296 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7147152945
PO File1117101208
CSS22811142
JavaScript1061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity23.50
▷ Minimum class complexity16.00
▷ Maximum class complexity31.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods2974.36%
▷ Protected methods00.00%
▷ Private methods1025.64%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
5 PNG files occupy 0.38MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/image/install_guide_1.png38.74KB17.29KB▼ 55.37%
includes/image/install_guide_5.png146.52KB75.81KB▼ 48.26%
includes/image/install_guide_3.png92.58KB39.58KB▼ 57.25%
includes/image/install_guide_2.png87.95KB44.23KB▼ 49.71%
includes/image/install_guide_4.png18.47KB9.00KB▼ 51.27%