83% bulk-user-editor

Code Review | Bulk Fields Editor

WordPress plugin Bulk Fields Editor scored83%from 54 tests.

About plugin

  • Plugin page: bulk-user-editor
  • Plugin version: 1.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2017
  • Latest release: Feb 15, 2020
  • Number of updates: 53
  • Update frequency: every 20.5 days
  • Top authors: munger41 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /3,132 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.90ms] Passed 4 tests

Analyzing server-side resources used by Bulk Fields Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1539.53 ▲1.24
Dashboard /wp-admin3.46 ▲0.1147.37 ▼9.48
Posts /wp-admin/edit.php3.57 ▲0.2145.79 ▲0.73
Add New Post /wp-admin/post-new.php6.06 ▲0.1780.11 ▼11.96
Media Library /wp-admin/upload.php3.38 ▲0.1536.67 ▲1.10
Bulk Edit Users /wp-admin/users.php?page=bulk-edit-users3.4331.35
Bulk Edit Posts /wp-admin/edit.php?page=bulk-edit-posts3.3331.66

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Fields Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.43 ▼0.211.82 ▲0.2043.39 ▲2.42
Dashboard /wp-admin2,232 ▲476.08 ▲1.26107.22 ▲0.0139.14 ▼3.82
Posts /wp-admin/edit.php2,115 ▲262.75 ▲0.7047.40 ▲10.7336.51 ▲4.15
Add New Post /wp-admin/post-new.php1,534 ▲118.12 ▼4.94643.37 ▼25.2834.79 ▼29.21
Media Library /wp-admin/upload.php1,414 ▲235.34 ▲1.10104.77 ▲1.1140.40 ▼4.73
Bulk Edit Users /wp-admin/users.php?page=bulk-edit-users1,0102.3834.8838.82
Bulk Edit Posts /wp-admin/edit.php?page=bulk-edit-posts9422.4933.0426.71

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

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=bulk-edit-posts
    • > Notice in wp-content/plugins/bulk-user-editor/bulkUserEditor.php+519
    Undefined variable: instance
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=bulk-edit-posts
    • > Notice in wp-content/plugins/bulk-user-editor/bulkUserEditor.php+519
    Trying to access array offset on value of type null

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in bulk-user-editor/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

bulk-user-editor/bulkUserEditor.php 92% from 13 tests

The primary PHP file in "Bulk Fields Editor" version 1.8.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bulk-user-editor.php" instead of "bulkUserEditor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin24,631 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65,2013,93820,839
CSS8881242,457
PHP114166814
HTML19616447
JSON10074

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity91.00
▷ Minimum class complexity91.00
▷ Maximum class complexity91.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/jqueryui/1.12.1/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
libs/jqueryui/1.12.1/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
libs/jqueryui/1.12.1/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
libs/jqueryui/1.12.1/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
libs/jqueryui/1.12.1/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%