84% surbma-gdpr-multisite-privacy

Code Review | Surbma | GDPR Multisite Privacy

WordPress plugin Surbma | GDPR Multisite Privacy scored 84% from 54 tests.

About plugin

  • Plugin page: surbma-gdpr-multi...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2018
  • Latest release: Apr 8, 2023
  • Number of updates: 13
  • Update frequency: every 129.9 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 963 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Surbma | GDPR Multisite Privacy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.81 ▲0.43
Dashboard /wp-admin3.34 ▲0.0446.96 ▼0.00
Posts /wp-admin/edit.php3.39 ▲0.0453.17 ▲4.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.22 ▲5.55
Media Library /wp-admin/upload.php3.26 ▲0.0344.49 ▲10.90

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Surbma | GDPR Multisite Privacy: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.061.88 ▲0.1041.33 ▼9.97
Dashboard /wp-admin2,206 ▲185.89 ▲0.9995.71 ▼16.2040.55 ▼6.80
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0542.01 ▲6.2036.58 ▲2.15
Add New Post /wp-admin/post-new.php1,544 ▲1118.44 ▼4.66642.37 ▲30.3255.68 ▲10.11
Media Library /wp-admin/upload.php1,385 ▼64.15 ▼0.06102.02 ▲3.6946.67 ▲2.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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 | 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/surbma-gdpr-multisite-privacy/surbma-gdpr-multisite-privacy.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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: user, multisite, surbma, security, gdpr...

surbma-gdpr-multisite-privacy/surbma-gdpr-multisite-privacy.php 92% from 13 tests

The entry point to "Surbma | GDPR Multisite Privacy" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin61 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1199158
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.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%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin