84% astra-bulk-edit

Code Review | Astra Bulk Edit

WordPress plugin Astra Bulk Edit scored84%from 54 tests.

About plugin

  • Plugin page: astra-bulk-edit
  • Plugin version: 1.2.8
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: Sep 22, 2023
  • Number of updates: 35
  • Update frequency: every 61.1 days
  • Top authors: brainstormworg (48.57%)Nikschavan (45.71%)patilvikasj (11.43%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70,000+ active /613,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Astra Bulk Edit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.32 ▲1.28
Dashboard /wp-admin3.31 ▼0.0444.29 ▼14.52
Posts /wp-admin/edit.php3.36 ▲0.0042.89 ▼5.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.99 ▼20.07
Media Library /wp-admin/upload.php3.23 ▲0.0034.10 ▼0.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Astra Bulk Edit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.101.70 ▼0.0243.94 ▲3.85
Dashboard /wp-admin2,209 ▲204.87 ▼0.0399.78 ▼13.2937.41 ▼6.82
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0234.61 ▼7.4831.14 ▼5.11
Add New Post /wp-admin/post-new.php1,533 ▼923.06 ▲5.07661.76 ▲24.9268.18 ▼0.35
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.02101.41 ▼1.5741.87 ▼1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/astra-bulk-edit/astra-bulk-edit.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/astra-bulk-edit/classes/class-astra-blk-meta-boxes-bulk-edit.php:50

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: astra meta settings, post bulk edit, wordpress bulk edit plugin, meta settings bulk edit, bulk edit astra meta settings...

astra-bulk-edit/astra-bulk-edit.php Passed 13 tests

This is the main PHP file of "Astra Bulk Edit" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Easier way to edit Astra meta options in bulk.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected703 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP295127553
JavaScript1329134
CSS13116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin