89% tm-getcomplied-gdpr-wp

Code Review | GetComplied with GDPR for WordPress

WordPress plugin GetComplied with GDPR for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: tm-getcomplied-gd...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 30, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 110
  • Update frequency: every 17.5 days
  • Top authors: RubenMartins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,783 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by GetComplied with GDPR for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.99 ▼3.79
Dashboard /wp-admin3.32 ▲0.0144.41 ▼7.85
Posts /wp-admin/edit.php3.37 ▲0.0149.22 ▲0.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.97 ▼24.94
Media Library /wp-admin/upload.php3.24 ▲0.0134.16 ▼0.65
GetComplied /wp-admin/options-general.php?page=tm_getcomplied_gdpr_wp.admin.class.php3.2729.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GetComplied with GDPR for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.071.64 ▼0.1841.65 ▼0.90
Dashboard /wp-admin2,210 ▲225.80 ▲0.8994.32 ▼14.1839.40 ▼6.51
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0038.72 ▲2.0033.22 ▲0.97
Add New Post /wp-admin/post-new.php1,545 ▲1618.33 ▲0.14599.80 ▼40.0055.32 ▼6.21
Media Library /wp-admin/upload.php1,386 ▲44.20 ▼0.0396.22 ▼2.8142.96 ▼0.43
GetComplied /wp-admin/options-general.php?page=tm_getcomplied_gdpr_wp.admin.class.php1,1012.0223.5967.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

tm-getcomplied-gdpr-wp/tm-getcomplied-gdpr-wp.php 92% from 13 tests

The main PHP file in "GetComplied with GDPR for WordPress" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)

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
Everything looks great! No dangerous files found in this plugin582 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP77175232
CSS236145
SVG101130
PO File1222657
JavaScript10018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.67
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/getcomplied_illustration.png35.06KB13.36KB▼ 61.89%