84% bulk-datetime-change

Code Review | Bulk Datetime Change

WordPress plugin Bulk Datetime Change scored84%from 54 tests.

About plugin

  • Plugin page: bulk-datetime-change
  • Plugin version: 1.16
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 3, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 44
  • Update frequency: every 24.0 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

7,000+ active /33,187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by Bulk Datetime Change
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2038.35 ▼3.16
Dashboard /wp-admin3.51 ▲0.2048.56 ▲0.62
Posts /wp-admin/edit.php3.62 ▲0.2645.88 ▲5.33
Add New Post /wp-admin/post-new.php6.09 ▲0.2078.83 ▼17.22
Media Library /wp-admin/upload.php3.43 ▲0.2036.84 ▲3.48
Bulk Datetime Change /wp-admin/admin.php?page=bulkdatetimechange3.4538.74
Settings /wp-admin/admin.php?page=bulkdatetimechange-settings3.4130.10

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Bulk Datetime Change: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.35 ▲0.001.68 ▼0.1344.85 ▲1.55
Dashboard /wp-admin2,222 ▲415.55 ▼0.0686.68 ▼13.7844.18 ▼0.79
Posts /wp-admin/edit.php2,124 ▲242.00 ▲0.0332.74 ▼8.2633.83 ▼3.69
Add New Post /wp-admin/post-new.php1,548 ▲1723.15 ▲0.03656.03 ▲43.5456.12 ▲5.18
Media Library /wp-admin/upload.php1,427 ▲304.16 ▲0.0099.02 ▲1.3441.54 ▲0.71
Bulk Datetime Change /wp-admin/admin.php?page=bulkdatetimechange3,4372.6248.1127.72
Settings /wp-admin/admin.php?page=bulkdatetimechange-settings9982.2428.2025.38

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-datetime-change/lib/class-bulkdatetimechange.php:50
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-datetime-change/lib/class-tt-bulkdatetimechange-list-table.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-datetime-change/lib/class-tt-bulkdatetimechange-list-table.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-datetime-change/lib/class-bulkdatetimechangeadmin.php:36
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-datetime-change/lib/class-tt-bulkdatetimechange-list-table.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-datetime-change/lib/class-bulkdatetimechange.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: time, date, media, pages, posts

bulk-datetime-change/bulkdatetimechange.php 92% from 13 tests

The main PHP script in "Bulk Datetime Change" version 1.16 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bulk-datetime-change.php" instead of "bulkdatetimechange.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,800 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3187771,282
PHP51263281,151
CSS291367

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity53.33
▷ Minimum class complexity42.00
▷ Maximum class complexity74.00
Average method complexity7.18
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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