56% bulk-edit-post-titles

Code Review | Bulk Edit Post Titles

WordPress plugin Bulk Edit Post Titles scored56%from 54 tests.

About plugin

  • Plugin page: bulk-edit-post-ti...
  • Plugin version: 5.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 30, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 18
  • Update frequency: every 96.8 days
  • Top authors: pawaryogesh1989 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /55,685 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.93MB] [CPU: ▼36.94ms] Passed 4 tests

A check of server-side resources used by Bulk Edit Post Titles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.84 ▲5.17
Dashboard /wp-admin3.03 ▼0.3221.66 ▼39.55
Posts /wp-admin/edit.php3.03 ▼0.3322.04 ▼22.87
Add New Post /wp-admin/post-new.php3.03 ▼2.8622.81 ▼77.78
Media Library /wp-admin/upload.php3.03 ▼0.2126.84 ▼7.54
Bulk Edit Settings /wp-admin/tools.php?page=bulk-edit-settings3.0321.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Edit Post Titles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.55 ▲0.181.69 ▲0.1237.52 ▼3.01
Dashboard /wp-admin2,209 ▲325.60 ▲0.0480.12 ▼9.0035.71 ▼2.12
Posts /wp-admin/edit.php2,132 ▲352.07 ▲0.1236.41 ▲1.4035.15 ▲0.16
Add New Post /wp-admin/post-new.php1,691 ▲16322.42 ▼0.64645.76 ▼22.3251.87 ▼20.22
Media Library /wp-admin/upload.php1,419 ▲224.28 ▲0.13107.80 ▲9.4148.21 ▲1.25
Bulk Edit Settings /wp-admin/tools.php?page=bulk-edit-settings9512.2045.5070.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=bulk-edit-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bulk-edit-post-titles/bulk-edit-titles.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-edit-post-titles/views/bulk-edit-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/bulk-edit-post-titles/views/edit-bulk-titles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bulk-edit-post-titles/classes/class.bulk.titles.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/tools.php?page=bulk-edit-settings
    • > Network (severe)
    wp-content/plugins/bulk-edit-post-titles/assets/fonts/glyphicons-halflings-regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=bulk-edit-settings
    • > Network (severe)
    wp-content/plugins/bulk-edit-post-titles/assets/fonts/glyphicons-halflings-regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=bulk-edit-settings
    • > Network (severe)
    wp-content/plugins/bulk-edit-post-titles/assets/fonts/glyphicons-halflings-regular.ttf - Failed to load resource: the server responded with a status of 404 (Not 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
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

bulk-edit-post-titles/bulk-edit-titles.php 85% from 13 tests

The principal PHP file in "Bulk Edit Post Titles" v. 5.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-edit-post-titles.php" instead of "bulk-edit-titles.php")

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
No dangerous file extensions were detected714 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript38532381
PHP45356218
CSS3178115

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin