84% media-library-helper

Code Review | Bulk edit image alt tag, caption & description - WordPress Media Library Helper by Codexin

WordPress plugin Bulk edit image alt tag, caption & description - WordPress Media Library Helper by Codexin scored84%from 54 tests.

About plugin

  • Plugin page: media-library-helper
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6.39+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Sep 20, 2023
  • Number of updates: 16
  • Update frequency: every 60.9 days
  • Top authors: cxntech (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

10,000+ active /87,269 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.01ms] Passed 4 tests

Analyzing server-side resources used by Bulk edit image alt tag, caption & description - WordPress Media Library Helper by Codexin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2542.30 ▲5.32
Dashboard /wp-admin3.60 ▲0.2650.12 ▼8.16
Posts /wp-admin/edit.php3.66 ▲0.3045.35 ▼1.97
Add New Post /wp-admin/post-new.php6.12 ▲0.2489.77 ▼11.23
Media Library /wp-admin/upload.php3.57 ▲0.3437.44 ▲6.31

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk edit image alt tag, caption & description - WordPress Media Library Helper by Codexin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.371.70 ▲0.1244.59 ▲2.14
Dashboard /wp-admin2,198 ▲205.61 ▲0.0493.94 ▼5.9144.72 ▲4.61
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0336.74 ▲2.2933.91 ▼4.48
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.30577.88 ▼76.1344.01 ▼12.48
Media Library /wp-admin/upload.php1,426 ▲294.57 ▲0.3697.49 ▼4.4441.38 ▼2.01

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • cdxn_mlh_plugin_activation_time
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-media-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/media-library-helper/lib/Admin/Extended_Media_List_Table.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-library-helper/lib/Admin/Extended_Media_List_Table.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/media-library-helper/templates/extended-upload.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-media-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/media-library-helper/lib/Admin/Extended_Media_List_Table.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: seo, bulk edit, image caption, alt tag, media library

media-library-helper/media-library-helper.php Passed 13 tests

The principal PHP file in "Bulk edit image alt tag, caption & description - WordPress Media Library Helper by Codexin" v. 1.3.0 is loaded by WordPress automatically on each request
139 characters long description:
Add or edit or Bulk edit image ALT tag, caption & description with one click straight from WordPress media library to boost your SEO score.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,113 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP232999111,636
CSS2525306
JavaScript2446171

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods67
▷ Static methods710.45%
▷ Public methods6191.04%
▷ Protected methods11.49%
▷ Private methods57.46%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin