90% gdpr-press

Code Review | GDPRess | Eliminate external requests to increase GDPR compliance

WordPress plugin GDPRess | Eliminate external requests to increase GDPR compliance scored90%from 54 tests.

About plugin

  • Plugin page: gdpr-press
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Sep 5, 2022
  • Number of updates: 19
  • Update frequency: every 10.6 days
  • Top authors: DaanvandenBergh (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /7,268 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.71ms] 75% from 4 tests

An overview of server-side resources used by GDPRess | Eliminate external requests to increase GDPR compliance
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,014.52ms on /wp-admin/options-general.php?page=gdpr-press)
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.07 ▲2.24
Dashboard /wp-admin3.55 ▲0.2144.38 ▼10.97
Posts /wp-admin/edit.php3.60 ▲0.2549.93 ▲4.10
Add New Post /wp-admin/post-new.php6.07 ▲0.1878.27 ▼18.04
Media Library /wp-admin/upload.php3.41 ▲0.1835.01 ▼0.06
GDPRess /wp-admin/options-general.php?page=gdpr-press3.491,014.52

Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

GDPRess | Eliminate external requests to increase GDPR compliance: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.25 ▼1.371.55 ▼0.4837.36 ▼4.55
Dashboard /wp-admin2,210 ▲285.03 ▼0.82112.24 ▲11.1542.78 ▼0.94
Posts /wp-admin/edit.php2,090 ▲12.04 ▼0.0134.24 ▼0.7731.17 ▼1.15
Add New Post /wp-admin/post-new.php1,536 ▲1923.31 ▲5.71637.75 ▼13.0439.60 ▼12.94
Media Library /wp-admin/upload.php1,392 ▲44.25 ▼0.0193.18 ▼1.8542.33 ▲0.51
GDPRess /wp-admin/options-general.php?page=gdpr-press8612.1727.2657.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: dsvgo, 3rd party, minimize, requests, gdpr...

gdpr-press/gdpr-press.php Passed 13 tests

The entry point to "GDPRess | Eliminate external requests to increase GDPR compliance" version 1.2.3 is a PHP file that has certain tags in its header comment area
48 characters long description:
Easily eliminate external requests with GDPRess.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,639 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP143127991,139
CSS1012207
LESS14311205
JavaScript112769
Markdown114019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.46
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods91
▷ Static methods1213.19%
▷ Public methods5560.44%
▷ Protected methods00.00%
▷ Private methods3639.56%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants21
▷ Global constants838.10%
▷ Class constants1361.90%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-color.png1.53KB1.47KB▼ 3.76%