90% gdpr-notification

Code Review | GDPR Notification

WordPress plugin GDPR Notification scored90%from 54 tests.

About plugin

  • Plugin page: gdpr-notification
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Jun 11, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: prulancer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by GDPR Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.46 ▼3.70
Dashboard /wp-admin3.33 ▲0.0345.12 ▼5.00
Posts /wp-admin/edit.php3.38 ▲0.0250.92 ▲2.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.85 ▲0.05
Media Library /wp-admin/upload.php3.25 ▲0.0237.89 ▲2.25

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

Browser metrics Passed 4 tests

GDPR Notification: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.21 ▼1.451.86 ▼0.0137.13 ▼16.24
Dashboard /wp-admin2,219 ▲315.83 ▲0.9698.16 ▼14.9039.74 ▼4.05
Posts /wp-admin/edit.php2,108 ▲191.98 ▼0.0338.83 ▲2.5035.11 ▲2.11
Add New Post /wp-admin/post-new.php1,555 ▲2723.22 ▲0.14714.66 ▼3.5172.43 ▲13.15
Media Library /wp-admin/upload.php1,404 ▲164.21 ▼0.0393.22 ▼6.8741.68 ▼6.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

gdpr-notification/gdpr-notification.php Passed 13 tests

This is the main PHP file of "GDPR Notification" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
GDPR Notification can allow to display notification bar at footer of wordpress pages.

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
No dangerous file extensions were detected176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41524176

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.56
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%
Constants3
▷ Global constants3100.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 files were detected