78% export-user-data

Code Review | Export User Data

WordPress plugin Export User Data scored 78% from 54 tests.

About plugin

  • Plugin page: export-user-data
  • Plugin version: 2.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Dec 28, 2021
  • Number of updates: 128
  • Update frequency: every 23.9 days
  • Top authors: qlstudio (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

10,000+ active / 227,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.12ms] Passed 4 tests

An overview of server-side resources used by Export User Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.72 ▼8.51
Dashboard /wp-admin3.31 ▲0.0046.64 ▼0.19
Posts /wp-admin/edit.php3.36 ▲0.0044.14 ▼5.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.63 ▼2.08
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▲1.73

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 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 Export User Data
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.004.76 ▲2.9542.45 ▲2.29
Dashboard /wp-admin2,197 ▲95.84 ▲0.9798.50 ▼19.1839.59 ▼4.38
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0136.97 ▼4.3836.94 ▲0.37
Add New Post /wp-admin/post-new.php1,514 ▼017.85 ▼5.66599.53 ▼85.1351.61 ▼0.92
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0097.39 ▼11.6742.05 ▼2.84

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/examples/ex05-numbers-250k-rows.php
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/examples/ex06-strings-250k-rows.php
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/examples/ex02-formats.php
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/example.php
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/examples/ex09-autofilter.php
    • > /wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/examples/ex10-freeze-rows-columns.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Notice
      Trying to access array offset on value of type int in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/xlsxwriter.class.php on line 804
    • > PHP Warning
      include_once(wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/testbench/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/testbench/xlsxwriter.class.Test.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'XLSXWriter' not found in wp-content/plugins/export-user-data/vendor/PHP_XLSXWriter/testbench/xlsxwriter.class.Test.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Example of Admin Export View) image not found
The official readme.txt might help

export-user-data/export-user-data.php 92% from 13 tests

Analyzing the main PHP file in "Export User Data" version 2.2.6
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected5,498 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP319676962,817
CSS23791761,588
PO File4132132393
JavaScript17416380
Markdown3900241
Bourne Shell23143
JSON31036

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity33.77
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods106
▷ Static methods3835.85%
▷ Public methods8681.13%
▷ Protected methods1413.21%
▷ Private methods65.66%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/admin/css/image/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
library/admin/css/image/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
screenshot-1.png134.21KB51.27KB▼ 61.80%
library/admin/css/image/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
library/admin/css/image/switch.png3.01KB0.64KB▼ 78.70%