89% bulk-products-to-cart-for-easy-digital-downloads

Code Review | Bulk Products to Cart for EDD

WordPress plugin Bulk Products to Cart for EDD scored89%from 54 tests.

About plugin

  • Plugin page: bulk-products-to-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2023
  • Latest release: Jun 3, 2023
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: himanshud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /91 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Bulk Products to Cart for EDD
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.45 ▼4.74
Dashboard /wp-admin3.31 ▼0.0444.18 ▼16.96
Posts /wp-admin/edit.php3.36 ▲0.0043.51 ▼5.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.26 ▼13.52
Media Library /wp-admin/upload.php3.23 ▲0.0032.99 ▼1.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Bulk Products to Cart for EDD: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.42 ▲0.171.67 ▼0.4038.69 ▼2.69
Dashboard /wp-admin2,195 ▲245.64 ▲0.1189.06 ▼17.7942.95 ▼1.11
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0338.68 ▼4.6835.71 ▼2.35
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.08630.33 ▲14.9981.13 ▲23.20
Media Library /wp-admin/upload.php1,400 ▲34.13 ▼0.0194.47 ▼9.0841.71 ▲0.67

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

bulk-products-to-cart-for-easy-digital-downloads/bulk-products-to-cart-for-edd.php 69% from 13 tests

"Bulk Products to Cart for EDD" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulk-products-to-cart-for-easy-digital-downloads.php" instead of "bulk-products-to-cart-for-edd.php")
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: The description should be shorter than 140 characters (currently 280 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,452 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP214499442,205
JavaScript33515150
CSS35397

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.62
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods6096.77%
▷ Protected methods00.00%
▷ Private methods23.23%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin