94% floating-content

Code Review | Float Content

WordPress plugin Float Content scored 94% from 54 tests.

About plugin

  • Plugin page: floating-content
  • Plugin version:
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1
  • WordPress version: 5.8.1
  • First release: Aug 25, 2016
  • Latest release: Mar 5, 2019
  • Number of updates: 24
  • Update frequency: every 38.8 days
  • Top authors: neerajmaurya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 3,568 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.77ms] Passed 4 tests

Server-side resources used by Float Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.76 ▲0.0424.54 ▲3.72
Dashboard /wp-admin3.10 ▲0.0544.75 ▲1.36
Posts /wp-admin/edit.php3.16 ▲0.0538.77 ▼7.32
Add New Post /wp-admin/post-new.php5.46 ▲0.0387.20 ▼560.83
Media Library /wp-admin/upload.php3.05 ▲0.0532.59 ▼0.28

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Float Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲21916.37 ▲0.7814.83 ▲5.6644.98 ▼0.38
Dashboard /wp-admin2,996 ▲595.89 ▼0.07137.40 ▼11.14108.09 ▲3.84
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0063.12 ▼1.2086.47 ▲2.79
Add New Post /wp-admin/post-new.php1,631 ▲5021.40 ▲7.09296.43 ▼116.38110.86 ▼5.98
Media Library /wp-admin/upload.php1,829 ▲224.99 ▼0.01155.84 ▼5.93116.91 ▼6.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/floating-content/floating-content.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

floating-content/floating-content.php Passed 13 tests

The principal PHP file in "Float Content" v. is loaded by WordPress automatically on each request
21 characters long description:
Float content plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin684 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings