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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 31.31 ▲5.18 |
Dashboard /wp-admin | 3.10 ▲0.05 | 43.38 ▲12.93 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 40.54 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 93.12 ▼1,140.55 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲77 | 15.92 ▲0.02 | 7.12 ▼1.59 | 49.26 ▲1.66 |
Dashboard /wp-admin | 2,943 ▲90 | 6.19 ▲0.35 | 141.01 ▼7.82 | 108.49 ▲13.94 |
Posts /wp-admin/edit.php | 2,716 ▲10 | 2.70 ▲0.00 | 65.00 ▼2.28 | 85.15 ▼6.67 |
Add New Post /wp-admin/post-new.php | 3,674 ▼33 | 20.96 ▲5.71 | 419.92 ▼26.44 | 104.27 ▼12.89 |
Media Library /wp-admin/upload.php | 1,782 ▲7 | 5.02 ▼0.01 | 143.16 ▼8.08 | 108.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 21 | 24 | 328 |
PHP | 4 | 86 | 89 | 225 |
JavaScript | 2 | 6 | 4 | 53 |
SVG | 1 | 1 | 3 | 33 |
PO File | 1 | 3 | 3 | 26 |
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 code | 0.46 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/grabbing.png | 0.11KB | 0.14KB | 0.00% |