84% manage-privacy-options

Code Review | Manage Privacy Options Page

WordPress plugin Manage Privacy Options Page scored84%from 54 tests.

About plugin

  • Plugin page: manage-privacy-op...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: May 27, 2020
  • Number of updates: 24
  • Update frequency: every 30.6 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /15,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.23ms] Passed 4 tests

This is a short check of server-side resources used by Manage Privacy Options Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.94 ▼2.75
Dashboard /wp-admin3.32 ▲0.0243.22 ▼4.15
Posts /wp-admin/edit.php3.38 ▲0.0244.99 ▼3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.57 ▼10.51
Media Library /wp-admin/upload.php3.25 ▲0.0234.50 ▲1.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Manage Privacy Options Page: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼1.101.66 ▼0.3741.41 ▼2.34
Dashboard /wp-admin2,206 ▲154.87 ▼0.03106.79 ▼1.2642.80 ▼3.02
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1338.62 ▲0.7836.92 ▲2.48
Add New Post /wp-admin/post-new.php1,534 ▲123.36 ▲0.16588.27 ▼57.3257.80 ▲2.58
Media Library /wp-admin/upload.php1,385 ▲34.19 ▼0.06100.59 ▼0.1941.95 ▼4.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manage-privacy-options/baw-manage-privacy-options.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: rgpd, gdpr, privacy

manage-privacy-options/baw-manage-privacy-options.php 92% from 13 tests

"Manage Privacy Options Page" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("manage-privacy-options.php" instead of "baw-manage-privacy-options.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17869

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin