84% bulk-change-media-author

Code Review | Bulk Change Media Author

WordPress plugin Bulk Change Media Author scored84%from 54 tests.

About plugin

  • Plugin page: bulk-change-media...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Aug 31, 2023
  • Number of updates: 7
  • Update frequency: every 340.7 days
  • Top authors: mikhno (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /6,450 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼7.65ms] Passed 4 tests

This is a short check of server-side resources used by Bulk Change Media Author
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.18 ▼6.32
Dashboard /wp-admin3.33 ▼0.0143.18 ▼13.22
Posts /wp-admin/edit.php3.39 ▲0.0343.74 ▼1.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.60 ▼9.23
Media Library /wp-admin/upload.php3.26 ▲0.0333.11 ▲0.20
/wp-admin/admin.php?page=bulk-change-media-author-edit-page3.2232.66

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bulk Change Media Author
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.151.64 ▼0.0238.33 ▼0.90
Dashboard /wp-admin2,206 ▲145.89 ▲0.92109.80 ▲1.7742.56 ▲0.90
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0341.58 ▲1.0134.86 ▼2.52
Add New Post /wp-admin/post-new.php1,543 ▲2418.47 ▼4.59603.20 ▼65.2759.52 ▲3.87
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.02100.28 ▲5.9241.49 ▼6.96
/wp-admin/admin.php?page=bulk-change-media-author-edit-page7982.0523.7925.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bulk-change-media-author/bulk-change-media-author.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: author, upload, change, media, bulk...

bulk-change-media-author/bulk-change-media-author.php Passed 13 tests

The primary PHP file in "Bulk Change Media Author" version 1.3.2 is used by WordPress to initiate all plugin functionality
73 characters long description:
This simple plugin allows you to bulk change author for your media items.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin310 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11915166
PO File34242144

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin