10% aklamator-twitch-videofloat

Code Review | Aklamator - Twitch Videofloat

WordPress plugin Aklamator - Twitch Videofloat scored10%from 54 tests.

About plugin

  • Plugin page: aklamator-twitch-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: Jul 16, 2018
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: aklamator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,030 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > 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_FV' not found or invalid function name

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.70ms] Passed 4 tests

This is a short check of server-side resources used by Aklamator - Twitch Videofloat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.45 ▲7.53
Dashboard /wp-admin3.39 ▲0.0950.16 ▲2.83
Posts /wp-admin/edit.php3.44 ▲0.0944.49 ▼10.69
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.10 ▼21.11
Media Library /wp-admin/upload.php3.31 ▲0.0939.22 ▲2.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Aklamator - Twitch Videofloat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.19 ▼1.121.89 ▲0.2945.14 ▼3.17
Dashboard /wp-admin2,209 ▲185.86 ▲0.92108.78 ▲5.3777.82 ▲35.06
Posts /wp-admin/edit.php2,101 ▲122.03 ▲0.0237.33 ▼4.7336.58 ▲1.91
Add New Post /wp-admin/post-new.php1,528 ▼1423.24 ▲5.01698.86 ▲105.2463.29 ▲13.97
Media Library /wp-admin/upload.php1,397 ▲94.19 ▼0.0292.60 ▼7.2375.72 ▲32.55

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/aklamator-twitch-videofloat/aklamator-twitch-videofloat.php:40

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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === aklamator-twitch-videofloat === )
The official readme.txt is a good inspiration

aklamator-twitch-videofloat/aklamator-twitch-videofloat.php 92% from 13 tests

The main file in "Aklamator - Twitch Videofloat" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,076 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP115946539
CSS1118158398
JavaScript1017139

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.45MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/teaser-810x262.png279.89KB88.35KB▼ 68.43%
assets/dataTables/images/sort_asc_disabled.png1.09KB0.17KB▼ 84.66%
images/aklamator-icon.png1.72KB0.55KB▼ 68.08%
assets/dataTables/images/sort_desc_disabled.png1.09KB0.17KB▼ 84.55%
images/promo-300x200.png77.36KB27.52KB▼ 64.43%