89% simple-gdpr-cookies

Code Review | Simple GDPR Cookies

WordPress plugin Simple GDPR Cookies scored89%from 54 tests.

About plugin

  • Plugin page: simple-gdpr-cookies
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: smeechos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 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
Installer ran successfully

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

An overview of server-side resources used by Simple GDPR Cookies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0732.44 ▼8.58
Dashboard /wp-admin3.34 ▲0.0450.15 ▲0.06
Posts /wp-admin/edit.php3.39 ▲0.0447.06 ▼10.33
Add New Post /wp-admin/post-new.php5.92 ▲0.04100.36 ▼2.16
Media Library /wp-admin/upload.php3.27 ▲0.0437.01 ▼1.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple GDPR Cookies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.45 ▼1.119.67 ▲7.9745.48 ▲6.29
Dashboard /wp-admin2,211 ▲345.63 ▼0.0494.64 ▼3.3342.75 ▲2.68
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0735.63 ▼6.5329.57 ▼8.71
Add New Post /wp-admin/post-new.php1,539 ▲1323.50 ▼0.06598.52 ▼98.1248.48 ▼13.62
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.0898.01 ▼11.5544.90 ▼3.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • simple_gdpr_cookies_content_settings
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • simple_gdpr_cookies_modal_settings
    • simple_gdpr_cookies_cookie_settings

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
There were no browser issues found

Optimizations

Plugin configuration 93% 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: eu cookie law, privacy, consent, cookies law, compliance...

simple-gdpr-cookies/simple-gdpr-cookies.php 85% from 13 tests

Analyzing the main PHP file in "Simple GDPR Cookies" version 1.0.0
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,078 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP9126169759
JavaScript63332190
Sass410254
CSS36242
JSON10030
Markdown1103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.12
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin