90% disable-floc

Code Review | Disable Topics API

WordPress plugin Disable Topics API scored90%from 54 tests.

About plugin

  • Plugin page: disable-floc
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Sep 1, 2023
  • Number of updates: 13
  • Update frequency: every 66.9 days
  • Top authors: roytanck (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /3,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.59ms] Passed 4 tests

Server-side resources used by Disable Topics API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.35 ▼4.52
Dashboard /wp-admin3.32 ▼0.0347.88 ▼12.93
Posts /wp-admin/edit.php3.37 ▲0.0149.73 ▲0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.89 ▼10.98
Media Library /wp-admin/upload.php3.24 ▲0.0134.40 ▼5.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Topics API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.061.71 ▼0.0744.54 ▲1.24
Dashboard /wp-admin2,206 ▲154.89 ▲0.02111.45 ▲8.1244.05 ▲5.33
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0142.08 ▼1.7036.27 ▲0.93
Add New Post /wp-admin/post-new.php1,533 ▲1323.07 ▼0.59671.09 ▲12.3059.67 ▲6.83
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0897.03 ▼2.6240.96 ▼3.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
6 plugin tags: tracking, topics api, privacy, google, api...

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

Analyzing the main PHP file in "Disable Topics API" version 1.3
57 characters long description:
Disables Topics API tracking for your website's visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222244

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin