88% bulk-add-terms

Code Review | Bulk Add Terms

WordPress plugin Bulk Add Terms scored 88% from 54 tests.

About plugin

  • Plugin page: bulk-add-terms
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.5
  • WordPress version: 5.8.1
  • First release: May 27, 2015
  • Latest release: May 18, 2018
  • Number of updates: 48
  • Update frequency: every 26.9 days
  • Top authors: sohan5005 (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

4,000+ active / 12,009 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼149.27ms] Passed 4 tests

Server-side resources used by Bulk Add Terms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.0935.40 ▲0.95
Dashboard /wp-admin3.16 ▲0.1150.40 ▲6.76
Posts /wp-admin/edit.php3.25 ▲0.1447.82 ▼1.91
Add New Post /wp-admin/post-new.php5.52 ▲0.0994.89 ▼597.10
Media Library /wp-admin/upload.php3.11 ▲0.1136.37 ▲0.98
Bulk Add Terms /wp-admin/options-general.php?page=bulk_add_terms_settings3.0835.92

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Add Terms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,733 ▲16115.85 ▲0.129.15 ▼0.7750.68 ▼0.82
Dashboard /wp-admin3,024 ▲905.93 ▼0.06148.22 ▼5.92107.65 ▼9.95
Posts /wp-admin/edit.php2,796 ▲572.73 ▲0.0166.90 ▲0.3389.77 ▼2.01
Add New Post /wp-admin/post-new.php1,531 ▼5018.80 ▼0.09401.26 ▼12.41108.42 ▼3.11
Media Library /wp-admin/upload.php1,787 ▼205.01 ▼0.01166.69 ▲0.38121.74 ▲2.49
Bulk Add Terms /wp-admin/options-general.php?page=bulk_add_terms_settings1,1282.1076.0896.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bulk-add-terms/bulk-add-terms.php
    • > /wp-content/plugins/bulk-add-terms/includes/options.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-add-terms/includes/class-ts-bulk-add-term-options.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

bulk-add-terms/bulk-add-terms.php 92% from 13 tests

"Bulk Add Terms" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected710 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP619317521
JavaScript1511130
CSS12059

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.00
▷ Minimum class complexity2.00
▷ Maximum class complexity45.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin