88% privacy-security-compliance

Code Review | Essert Privacy Compliance

WordPress plugin Essert Privacy Compliance scored 88% from 54 tests.

About plugin

  • Plugin page: privacy-security-...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Nov 25, 2022
  • Number of updates: 6
  • Update frequency: every 21.7 days
  • Top authors: dvsub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.99ms] Passed 4 tests

Server-side resources used by Essert Privacy Compliance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1139.82 ▼3.10
Dashboard /wp-admin3.45 ▲0.1446.37 ▼1.06
Posts /wp-admin/edit.php3.54 ▲0.1946.06 ▼1.56
Add New Post /wp-admin/post-new.php6.12 ▲0.2482.37 ▼13.94
Media Library /wp-admin/upload.php3.39 ▲0.1631.82 ▼5.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Essert Privacy Compliance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.19 ▼1.161.71 ▼0.2344.54 ▼7.15
Dashboard /wp-admin2,217 ▲265.86 ▼0.05112.01 ▲8.2565.27 ▲19.51
Posts /wp-admin/edit.php2,100 ▲142.02 ▼0.0334.80 ▼3.8037.34 ▲2.32
Add New Post /wp-admin/post-new.php1,533 ▲1923.23 ▲5.54746.96 ▲55.3364.88 ▼3.09
Media Library /wp-admin/upload.php1,402 ▲144.24 ▼0.01114.60 ▲2.4445.91 ▼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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0, #0 in privacy-security-compliance/assets to your readme.txt
  • Screenshots: These screenshots require images: #1 (Setup), #2 (Policies that are part of public disclosure), #3 (Privacy request forms (DSAR) to address privacy requests), #4 (FAQs)
  • Tags: You are using too many tags: 21 tag instead of maximum 10
You can take inspiration from this readme.txt

privacy-security-compliance/essert-privacy-compliance.php 77% from 13 tests

"Essert Privacy Compliance" version 1.3'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("privacy-security-compliance.php" instead of "essert-privacy-compliance.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 564 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected16,312 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON30015,861
PHP64734277
Markdown143090
JavaScript45184

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity13.75
▷ Minimum class complexity6.00
▷ Maximum class complexity24.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes250.00%
▷ Concrete classes250.00%
▷ Final classes00.00%
Methods17
▷ Static methods1270.59%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
images/icon.png1.26KB0.98KB▼ 22.08%