84% export-wp-users-xml-csv

Code Review | Export Users for WordPress

WordPress plugin Export Users for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: export-wp-users-x...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jul 11, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 25
  • Update frequency: every 59.9 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /33,052 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: ▼9.97ms] Passed 4 tests

Analyzing server-side resources used by Export Users for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.96 ▼2.43
Dashboard /wp-admin3.31 ▲0.0047.00 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▼14.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.55 ▼20.33
Media Library /wp-admin/upload.php3.23 ▲0.0034.58 ▼0.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Export Users for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.34 ▼0.381.83 ▲0.0944.01 ▲1.34
Dashboard /wp-admin2,198 ▲185.62 ▲0.0289.90 ▼1.8838.42 ▼4.19
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0140.88 ▲0.8735.12 ▼4.31
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.29652.37 ▼13.3952.87 ▼7.10
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.08102.23 ▼6.1644.25 ▼1.86

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PMUE_Model' not found in wp-content/plugins/export-wp-users-xml-csv/models/model/record.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PMUE_Controller' not found in wp-content/plugins/export-wp-users-xml-csv/controllers/controller/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PMUE_Model' not found in wp-content/plugins/export-wp-users-xml-csv/models/model/list.php:7
    • > PHP Notice
      Undefined variable: errors in wp-content/plugins/export-wp-users-xml-csv/views/controller/error.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/export-wp-users-xml-csv/views/controller/error.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/export-wp-users-xml-csv/plugin.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

export-wp-users-xml-csv/plugin.php 92% from 13 tests

The main PHP file in "Export Users for WordPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("export-wp-users-xml-csv.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,441 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32172891,715
PHP253115671,632
CSS118094

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity17.47
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes17
▷ Abstract classes317.65%
▷ Concrete classes1482.35%
▷ Final classes214.29%
Methods104
▷ Static methods98.65%
▷ Public methods8985.58%
▷ Protected methods109.62%
▷ Private methods54.81%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants21
▷ Global constants523.81%
▷ Class constants1676.19%
▷ Public constants16100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/preloader.png15.60KB0.13KB▼ 99.17%