90% bbpress-multi-image-uploader

Code Review | bbPress Multi Image Uploader

WordPress plugin bbPress Multi Image Uploader scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-multi-ima...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 24, 2015
  • Latest release: Apr 20, 2018
  • Number of updates: 15
  • Update frequency: every 68.7 days
  • Top authors: ankit.gade@rtcamp.com (73.33%)wpgurudev (33.33%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /9,673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.16ms] Passed 4 tests

Analyzing server-side resources used by bbPress Multi Image Uploader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.71 ▲1.01
Dashboard /wp-admin3.32 ▲0.0149.44 ▼4.26
Posts /wp-admin/edit.php3.37 ▲0.0148.00 ▼5.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.66 ▼11.64
Media Library /wp-admin/upload.php3.24 ▲0.0137.09 ▲3.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Multi Image Uploader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.71 ▼0.051.81 ▼0.2946.15 ▲2.92
Dashboard /wp-admin2,195 ▲185.65 ▲0.0294.43 ▼5.1938.14 ▼10.08
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0139.76 ▼1.4832.40 ▼4.07
Add New Post /wp-admin/post-new.php1,540 ▲823.37 ▲0.01683.17 ▲65.1653.25 ▲1.62
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.03100.51 ▼2.6746.78 ▲1.00

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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
6 plugin tags: upload, bbpress, attachments, bbpress media upload, bbpress attachments...

bbpress-multi-image-uploader/bbp-multi-file-uploader.php 92% from 13 tests

The main PHP script in "bbPress Multi Image Uploader" version 1.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-multi-image-uploader.php" instead of "bbp-multi-file-uploader.php")

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
There were no executable files found in this plugin463 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7187216386
JavaScript1292369
CSS1008

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions19
▷ Named functions1789.47%
▷ Anonymous functions210.53%
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
There were not PNG files found in your plugin