84% piskotkigdpr

Code Review | Piškotki GDPR Plugin

WordPress plugin Piškotki GDPR Plugin scored84%from 54 tests.

About plugin

  • Plugin page: piskotkigdpr
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jun 15, 2023
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: agencijapakt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /102 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.10MB] [CPU: ▼4.88ms] Passed 4 tests

An overview of server-side resources used by Piškotki GDPR Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0947.90 ▲8.46
Dashboard /wp-admin3.41 ▲0.1139.83 ▼7.68
Posts /wp-admin/edit.php3.53 ▲0.1745.37 ▼3.25
Add New Post /wp-admin/post-new.php5.99 ▲0.1183.28 ▼10.10
Media Library /wp-admin/upload.php3.34 ▲0.1135.00 ▲1.53
piskotkiGDPR /wp-admin/options-general.php?page=piskotki-gdpr3.3133.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Piškotki GDPR Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.39 ▼1.013.41 ▲1.6450.54 ▲8.49
Dashboard /wp-admin2,224 ▲355.07 ▲0.12113.76 ▲9.6543.31 ▲2.15
Posts /wp-admin/edit.php2,115 ▲232.32 ▲0.2840.64 ▼0.1831.60 ▼3.01
Add New Post /wp-admin/post-new.php1,540 ▲718.54 ▼4.86595.79 ▼39.2333.56 ▼20.78
Media Library /wp-admin/upload.php1,412 ▲244.48 ▲0.2798.54 ▼0.8440.37 ▼1.54
piskotkiGDPR /wp-admin/options-general.php?page=piskotki-gdpr1,9642.4678.6544.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piskotkigdpr/piskotki-gdpr.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pikot, spletne strani, uredba, gdpr, spletna stran...

piskotkigdpr/piskotki-gdpr.php 85% from 13 tests

The main PHP script in "Piškotki GDPR Plugin" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "6.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("piskotkigdpr.php" instead of "piskotki-gdpr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected533 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28354531
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/piskotkigdpr.png5.56KB6.20KB0.00%