78% bulk-edit-for-learndash

Code Review | Bulk Edit for Learndash

WordPress plugin Bulk Edit for Learndash scored78%from 54 tests.

About plugin

  • Plugin page: bulk-edit-for-lea...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 27, 2022
  • Latest release: Aug 20, 2022
  • Number of updates: 12
  • Update frequency: every 17.1 days
  • Top authors: maurolopes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /748 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.35ms] Passed 4 tests

An overview of server-side resources used by Bulk Edit for Learndash
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.10 ▲2.88
Dashboard /wp-admin3.31 ▼0.0351.70 ▼17.12
Posts /wp-admin/edit.php3.37 ▲0.0151.94 ▼0.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.92 ▼18.28
Media Library /wp-admin/upload.php3.24 ▲0.0136.87 ▲3.23
Bulk Edit /wp-admin/admin.php?page=learndash-bulk-edit3.1834.06

Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Bulk Edit for Learndash: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.621.78 ▲0.1544.61 ▲2.61
Dashboard /wp-admin2,198 ▲185.57 ▼0.0284.38 ▼8.2441.18 ▼0.12
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0435.71 ▼1.0533.33 ▲0.71
Add New Post /wp-admin/post-new.php1,528 ▼723.31 ▲5.09626.50 ▼29.9549.01 ▼43.24
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.1197.67 ▼6.0541.73 ▼8.01
Bulk Edit /wp-admin/admin.php?page=learndash-bulk-edit9082.0124.3734.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=learndash-bulk-edit
    • > Notice in wp-content/plugins/bulk-edit-for-learndash/includes/functions.php+79
    Trying to get property 'term_id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=learndash-bulk-edit
    • > Notice in wp-content/plugins/bulk-edit-for-learndash/includes/functions.php+79
    Trying to get property 'name' of non-object

SRP 50% from 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
Please fix the following items
  • 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/bulk-edit-for-learndash/admin/trbe-settings.php:13

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 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 require attention:
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

bulk-edit-for-learndash/learndash-bulk-edit.php 85% from 13 tests

The main file in "Bulk Edit for Learndash" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-edit-for-learndash.php" instead of "learndash-bulk-edit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin604 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34732341
CSS1202170
JavaScript16865
PO File16928

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.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
There were not PNG files found in your plugin