94% ezigdpr-eu-blocker

Code Review | Ezi GDPR EU Visitor Blocker

WordPress plugin Ezi GDPR EU Visitor Blocker scored 94% from 53 tests.

About plugin

  • Plugin page: ezigdpr-eu-blocker
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 5.8.1
  • First release: Jun 26, 2018
  • Latest release: Jun 27, 2018
  • Number of updates: 7
  • Update frequency: every 14.1 days
  • Top authors: ezigdpr (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 564 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼265.06ms] Passed 4 tests

A check of server-side resources used by Ezi GDPR EU Visitor Blocker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.0729.02 ▼6.27
Dashboard /wp-admin3.09 ▲0.0449.91 ▲4.33
Posts /wp-admin/edit.php3.14 ▲0.0441.55 ▲1.14
Add New Post /wp-admin/post-new.php5.45 ▲0.0292.33 ▼1,045.23
Media Library /wp-admin/upload.php3.03 ▲0.0332.40 ▼9.88

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Ezi GDPR EU Visitor Blocker: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,700 ▲9416.40 ▲0.469.15 ▲1.5051.34 ▼0.14
Dashboard /wp-admin2,953 ▲1005.92 ▲0.03144.78 ▲12.14116.72 ▲25.93
Posts /wp-admin/edit.php2,726 ▲202.69 ▼0.0069.00 ▲0.8795.44 ▼3.45
Add New Post /wp-admin/post-new.php1,669 ▲1618.11 ▼0.59366.57 ▼2.18116.21 ▲5.05
Media Library /wp-admin/upload.php1,807 ▲355.02 ▲0.01166.64 ▲10.20115.48 ▼22.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
The smoke test was a success, however most plugin functionality was not tested

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× PHP files output text when accessed directly:
    • > /wp-content/plugins/ezigdpr-eu-blocker/ezigdpr-eu-blocker.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
5 plugin tags: geolocation, eu, traffic blocker, gdpr, privacy

ezigdpr-eu-blocker/ezigdpr-eu-blocker.php 92% from 13 tests

Analyzing the main PHP file in "Ezi GDPR EU Visitor Blocker" version 1.1
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14453153

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected