74% float-block

Code Review | float block

WordPress plugin float block scored74%from 54 tests.

About plugin

  • Plugin page: float-block
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 23, 2016
  • Latest release: Aug 18, 2023
  • Number of updates: 20
  • Update frequency: every 138.2 days
  • Top authors: calliko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,383 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼34.13ms] Passed 4 tests

A check of server-side resources used by float block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.48 ▲2.68
Dashboard /wp-admin3.00 ▼0.3023.13 ▼30.88
Posts /wp-admin/edit.php3.00 ▼0.3522.17 ▼24.37
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.04 ▼67.95
Media Library /wp-admin/upload.php3.00 ▼0.2322.09 ▼13.33
Плавающий блок /wp-admin/options-general.php?page=Computytemplate3.0022.32

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_example

Browser metrics Passed 4 tests

An overview of browser requirements for float block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.111.73 ▲0.1742.95 ▼0.55
Dashboard /wp-admin2,213 ▲255.85 ▼0.0399.49 ▼3.2337.88 ▼6.35
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0235.72 ▼0.3732.13 ▼0.13
Add New Post /wp-admin/post-new.php1,541 ▲823.50 ▲0.41670.99 ▼9.3056.06 ▼2.68
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.1094.84 ▼15.6244.27 ▼4.05
Плавающий блок /wp-admin/options-general.php?page=Computytemplate8162.1822.8227.07

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_example
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Computytemplate
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt Passed 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
3 plugin tags: text, block, float

float-block/float-block-plugin.php 92% from 13 tests

The main PHP file in "float block" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("float-block.php" instead of "float-block-plugin.php")

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
Good job! No executable or dangerous file extensions detected154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1716154

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.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin