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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 72.02 ▲27.52 |
Dashboard /wp-admin | 9.23 ▲5.89 | 75.62 ▲13.13 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 80.52 ▲29.32 |
Add New Post /wp-admin/post-new.php | 9.74 ▲3.86 | 123.87 ▲13.70 |
Media Library /wp-admin/upload.php | 9.23 ▲6.01 | 80.78 ▲43.52 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.24 | 61.67 |
GDPR & DSGVO Compliant Maps | GeoUNIT Maps /wp-admin/admin.php?page=geounit-maps | 9.24 | 2,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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.26 ▼1.40 | 1.90 ▲0.37 | 27.85 ▼12.70 |
Dashboard /wp-admin | 2,223 ▲38 | 5.84 ▲0.93 | 99.93 ▼4.49 | 42.44 ▼1.06 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.06 ▲0.06 | 36.98 ▲0.13 | 36.98 ▲1.52 |
Add New Post /wp-admin/post-new.php | 6,417 ▲4,884 | 22.80 ▼0.55 | 1,000.37 ▲302.36 | 56.88 ▲1.02 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.08 ▼0.13 | 112.62 ▲4.76 | 51.38 ▲4.04 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,083 | 1.83 | 27.85 | 29.65 |
GDPR & DSGVO Compliant Maps | GeoUNIT Maps /wp-admin/admin.php?page=geounit-maps | 977 | 1.71 | 24.99 | 59.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,045 | 17,240 | 33,433 |
CSS | 18 | 65 | 27 | 632 |
JavaScript | 6 | 46 | 67 | 291 |
JSON | 2 | 0 | 0 | 150 |
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 code | 0.63 |
Average class complexity | 86.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,278 | |
▷ Static methods | 199 | 15.57% |
▷ Public methods | 884 | 69.17% |
▷ Protected methods | 20 | 1.56% |
▷ Private methods | 374 | 29.26% |
Functions | 105 | |
▷ Named functions | 102 | 97.14% |
▷ Anonymous functions | 3 | 2.86% |
Constants | 148 | |
▷ Global constants | 100 | 67.57% |
▷ Class constants | 48 | 32.43% |
▷ Public constants | 48 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/positron-gl-style.png | 31.24KB | 19.66KB | ▼ 37.09% |
lib/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
lib/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
lib/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
lib/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |