84% bulk-term-editor

Code Review | Bulk Term Editor

WordPress plugin Bulk Term Editor scored84%from 54 tests.

About plugin

  • Plugin page: bulk-term-editor
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2016
  • Latest release: Jun 29, 2023
  • Number of updates: 28
  • Update frequency: every 96.1 days
  • Top authors: yuyahoshino (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /3,628 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.94ms] Passed 4 tests

A check of server-side resources used by Bulk Term Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.81 ▼2.34
Dashboard /wp-admin3.32 ▲0.0144.57 ▼1.54
Posts /wp-admin/edit.php3.37 ▲0.0147.87 ▼3.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.05 ▼0.08
Media Library /wp-admin/upload.php3.24 ▲0.0132.34 ▼0.21
Bulk Term Editor /wp-admin/tools.php?page=bulk_term_editor3.2131.81

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Term Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.211.90 ▼0.5442.33 ▼1.60
Dashboard /wp-admin2,207 ▲164.86 ▼1.02103.72 ▲0.0441.65 ▼0.98
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0439.87 ▼4.1035.72 ▼1.79
Add New Post /wp-admin/post-new.php1,536 ▲2223.34 ▲5.87596.11 ▼39.0050.91 ▼1.14
Media Library /wp-admin/upload.php1,392 ▲14.31 ▼0.0198.94 ▼1.1043.05 ▼2.81
Bulk Term Editor /wp-admin/tools.php?page=bulk_term_editor9081.7124.6530.66

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

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/bulk-term-editor/bulk-term-editor.php:36

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (This is the initial screen.) image required
You can look at the official readme.txt

bulk-term-editor/bulk-term-editor.php Passed 13 tests

The main PHP script in "Bulk Term Editor" version 1.1.3 is automatically included on every request by WordPress
115 characters long description:
You can register or edit terms in bulk. Copy cells in the spreadsheet, all that remains is to paste to this plugin.

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 plugin308 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13836264
JavaScript15037
CSS1337

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/format.png17.04KB13.38KB▼ 21.48%
screenshot-1.png35.63KB16.17KB▼ 54.60%