83% securiti-privacy-policy-generator-notice-management

Code Review | Privacy Policy Generator & Notice Management | Securiti

WordPress plugin Privacy Policy Generator & Notice Management | Securiti scored83%from 54 tests.

About plugin

  • Plugin page: securiti-privacy-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.3-5.7.2
  • WordPress version: 6.3.1
  • First release: May 28, 2021
  • Latest release: May 28, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: securitiai (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /455 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.00MB] [CPU: ▼10.00ms] Passed 4 tests

This is a short check of server-side resources used by Privacy Policy Generator & Notice Management | Securiti
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.63 ▼0.42
Dashboard /wp-admin3.32 ▼0.0350.49 ▼15.99
Posts /wp-admin/edit.php3.37 ▲0.0145.80 ▼5.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.60 ▼17.69
Media Library /wp-admin/upload.php3.24 ▲0.0137.34 ▼0.30

Server storage [IO: ▲0.08MB] [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: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
securiti_install_date
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Privacy Policy Generator & Notice Management | Securiti
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.38 ▲0.111.91 ▲0.3142.44 ▼0.58
Dashboard /wp-admin2,203 ▲325.64 ▼0.0385.12 ▼17.0439.54 ▼2.52
Posts /wp-admin/edit.php2,105 ▲52.00 ▼0.0235.92 ▼4.0434.56 ▲0.08
Add New Post /wp-admin/post-new.php6,371 ▲4,84527.73 ▲4.19858.73 ▲209.3436.01 ▼15.21
Media Library /wp-admin/upload.php1,408 ▲84.14 ▼0.0498.29 ▼1.6843.30 ▲1.70

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • securiti_install_date

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function securiti\\add_action() in wp-content/plugins/securiti-privacy-policy-generator-notice-management/src/blocks.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: privacy notice, ccpa, gdpr, privacy policy, cookie policy

securiti-privacy-policy-generator-notice-management/securiti-policy-notice.php 77% from 13 tests

The main file in "Privacy Policy Generator & Notice Management | Securiti" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("securiti-privacy-policy-generator-notice-management.php" instead of "securiti-policy-notice.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin680 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9120220545
PHP244108115
CSS22320

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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
PNG images were not found in this plugin