74% disable-floc-easily

Code Review | Disable FLoC Easily

WordPress plugin Disable FLoC Easily scored74%from 54 tests.

About plugin

  • Plugin page: disable-floc-easily
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: May 4, 2021
  • Number of updates: 18
  • Update frequency: every 0.7 days
  • Top authors: websiteguiderteam1618 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.21MB] [CPU: ▼42.30ms] Passed 4 tests

An overview of server-side resources used by Disable FLoC Easily
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6915.91 ▼26.68
Dashboard /wp-admin2.81 ▼0.5015.20 ▼36.76
Posts /wp-admin/edit.php2.81 ▼0.5517.64 ▼28.48
Add New Post /wp-admin/post-new.php2.81 ▼3.0816.55 ▼77.26
Media Library /wp-admin/upload.php2.81 ▼0.4215.23 ▼20.65
Disable FLoC /wp-admin/options-general.php?page=disable-floc-easily2.8115.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable FLoC Easily
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.66 ▼0.891.64 ▼0.3542.52 ▼6.54
Dashboard /wp-admin2,212 ▲244.82 ▼0.9998.97 ▼22.9038.48 ▼7.43
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0534.43 ▼2.3439.56 ▲7.20
Add New Post /wp-admin/post-new.php1,537 ▲423.27 ▲0.14686.08 ▲20.5868.93 ▲10.62
Media Library /wp-admin/upload.php1,394 ▲124.21 ▲0.0493.68 ▼7.6440.33 ▼0.29
Disable FLoC /wp-admin/options-general.php?page=disable-floc-easily8702.0123.8233.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/disable-floc-easily/classes/class-disable-floc-easily-admin.php+27
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=disable-floc-easily
    • > Notice in wp-content/plugins/disable-floc-easily/classes/class-disable-floc-easily-admin.php+27
    Trying to access array offset on value of type bool

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
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: floc

disable-floc-easily/disable-floc-easily.php Passed 13 tests

The primary PHP file in "Disable FLoC Easily" version 1.2 is used by WordPress to initiate all plugin functionality
54 characters long description:
Easiest way to disable the Google's FLoC in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected306 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44627236
CSS115170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/websiteguider_logo.png4.88KB3.61KB▼ 26.00%