78% gdpr-dsgvo-google-maps

Code Review | GDPR / DSGVo Secure Google Maps

WordPress plugin GDPR / DSGVo Secure Google Maps scored78%from 54 tests.

About plugin

  • Plugin page: gdpr-dsgvo-google...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jun 28, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: udlis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by GDPR / DSGVo Secure Google Maps
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.66 ▼1.65
Dashboard /wp-admin3.32 ▲0.0249.81 ▼4.45
Posts /wp-admin/edit.php3.37 ▲0.0249.31 ▼6.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.35 ▼5.19
Media Library /wp-admin/upload.php3.24 ▲0.0236.75 ▼2.10
GDPR / DSGVO Google Maps /wp-admin/options-general.php?page=ocgml3.1831.97

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
ocgml_option_name
widget_recent-comments
widget_recent-posts
ocgml_title
ocgml_sub_title
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GDPR / DSGVo Secure Google Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.101.84 ▲0.2542.21 ▼2.47
Dashboard /wp-admin2,210 ▲194.87 ▼1.02108.18 ▲5.0842.01 ▼1.20
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0238.76 ▼1.6632.86 ▼3.78
Add New Post /wp-admin/post-new.php1,545 ▲1218.19 ▼4.94612.50 ▼103.7853.63 ▼4.46
Media Library /wp-admin/upload.php1,392 ▲14.14 ▼0.0798.01 ▼3.1744.00 ▼2.81
GDPR / DSGVO Google Maps /wp-admin/options-general.php?page=ocgml8432.0522.4330.97

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
These items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • ocgml_title
    • theysaidso_admin_options
    • ocgml_option_name
    • ocgml_sub_title
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=ocgml
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ocgml
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-dsgvo-google-maps/google_map_page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-dsgvo-google-maps/google_map_page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gdpr-dsgvo-google-maps/shortcode/google_map_shortcode.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
You can look at the official readme.txt

gdpr-dsgvo-google-maps/google-maps-load.php 92% from 13 tests

The entry point to "GDPR / DSGVo Secure Google Maps" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gdpr-dsgvo-google-maps.php" instead of "google-maps-load.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin95 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3111495

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.46MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png347.44KB103.17KB▼ 70.31%
screenshot-1.png74.82KB37.21KB▼ 50.26%
screenshot-2.png48.87KB22.41KB▼ 54.15%