84% gdpr-easycloud

Code Review | GDPR Easycloud

WordPress plugin GDPR Easycloud scored 84% from 54 tests.

About plugin

  • Plugin page: gdpr-easycloud
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2018
  • Latest release: Feb 12, 2019
  • Number of updates: 17
  • Update frequency: every 13.5 days
  • Top authors: Cristal88 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.03ms] Passed 4 tests

An overview of server-side resources used by GDPR Easycloud
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.53 ▼3.30
Dashboard /wp-admin3.33 ▲0.0347.58 ▲3.53
Posts /wp-admin/edit.php3.38 ▲0.0351.69 ▲7.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.89 ▲13.48
Media Library /wp-admin/upload.php3.26 ▲0.0330.51 ▲0.40
GDPR settings /wp-admin/options-general.php?page=gdpr-option-admin3.2235.66

Server storage [IO: ▲0.05MB] [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, 7 new options
New WordPress options
theysaidso_admin_options
gdpr_option
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GDPR Easycloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲5413.31 ▼1.562.83 ▲1.0736.68 ▼7.57
Dashboard /wp-admin2,209 ▲34.84 ▲0.0199.65 ▼11.9538.31 ▼3.15
Posts /wp-admin/edit.php2,095 ▲92.02 ▼0.0239.90 ▲3.5835.35 ▲1.47
Add New Post /wp-admin/post-new.php1,547 ▲523.32 ▲5.11659.04 ▲18.4255.54 ▲1.63
Media Library /wp-admin/upload.php1,394 ▲94.22 ▲0.1399.50 ▲3.8347.90 ▲5.36
GDPR settings /wp-admin/options-general.php?page=gdpr-option-admin9302.0531.0038.80

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • gdpr_option
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gdpr-easycloud/gdpr-easycloud.php

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

gdpr-easycloud/gdpr-easycloud.php 92% from 13 tests

The main file in "GDPR Easycloud" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected924 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12559418
JavaScript15639344
PO File14143117
CSS24345

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin