Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼9.91ms] Passed 4 tests
Analyzing server-side resources used by Free Downloads EDD
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 37.43 ▼0.82 |
Dashboard /wp-admin | 3.84 ▲0.49 | 46.49 ▼13.81 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 48.36 ▼2.27 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 82.40 ▼22.74 |
Media Library /wp-admin/upload.php | 3.70 ▲0.46 | 37.29 ▲1.84 |
Free Downloads /wp-admin/edit.php?post_type=download&page=download_now_dashboard | 3.51 | 28.93 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Free Downloads EDD
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.50 ▼0.85 | 8.69 ▲7.14 | 45.36 ▲3.66 |
Dashboard /wp-admin | 2,200 ▲20 | 5.68 ▲0.01 | 82.99 ▼1.83 | 36.23 ▼8.02 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.01 ▲0.01 | 32.96 ▼6.21 | 37.03 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,530 ▼1 | 23.42 ▲0.27 | 654.82 ▲3.23 | 54.42 ▲1.04 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.23 ▲0.01 | 96.14 ▼1.90 | 44.52 ▼2.36 |
Free Downloads /wp-admin/edit.php?post_type=download&page=download_now_dashboard | 28 | 0.42 | 0.07 | 3.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/free-downloads-edd/includes/somdn-file-functions.php+31
rmdir(wp-content/uploads/download-now-uploads/): Directory not empty
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=download&page=download_now_dashboard
- > Network (severe)
wp-admin/edit.php?post_type=download&page=download_now_dashboard - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
free-downloads-edd/som-free-downloads-edd.php 92% from 13 tests
The primary PHP file in "Free Downloads EDD" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("free-downloads-edd.php" instead of "som-free-downloads-edd.php")
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 plugin3,744 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,245 | 432 | 2,975 |
CSS | 4 | 38 | 15 | 699 |
JavaScript | 2 | 19 | 16 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 176 | |
▷ Named functions | 176 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 1.70MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
edd-files/images/somdn_edd_download_count.png | 8.17KB | 5.29KB | ▼ 35.25% |
assets/images/logo-white.png | 1.12KB | 0.12KB | ▼ 88.89% |
edd-files/images/somdn_edd_02.png | 374.00KB | 95.92KB | ▼ 74.35% |
assets/images/multi-4.png | 5.91KB | 3.74KB | ▼ 36.71% |
assets/images/multi-5.png | 5.84KB | 3.73KB | ▼ 36.14% |