10% aklamator-float-video-on-your-blog

Code Review | Aklamator - Float Video on your blog

WordPress plugin Aklamator - Float Video on your blog scored10%from 54 tests.

About plugin

  • Plugin page: aklamator-float-v...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Jul 3, 2018
  • Number of updates: 11
  • Update frequency: every 17.6 days
  • Top authors: aklamator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,135 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
You still need to fix the following installer errors
  • 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.09MB] [CPU: ▼8.02ms] Passed 4 tests

A check of server-side resources used by Aklamator - Float Video on your blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.28 ▼1.25
Dashboard /wp-admin3.40 ▲0.0945.27 ▼12.16
Posts /wp-admin/edit.php3.45 ▲0.0947.45 ▲0.31
Add New Post /wp-admin/post-new.php5.98 ▲0.0979.37 ▼18.98
Media Library /wp-admin/upload.php3.32 ▲0.0937.53 ▲4.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Aklamator - Float Video on your blog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.19 ▼1.561.65 ▼0.3445.55 ▼1.19
Dashboard /wp-admin2,218 ▲274.91 ▲0.01101.73 ▼6.9180.17 ▲36.78
Posts /wp-admin/edit.php2,101 ▲331.99 ▼0.0235.61 ▼0.5633.44 ▼0.82
Add New Post /wp-admin/post-new.php1,536 ▲123.26 ▲0.00714.51 ▲37.9256.69 ▼4.80
Media Library /wp-admin/upload.php1,394 ▲64.22 ▲0.04111.62 ▲12.5877.92 ▲35.34

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
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/aklamator-float-video-on-your-blog/aklamator-float-video-on-your-blog.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === aklamator-float-video-on-your-blog === )
Please take inspiration from this readme.txt

aklamator-float-video-on-your-blog/aklamator-float-video-on-your-blog.php 92% from 13 tests

"Aklamator - Float Video on your blog" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,117 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP116346580
CSS1118158398
JavaScript1017139

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity24.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.46MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/aklamator-icon.png1.72KB0.55KB▼ 68.08%
images/teaser-810x262.png279.89KB88.35KB▼ 68.43%
assets/dataTables/images/sort_asc.png1.11KB0.17KB▼ 84.28%
images/logo.png107.35KB30.40KB▼ 71.69%
assets/dataTables/images/sort_desc_disabled.png1.09KB0.17KB▼ 84.55%