84% user-export-with-their-meta-data

Code Review | Export Users With Meta

WordPress plugin Export Users With Meta scored 84% from 54 tests.

About plugin

  • Plugin page: user-export-with-...
  • Plugin version: 0.6.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Nov 19, 2022
  • Number of updates: 34
  • Update frequency: every 35.1 days
  • Top authors: loureirorg (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active / 28,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼0.20ms] Passed 4 tests

Server-side resources used by Export Users With Meta
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4944.64 ▲6.04
Dashboard /wp-admin3.80 ▲0.4951.42 ▲3.80
Posts /wp-admin/edit.php3.85 ▲0.4951.35 ▲5.87
Add New Post /wp-admin/post-new.php6.31 ▲0.4388.80 ▼11.58
Media Library /wp-admin/upload.php3.66 ▲0.4335.48 ▲1.11
Export to CSV /wp-admin/users.php?page=uewm_settings3.7338.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 264 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Export Users With Meta: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.57 ▼0.241.65 ▼0.0543.36 ▼7.98
Dashboard /wp-admin2,213 ▲225.91 ▲0.89100.87 ▼3.0339.63 ▼0.65
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0236.21 ▲1.4330.53 ▼5.00
Add New Post /wp-admin/post-new.php1,536 ▼1123.42 ▲5.31594.21 ▼9.6553.65 ▼8.16
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0395.74 ▼7.9242.03 ▼2.02
Export to CSV /wp-admin/users.php?page=uewm_settings1,2412.6746.5428.80

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however 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
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-export-with-their-meta-data/src/Users.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/user-export-with-their-meta-data/src/Users.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'SettingsAsWoocommerce\\Woocommerce\\WC_Settings_Page' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/loureirorg/settings-as-woocommerce/src/Tab.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'SettingsAsWoocommerce\\Tab' not found in wp-content/plugins/user-export-with-their-meta-data/src/SettingsPage.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Csv\\AbstractCsv' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/Reader.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/InvalidArgument.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'League\\Csv\\ByteSequence' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/AbstractCsv.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/SyntaxError.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/CannotInsertRecord.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Csv\\Exception' not found in wp-content/plugins/user-export-with-their-meta-data/vendor/league/csv/src/UnavailableStream.php:16

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: export, users, meta

user-export-with-their-meta-data/user-export-with-their-meta.php 85% from 13 tests

The entry point to "Export Users With Meta" version 0.6.10 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("user-export-with-their-meta-data.php" instead of "user-export-with-their-meta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin23,809 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1734,1321,09516,738
PHP591,1623,3704,523
Markdown565301,270
Sass1216910614
CSS3597432
JSON300232

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.79
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces7
Interfaces3
Traits0
Classes40
▷ Abstract classes37.50%
▷ Concrete classes3792.50%
▷ Final classes410.81%
Methods390
▷ Static methods8020.51%
▷ Public methods34387.95%
▷ Protected methods4010.26%
▷ Private methods71.79%
Functions13
▷ Named functions538.46%
▷ Anonymous functions861.54%
Constants25
▷ Global constants00.00%
▷ Class constants25100.00%
▷ Public constants2184.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin