10% aklamator-youtube-your-blog

Code Review | Aklamator - Youtube Your Blog

WordPress plugin Aklamator - Youtube Your Blog scored10%from 54 tests.

About plugin

  • Plugin page: aklamator-youtube...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: Jan 26, 2018
  • Number of updates: 21
  • Update frequency: every 45.1 days
  • Top authors: aklamator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,920 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'set_up_options_aklamator_YT' not found or invalid function name

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.23ms] Passed 4 tests

Analyzing server-side resources used by Aklamator - Youtube Your Blog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.58 ▼6.89
Dashboard /wp-admin3.42 ▲0.1250.96 ▲0.76
Posts /wp-admin/edit.php3.54 ▲0.1851.19 ▲3.43
Add New Post /wp-admin/post-new.php6.00 ▲0.1298.39 ▼8.90
Media Library /wp-admin/upload.php3.35 ▲0.1237.88 ▼1.87

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_aklamator_youtube_widget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aklamator - Youtube Your Blog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.25 ▼0.101.80 ▼0.1845.32 ▲3.28
Dashboard /wp-admin2,195 ▲155.53 ▼0.0784.29 ▼7.8572.98 ▲27.07
Posts /wp-admin/edit.php2,115 ▲181.99 ▲0.0535.78 ▼1.2634.20 ▼1.86
Add New Post /wp-admin/post-new.php1,554 ▲2823.10 ▼0.57685.25 ▲27.3060.38 ▲9.93
Media Library /wp-admin/upload.php1,406 ▲124.21 ▼0.05105.31 ▲0.5989.46 ▲43.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_aklamator_youtube_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/aklamator-youtube-your-blog/aklamator-youtube-your-blog.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === aklamator-youtube-your-blog === )
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can look at the official readme.txt

aklamator-youtube-your-blog/aklamator-youtube-your-blog.php 92% from 13 tests

The main file in "Aklamator - Youtube Your Blog" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 344 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,205 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP119647668
CSS1118158398
JavaScript1017139

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.50
▷ Minimum class complexity13.00
▷ Maximum class complexity48.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions6
▷ Named functions6100.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
8 PNG files occupy 0.36MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dataTables/images/sort_desc.png1.10KB0.17KB▼ 84.15%
assets/dataTables/images/sort_asc_disabled.png1.09KB0.17KB▼ 84.66%
assets/dataTables/images/sort_asc.png1.11KB0.17KB▼ 84.28%
assets/dataTables/images/sort_both.png1.11KB0.25KB▼ 77.46%
images/teaser-810x262.png279.89KB88.35KB▼ 68.43%