10% auto-youtube-summarize

Code Review | Auto Youtube Summarize

WordPress plugin Auto Youtube Summarize scored10%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: 6.3.1
  • 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

100+ active /2,923 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
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function 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: ▼1.77MB] [CPU: ▼60.92ms] Passed 4 tests

This is a short check of server-side resources used by Auto Youtube Summarize
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.236.80 ▼45.76
Dashboard /wp-admin2.25 ▼1.097.74 ▼59.47
Posts /wp-admin/edit.php2.25 ▼1.117.80 ▼43.52
Add New Post /wp-admin/post-new.php2.25 ▼3.646.92 ▼94.91
Media Library /wp-admin/upload.php2.25 ▼0.986.64 ▼31.78
Auto Youtube Summarize /wp-admin/options-general.php?page=auto-youtube-summarize2.257.17
Force Video Extraction Now /wp-admin/options-general.php?page=exec_ays_get_movie2.258.76

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 21 new options
New WordPress options
ays_maxResults
widget_recent-comments
ays_afterTemplateText
ays_commentTemplateText
ays_postCommentCount
ays_postTemplateText
ays_publishedAfter
widget_theysaidso_widget
ays_commentCount
ays_descriptionIndex
...

Browser metrics Passed 4 tests

A check of browser resources used by Auto Youtube Summarize
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.26 ▼0.511.61 ▼0.7443.72 ▼16.26
Dashboard /wp-admin2,203 ▲265.53 ▼0.0884.38 ▼4.8038.52 ▼4.41
Posts /wp-admin/edit.php2,108 ▲51.97 ▼0.0039.36 ▲0.9735.55 ▲3.64
Add New Post /wp-admin/post-new.php1,543 ▲1718.35 ▼4.73699.48 ▲0.2986.27 ▲21.87
Media Library /wp-admin/upload.php1,399 ▼14.20 ▲0.06101.35 ▼17.1442.17 ▼5.58
Auto Youtube Summarize /wp-admin/options-general.php?page=auto-youtube-summarize1,2601.8128.18134.62
Force Video Extraction Now /wp-admin/options-general.php?page=exec_ays_get_movie7641.9925.0126.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function 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.)
  • This plugin did not uninstall successfully, leaving 21 options in the database
    • ays_commentTemplateText
    • ays_descriptionIndex
    • ays_authkey
    • ays_commentTemplateName
    • ays_postTemplateText
    • widget_recent-comments
    • ays_keywords
    • ays_afterTemplateText
    • ays_postMovieDescription
    • ays_postFirstContent
    • ...

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
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=exec_ays_get_movie
    • > User notice in wp-includes/functions.php+5905
    Function 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 fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-youtube-summarize/auto-youtube-summarize.php:27
    • > 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/setting.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-youtube-summarize/admin/install.php:4

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

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

This is the main PHP file of "Auto Youtube Summarize" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this 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

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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_4.png18.47KB9.00KB▼ 51.27%
includes/image/install_guide_2.png87.95KB44.23KB▼ 49.71%
includes/image/install_guide_5.png146.52KB75.81KB▼ 48.26%
includes/image/install_guide_3.png92.58KB39.58KB▼ 57.25%
includes/image/install_guide_1.png38.74KB17.29KB▼ 55.37%