84% users2csv

Code Review | Users to Csv

WordPress plugin Users to Csv scored84%from 54 tests.

About plugin

  • Plugin page: users2csv
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: May 28, 2013
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: welaika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,828 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.19ms] Passed 4 tests

An overview of server-side resources used by Users to Csv
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.44 ▼7.20
Dashboard /wp-admin3.34 ▲0.0448.36 ▲1.71
Posts /wp-admin/edit.php3.39 ▲0.0448.20 ▼0.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.89 ▼5.84
Media Library /wp-admin/upload.php3.26 ▲0.0435.05 ▲1.20
Export to Csv /wp-admin/users.php?page=Export-to-Csv3.2432.23

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Users to Csv
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.101.73 ▼1.0644.45 ▲0.29
Dashboard /wp-admin2,210 ▲195.88 ▲1.00101.11 ▲0.1040.54 ▲2.30
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0339.54 ▲2.6934.71 ▲0.87
Add New Post /wp-admin/post-new.php1,517 ▼017.48 ▼0.16637.52 ▼23.7248.65 ▼4.23
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0098.10 ▲1.5041.47 ▼1.38
Export to Csv /wp-admin/users.php?page=Export-to-Csv9502.0224.1929.27

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/users2csv/users2csv.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === users2csv === )
You can take inspiration from this readme.txt

users2csv/users2csv.php 92% from 13 tests

"Users to Csv" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12641148
Markdown1608

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin