78% bulk-images-to-posts

Code Review | Bulk Images to Posts

WordPress plugin Bulk Images to Posts scored78%from 54 tests.

About plugin

  • Plugin page: bulk-images-to-posts
  • Plugin version: 3.6.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Feb 28, 2019
  • Number of updates: 78
  • Update frequency: every 18.1 days
  • Top authors: mezzaninegold (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /16,658 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.06MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by Bulk Images to Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0553.96 ▲10.66
Dashboard /wp-admin3.37 ▲0.0649.59 ▼3.21
Posts /wp-admin/edit.php3.42 ▲0.0650.31 ▼5.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0699.93 ▼5.22
Media Library /wp-admin/upload.php3.29 ▲0.0638.90 ▲4.57
Settings /wp-admin/admin.php?page=bip-settings-page3.2637.25
Uploader /wp-admin/admin.php?page=bulk-images-to-post3.2733.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Images to Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.33 ▼1.041.95 ▼0.3747.99 ▲3.51
Dashboard /wp-admin2,252 ▲674.86 ▼1.0298.96 ▼2.0943.51 ▲2.08
Posts /wp-admin/edit.php2,132 ▲432.01 ▼0.0435.65 ▼6.3535.36 ▼8.62
Add New Post /wp-admin/post-new.php1,567 ▲5323.11 ▲1.45633.41 ▼77.5459.87 ▲5.63
Media Library /wp-admin/upload.php1,431 ▲464.30 ▲0.12101.27 ▲2.7043.48 ▼0.38
Settings /wp-admin/admin.php?page=bip-settings-page1,0701.9945.3129.50
Uploader /wp-admin/admin.php?page=bulk-images-to-post9162.0431.6031.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 everything seems fine, this is not 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 items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-images-to-posts/bulk-images-to-posts.php:16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-images-to-posts/includes/bip-category-walker.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-images-to-posts/includes/bip-category-walker.php on line 3
    • > 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-images-to-posts/includes/bip-category-walker.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-images-to-posts/includes/bip-dropzone.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=bip-settings-page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: Invalid dropzone element.
    • > GET request to /wp-admin/admin.php?page=bulk-images-to-post
    • > Javascript (severe) in unknown
    /wp-content/plugins/bulk-images-to-posts/js/dropzone.js?ver=6.3.1 433:14 Uncaught Error: No URL provided.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
You can take inspiration from this readme.txt

bulk-images-to-posts/bulk-images-to-posts.php Passed 13 tests

"Bulk Images to Posts" version 3.6.6.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Bulk upload images to automatically create posts / custom posts with featured images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,669 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2119571,639
CSS32338503
PHP46650341
PO File26062173
Markdown112013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
No PNG files were detected