83% export-users-csv-records

Code Review | User Information to CSV

WordPress plugin User Information to CSV scored83%from 54 tests.

About plugin

  • Plugin page: export-users-csv-...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jignasa06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by User Information to CSV
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.04 ▼3.53
Dashboard /wp-admin3.31 ▲0.0143.22 ▼3.77
Posts /wp-admin/edit.php3.36 ▲0.0044.52 ▼0.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.90 ▼9.98
Media Library /wp-admin/upload.php3.23 ▲0.0035.68 ▲2.26
Export Users /wp-admin/tools.php?page=wp-export-users3.2131.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Information to CSV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.23 ▼1.141.83 ▼0.2443.46 ▼1.63
Dashboard /wp-admin2,213 ▲255.85 ▼0.0597.45 ▼6.0441.07 ▼0.64
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.1937.55 ▼0.6134.17 ▲1.06
Add New Post /wp-admin/post-new.php1,536 ▲1723.34 ▲0.12667.86 ▼25.1255.76 ▲1.56
Media Library /wp-admin/upload.php1,395 ▲74.32 ▲0.0998.25 ▼11.3341.58 ▼6.00
Export Users /wp-admin/tools.php?page=wp-export-users7612.0524.7423.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-users-csv-records/export-users-csv-records.php:19

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #0 in export-users-csv-records/assets to your readme.txt
  • Screenshots: Add images for these screenshots: #1 (Click Export Users menu from left side navigation menu), #2 (Click the above link to download the CSV file after users exported successfully.)
Please take inspiration from this readme.txt

export-users-csv-records/export-users-csv-records.php 85% from 13 tests

"User Information to CSV" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "4.1")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.2.4" instead of "5.6.20")

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 detected74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151274

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin