73% geounit-maps

Code Review | GDPR & DSGVO Compliant Maps | GeoUNIT Maps

WordPress plugin GDPR & DSGVO Compliant Maps | GeoUNIT Maps scored73%from 54 tests.

About plugin

  • Plugin page: geounit-maps
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 32
  • Update frequency: every 6.6 days
  • Top authors: unit08 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /939 total downloads

Benchmarks

Plugin footprint 64% 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: ▲5.35MB] [CPU: ▲20.92ms] 50% from 4 tests

This is a short check of server-side resources used by GDPR & DSGVO Compliant Maps | GeoUNIT Maps
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,265.77ms on /wp-admin/admin.php?page=geounit-maps)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.35MB on /wp-admin/admin.php?page=geounit-maps)
PageMemory (MB)CPU Time (ms)
Home /9.21 ▲5.7572.02 ▲27.52
Dashboard /wp-admin9.23 ▲5.8975.62 ▲13.13
Posts /wp-admin/edit.php9.24 ▲5.8880.52 ▲29.32
Add New Post /wp-admin/post-new.php9.74 ▲3.86123.87 ▲13.70
Media Library /wp-admin/upload.php9.23 ▲6.0180.78 ▲43.52
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.2461.67
GDPR & DSGVO Compliant Maps | GeoUNIT Maps /wp-admin/admin.php?page=geounit-maps9.242,265.77

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 215 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
fs_accounts
fs_active_plugins
theysaidso_admin_options
can_compress_scripts
fs_debug_mode

Browser metrics Passed 4 tests

GDPR & DSGVO Compliant Maps | GeoUNIT Maps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.26 ▼1.401.90 ▲0.3727.85 ▼12.70
Dashboard /wp-admin2,223 ▲385.84 ▲0.9399.93 ▼4.4942.44 ▼1.06
Posts /wp-admin/edit.php2,109 ▲202.06 ▲0.0636.98 ▲0.1336.98 ▲1.52
Add New Post /wp-admin/post-new.php6,417 ▲4,88422.80 ▼0.551,000.37 ▲302.3656.88 ▲1.02
Media Library /wp-admin/upload.php1,408 ▲204.08 ▼0.13112.62 ▲4.7651.38 ▲4.04
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0831.8327.8529.65
GDPR & DSGVO Compliant Maps | GeoUNIT Maps /wp-admin/admin.php?page=geounit-maps9771.7124.9959.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/geounit-maps/lib/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • fs_accounts
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • fs_debug_mode
    • fs_active_plugins
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/geounit-maps/build/geounit-maps-block/render.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/geounit-maps/elementor/custom-control/image-selector-control.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/geounit-maps/build/geounit-maps-block/render.php:18
    • > PHP Warning
      array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/geounit-maps/build/geounit-maps-block/render.php on line 6

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

geounit-maps/geounit-maps.php Passed 13 tests

The entry point to "GDPR & DSGVO Compliant Maps | GeoUNIT Maps" version 0.1.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
This plugin adds a Gutenberg block to display gdpr compliant maps from GeoUNIT servers. No 2 click or cookie consent tools needed

Code Analysis 97% from 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
There were no executable files found in this plugin34,506 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP1248,04517,24033,433
CSS186527632
JavaScript64667291
JSON200150

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity86.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,278
▷ Static methods19915.57%
▷ Public methods88469.17%
▷ Protected methods201.56%
▷ Private methods37429.26%
Functions105
▷ Named functions10297.14%
▷ Anonymous functions32.86%
Constants148
▷ Global constants10067.57%
▷ Class constants4832.43%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.39MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/positron-gl-style.png31.24KB19.66KB▼ 37.09%
lib/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
lib/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
lib/images/marker-icon-2x.png2.41KB2.52KB0.00%
lib/images/marker-icon.png1.43KB1.55KB0.00%