84% digxcel

Code Review | GDPR - WP Plugin

WordPress plugin GDPR - WP Plugin scored84%from 54 tests.

About plugin

  • Plugin page: digxcel
  • Plugin version: 1...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: May 17, 2018
  • Latest release: Jul 6, 2018
  • Number of updates: 19
  • Update frequency: every 2.7 days
  • Top authors: ianluddy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.53MB] [CPU: ▼13.45ms] Passed 4 tests

A check of server-side resources used by GDPR - WP Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.61 ▲0.39
Dashboard /wp-admin3.47 ▲0.1747.07 ▼2.12
Posts /wp-admin/edit.php3.57 ▲0.2144.05 ▼0.89
Add New Post /wp-admin/post-new.php3.30 ▼2.5935.47 ▼51.19
Media Library /wp-admin/upload.php3.41 ▲0.1834.51 ▲0.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GDPR - WP Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.25 ▼1.402.12 ▲0.0143.94 ▼2.32
Dashboard /wp-admin2,222 ▲315.84 ▲0.93108.81 ▼4.5244.01 ▲0.50
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0437.72 ▼0.5933.38 ▼1.98
Add New Post /wp-admin/post-new.php1,546 ▲1323.13 ▼0.04674.72 ▼4.8951.10 ▼3.95
Media Library /wp-admin/upload.php1,404 ▲194.21 ▼0.0696.06 ▼11.5943.95 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/digxcel/delete-request.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/digxcel/delete-request.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/digxcel/delete-request.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/digxcel/delete-request.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/digxcel/delete-request.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/digxcel/delete-request.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: privacy, general data protection regulation, data, eu, gdpr...

digxcel/digxcel.php 92% from 13 tests

The principal PHP file in "GDPR - WP Plugin" v. 1... is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")

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 plugin921 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP912035487
Markdown1760312
JavaScript1180117
CSS1005

PHP code Passed 2 tests

An overview of 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.36
Average class complexity8.22
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods2060.61%
▷ Protected methods00.00%
▷ Private methods1339.39%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png3.18KB1.61KB▼ 49.56%
assets/screenshot-1.png42.46KB11.87KB▼ 72.05%