73% bulk-image-title-attribute

Code Review | Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)

WordPress plugin Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO) scored73%from 54 tests.

About plugin

  • Plugin page: bulk-image-title-...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Aug 24, 2023
  • Number of updates: 52
  • Update frequency: every 29.2 days
  • Top authors: pagup (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /21,652 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲5.43MB] [CPU: ▲23.57ms] 75% from 4 tests

This is a short check of server-side resources used by Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.43MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.26 ▲5.8068.07 ▲29.86
Dashboard /wp-admin9.28 ▲5.9870.49 ▲18.91
Posts /wp-admin/edit.php9.28 ▲5.9278.56 ▲31.64
Add New Post /wp-admin/post-new.php9.93 ▲4.04108.90 ▲14.36
Media Library /wp-admin/upload.php9.28 ▲6.0566.03 ▲31.15
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2855.57

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 233 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
widget_recent-comments
db_upgraded
theysaidso_admin_options
fs_debug_mode
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.35 ▼0.322.19 ▲0.0927.33 ▼14.27
Dashboard /wp-admin2,229 ▲525.59 ▼0.0198.39 ▲13.6347.17 ▲3.07
Posts /wp-admin/edit.php2,138 ▲412.04 ▲0.0234.45 ▲0.5935.63 ▼0.63
Add New Post /wp-admin/post-new.php6,290 ▲4,76426.17 ▲2.44817.09 ▲123.7055.29 ▲5.11
Media Library /wp-admin/upload.php1,437 ▲344.26 ▲0.0597.05 ▲1.9045.98 ▲1.78
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1021.7424.2629.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bulk-image-title-attribute/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • fs_active_plugins
    • fs_debug_mode
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Pagup\\Bigta\\Controllers\\add_filter() in wp-content/plugins/bulk-image-title-attribute/app/controllers/DomController.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Pagup\\Bigta\\Controllers\\add_action() in wp-content/plugins/bulk-image-title-attribute/app/controllers/MetaboxController.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bulk-image-title-attribute/app/views/layout/top.view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-title-attribute/app/views/promo/robot.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Pagup\\Bigta\\Core\\Plugin' not found in wp-content/plugins/bulk-image-title-attribute/app/controllers/NoticeController.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/bulk-image-title-attribute/app/views/notices/support.view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bulk-image-title-attribute/app/views/layout/top.view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-title-attribute/app/views/promo/vidseo.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bulk-image-title-attribute/app/views/metabox.view.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Pagup\\Bigta\\Controllers\\MetaboxController' not found in wp-content/plugins/bulk-image-title-attribute/app/Settings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
4 plugin tags: google images, title attribute, title tag, image title

bulk-image-title-attribute/bulk-image-title-attribute.php 85% from 13 tests

"Bulk Auto Image Title Attribute (Image Title tag) optimizer (Image SEO)" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis 97% from 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 detected35,816 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1488,31017,56435,022
CSS142513541
JavaScript54862244
JSON2009

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity74.05
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes62
▷ Abstract classes23.23%
▷ Concrete classes6096.77%
▷ Final classes00.00%
Methods1,325
▷ Static methods21716.38%
▷ Public methods93570.57%
▷ Protected methods171.28%
▷ Private methods37328.15%
Functions103
▷ Named functions10299.03%
▷ Anonymous functions10.97%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/assets/imgs/p01.png7.72KB4.95KB▼ 35.87%
app/assets/imgs/p09.png6.65KB3.68KB▼ 44.60%
app/assets/imgs/meta-box.png134.27KB38.03KB▼ 71.68%
app/assets/imgs/p02.png2.50KB0.65KB▼ 74.01%
app/assets/imgs/5.png28.95KB8.79KB▼ 69.64%