99% edd-product-slider

Code Review | Easy Digital Downloads Product Slider

WordPress plugin Easy Digital Downloads Product Slider scored 99% from 53 tests.

About plugin

  • Plugin page: edd-product-slider
  • Plugin version: 1.07
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.2
  • WordPress version: 5.8.1
  • First release: Dec 11, 2014
  • Latest release: Feb 23, 2021
  • Number of updates: 16
  • Update frequency: every 141.8 days
  • Top authors: wpbean (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

200+ active / 7,319 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.04MB] [CPU: ▼285.92ms] Passed 4 tests

A check of server-side resources used by Easy Digital Downloads Product Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0431.31 ▲5.18
Dashboard /wp-admin3.10 ▲0.0543.38 ▲12.93
Posts /wp-admin/edit.php3.15 ▲0.0540.54 ▲0.62
Add New Post /wp-admin/post-new.php5.46 ▲0.0393.12 ▼1,140.55
Media Library /wp-admin/upload.php3.04 ▲0.0429.38 ▼8.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy Digital Downloads Product Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲7715.92 ▲0.027.12 ▼1.5949.26 ▲1.66
Dashboard /wp-admin2,943 ▲906.19 ▲0.35141.01 ▼7.82108.49 ▲13.94
Posts /wp-admin/edit.php2,716 ▲102.70 ▲0.0065.00 ▼2.2885.15 ▼6.67
Add New Post /wp-admin/post-new.php3,674 ▼3320.96 ▲5.71419.92 ▼26.44104.27 ▼12.89
Media Library /wp-admin/upload.php1,782 ▲75.02 ▼0.01143.16 ▼8.08108.33 ▼13.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: slider plugin, owl carousel, easy digital downloads slider plugin, easy digital downloads product, edd slider plugin

edd-product-slider/main.php 85% from 13 tests

The primary PHP file in "Easy Digital Downloads Product Slider" version 1.07 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("edd-product-slider.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin665 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS22124328
PHP48689225
JavaScript26453
SVG11333
PO File13326

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icons/grabbing.png0.11KB0.14KB0.00%