Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼291.97ms] Passed 4 tests
Analyzing server-side resources used by Easy Digital Downloads - Related Downloads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 58.45 ▲8.45 |
Dashboard /wp-admin | 3.43 ▲0.03 | 33.17 ▲1.51 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.55 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 94.02 ▼1,170.22 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.45 ▼2.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_edd_related_downloads_widget |
Browser metrics Passed 4 tests
Easy Digital Downloads - Related Downloads: 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,763 ▲9 | 15.98 ▲0.38 | 5.95 ▲0.10 | 2.41 ▲0.01 |
Dashboard /wp-admin | 2,895 ▲37 | 6.15 ▼0.02 | 116.51 ▼16.70 | 153.68 ▼8.48 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.00 | 61.72 ▼2.41 | 138.69 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,752 ▲119 | 21.75 ▲2.49 | 464.67 ▲85.67 | 156.25 ▼2.79 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▲0.02 | 143.75 ▼0.55 | 185.62 ▼5.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_edd_related_downloads_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-digital-downloads-related-downloads/edd-related-downloads.php:41
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-digital-downloads-related-downloads/widget-edd-related.php:10
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tested up to: Invalid plugin version format
easy-digital-downloads-related-downloads/edd-related-downloads.php 77% from 13 tests
The primary PHP file in "Easy Digital Downloads - Related Downloads" version 1.7.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("easy-digital-downloads-related-downloads.php" instead of "edd-related-downloads.php")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected246 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 58 | 245 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin