78% export-users-data-to-csv

Code Review | Export Users Data to CSV

WordPress plugin Export Users Data to CSV scored78%from 54 tests.

About plugin

  • Plugin page: export-users-data...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Feb 4, 2015
  • Number of updates: 9
  • Update frequency: every 3.1 days
  • Top authors: kostikpenzin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /12,963 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.03MB] [CPU: ▲2.34ms] Passed 4 tests

Analyzing server-side resources used by Export Users Data to CSV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.93 ▲6.21
Dashboard /wp-admin3.34 ▲0.0445.76 ▼1.24
Posts /wp-admin/edit.php3.39 ▲0.0349.60 ▲4.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.15 ▲6.97
Media Library /wp-admin/upload.php3.26 ▲0.0335.88 ▼0.49
User Data to CSV /wp-admin/users.php?page=users-data-to-csv3.2829.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Export Users Data to CSV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼0.971.67 ▼0.0537.96 ▼9.89
Dashboard /wp-admin2,207 ▲195.78 ▼0.1297.03 ▼4.9741.06 ▼4.33
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0139.50 ▲2.8234.38 ▲1.79
Add New Post /wp-admin/post-new.php1,517 ▼417.41 ▼5.73582.92 ▼82.4458.41 ▲6.32
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0295.24 ▼4.7940.62 ▼2.43
User Data to CSV /wp-admin/users.php?page=users-data-to-csv9172.0227.9523.23

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=users-data-to-csv
    • > Notice in wp-content/plugins/export-users-data-to-csv/users-data-to-csv.php+132
    Undefined index: start
    • > GET request to /wp-admin/users.php?page=users-data-to-csv
    • > Notice in wp-content/plugins/export-users-data-to-csv/users-data-to-csv.php+134
    Undefined index: end

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-users-data-to-csv/users-data-to-csv.php:20

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)
There were no browser issues found

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
9 plugin tags: export data, admin, users data, users, exporter...

export-users-data-to-csv/users-data-to-csv.php 92% from 13 tests

Analyzing the main PHP file in "Export Users Data to CSV" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("export-users-data-to-csv.php" instead of "users-data-to-csv.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13426137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin