90% woo-upload-bulk-files

Code Review | Bulk Upload Downloadable File

WordPress plugin Bulk Upload Downloadable File scored90%from 54 tests.

About plugin

  • Plugin page: woo-upload-bulk-f...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Jun 13, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: jawadpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.75ms] Passed 4 tests

This is a short check of server-side resources used by Bulk Upload Downloadable File
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.04 ▲0.14
Dashboard /wp-admin3.31 ▲0.0153.99 ▼1.47
Posts /wp-admin/edit.php3.36 ▲0.0051.25 ▼2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.70 ▼6.91
Media Library /wp-admin/upload.php3.23 ▲0.0039.92 ▲1.96

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Upload Downloadable File
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.43 ▲0.071.89 ▼0.4943.86 ▼0.62
Dashboard /wp-admin2,211 ▲264.88 ▼0.97102.53 ▼14.9640.17 ▼1.47
Posts /wp-admin/edit.php2,091 ▲22.04 ▼0.0136.90 ▼1.1535.01 ▼0.97
Add New Post /wp-admin/post-new.php1,530 ▼323.34 ▲0.14636.29 ▼41.3754.89 ▼6.37
Media Library /wp-admin/upload.php1,387 ▲24.22 ▲0.0398.98 ▼4.2340.97 ▼1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: bulk, woocommerce, downloadable file, upload

woo-upload-bulk-files/woo-bulk-upload-files.php 92% from 13 tests

The principal PHP file in "Bulk Upload Downloadable File" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-upload-bulk-files.php" instead of "woo-bulk-upload-files.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript116854
PHP1888

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin