84% bulk-edit-publish-date

Code Review | Bulk edit publish date

WordPress plugin Bulk edit publish date scored84%from 54 tests.

About plugin

  • Plugin page: bulk-edit-publish...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Oct 15, 2018
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: dahousecatz (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /9,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.51ms] Passed 4 tests

This is a short check of server-side resources used by Bulk edit publish date
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.55 ▼1.92
Dashboard /wp-admin3.34 ▼0.0152.27 ▼12.18
Posts /wp-admin/edit.php3.39 ▲0.0350.16 ▼1.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.42 ▼13.18
Media Library /wp-admin/upload.php3.26 ▲0.0336.12 ▼2.76

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk edit publish date
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.24 ▼1.431.75 ▲0.0243.43 ▲0.69
Dashboard /wp-admin2,208 ▲175.85 ▲0.89112.14 ▲9.7243.83 ▼0.88
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0134.05 ▼4.1035.65 ▼3.83
Add New Post /wp-admin/post-new.php1,530 ▲223.52 ▲0.36644.50 ▼31.1653.43 ▼4.10
Media Library /wp-admin/upload.php1,387 ▲24.26 ▲0.05104.86 ▲6.7745.20 ▼1.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-publish-date/bulk-edit-publish-date.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Shows the set publish date bulk action in the drop down.), #2 (Shows setting the date using the html 5 date element type before the bulk action is applied.)
The official readme.txt might help

bulk-edit-publish-date/bulk-edit-publish-date.php Passed 13 tests

The main file in "Bulk edit publish date" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Allows bulk editing of the publish date

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
Good job! No executable or dangerous file extensions detected120 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1254165
JavaScript1172955

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.66KB8.84KB▼ 57.22%