89% basic-gdpr-alert

Code Review | Basic GDPR Alert

WordPress plugin Basic GDPR Alert scored89%from 54 tests.

About plugin

  • Plugin page: basic-gdpr-alert
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 11, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: J4cob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.24ms] Passed 4 tests

This is a short check of server-side resources used by Basic GDPR Alert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.09 ▼5.24
Dashboard /wp-admin3.31 ▲0.0148.92 ▼3.57
Posts /wp-admin/edit.php3.36 ▲0.0149.88 ▲0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.88 ▼5.02
Media Library /wp-admin/upload.php3.24 ▲0.0137.82 ▼3.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basic GDPR Alert
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.35 ▼0.062.17 ▲0.0143.75 ▼7.27
Dashboard /wp-admin2,195 ▲155.64 ▲0.0291.78 ▼7.8843.18 ▲0.03
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0440.05 ▲1.4333.32 ▼3.60
Add New Post /wp-admin/post-new.php1,526 ▼220.94 ▼2.04570.64 ▼46.9156.29 ▲0.86
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.1199.05 ▼6.0944.11 ▼1.46

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
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

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

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: Please a description for screenshot #3 in basic-gdpr-alert/assets to your readme.txt
The official readme.txt might help

basic-gdpr-alert/basic-gdpr-alert.php 92% from 13 tests

The main PHP file in "Basic GDPR Alert" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin245 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24655176
CSS24035
JavaScript25834

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin