Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.52ms] Passed 4 tests
A check of server-side resources used by Secure Downloads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.40 ▼4.49 |
Dashboard /wp-admin | 3.54 ▲0.24 | 44.99 ▲0.60 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.93 ▼1.53 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.70 ▼4.67 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.07 ▲0.93 |
Settings /wp-admin/admin.php?page=opsd-settings | 3.49 | 43.17 |
Secure Links /wp-admin/admin.php?page=opsd | 3.46 | 39.66 |
Files /wp-admin/admin.php?page=opsd-files | 3.42 | 37.76 |
Server storage [IO: ▲2.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 30 new options
New WordPress options |
---|
opsd_defualt_expiration |
opsd_csv_separator |
opsd_user_role_settings |
can_compress_scripts |
opsd_products_csv |
opsd_url_download_expired |
opsd_url_file_not_exist |
theysaidso_admin_options |
opsd_email_link_user |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Secure Downloads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲252 | 14.04 ▼0.61 | 5.40 ▲3.71 | 41.85 ▼1.00 |
Dashboard /wp-admin | 2,274 ▲89 | 5.82 ▼0.08 | 98.60 ▼1.12 | 38.01 ▼6.23 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.03 ▼0.02 | 39.73 ▲1.30 | 33.93 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 17.81 ▼0.60 | 675.69 ▲38.70 | 51.03 ▲0.24 |
Media Library /wp-admin/upload.php | 1,454 ▲69 | 4.31 ▲0.09 | 101.32 ▼2.99 | 44.51 ▲0.99 |
Settings /wp-admin/admin.php?page=opsd-settings | 2,345 | 3.62 | 54.54 | 57.17 |
Secure Links /wp-admin/admin.php?page=opsd | 1,600 | 3.68 | 51.16 | 51.21 |
Files /wp-admin/admin.php?page=opsd-files | 1,394 | 3.56 | 46.97 | 56.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 30 options in the database
- opsd_url_ip_not_valied
- opsd_download_url_path
- opsd_version_num
- opsd_url_download_expired
- opsd_date_format
- widget_recent-posts
- widget_recent-comments
- opsd_user_role_settings
- opsd_url_wrong_hash
- opsd_email_download_notification
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/secure-downloads/index.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'OPSD_JS_CSS' not found in wp-content/plugins/secure-downloads/core/opsd-css.php:14
- > PHP Fatal error
Uncaught Error: Class 'OPSD_JS_CSS' not found in wp-content/plugins/secure-downloads/core/opsd-js.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
secure-downloads/index.php 92% from 13 tests
The primary PHP file in "Secure Downloads" version 1.2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("secure-downloads.php" instead of "index.php")
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 detected24,464 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 4,237 | 5,435 | 11,605 |
CSS | 17 | 127 | 382 | 10,387 |
JavaScript | 7 | 777 | 458 | 2,184 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 5 | 17.86% |
▷ Concrete classes | 23 | 82.14% |
▷ Final classes | 3 | 13.04% |
Methods | 243 | |
▷ Static methods | 41 | 16.87% |
▷ Public methods | 222 | 91.36% |
▷ Protected methods | 2 | 0.82% |
▷ Private methods | 19 | 7.82% |
Functions | 196 | |
▷ Named functions | 196 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 32 | 96.97% |
▷ Class constants | 1 | 3.03% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in 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/img/icon-16x16.png | 0.24KB | 0.23KB | ▼ 5.71% |