Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.01ms] Passed 4 tests
A check of server-side resources used by Easy Download
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 37.85 ▼7.45 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.33 ▼3.31 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.94 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.29 ▼10.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.60 ▲5.63 |
Add Form /wp-admin/admin.php?page=easy-download-form | 3.31 | 34.88 |
Settings /wp-admin/admin.php?page=easy-download-options | 3.32 | 33.59 |
Links /wp-admin/admin.php?page=easy-download-links | 3.31 | 34.06 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_downloads |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
_easy_download_options |
theysaidso_admin_options |
can_compress_scripts |
_easy_download_links |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Download
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.28 ▼1.07 | 1.77 ▼0.02 | 41.64 ▼1.08 |
Dashboard /wp-admin | 2,239 ▲57 | 5.80 ▼0.04 | 97.20 ▼5.68 | 39.68 ▼0.75 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 2.02 ▲0.02 | 39.82 ▲3.05 | 34.93 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 23.34 ▲5.91 | 674.43 ▲6.68 | 56.65 ▲10.42 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.20 ▲0.02 | 100.62 ▲6.02 | 42.49 ▼1.55 |
Add Form /wp-admin/admin.php?page=easy-download-form | 880 | 1.91 | 36.68 | 50.11 |
Settings /wp-admin/admin.php?page=easy-download-options | 912 | 1.91 | 36.32 | 46.30 |
Links /wp-admin/admin.php?page=easy-download-links | 1,081 | 2.53 | 52.70 | 54.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=easy-download-links
- > Warning in wp-content/plugins/easy-download/admin/partials/easy-download-admin-links.php+38
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-download/admin/partials/easy-download-admin-links.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-download/admin/partials/easy-download-admin-form.php:14
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/easy-download/admin/partials/easy-download-admin-options.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (A general view of the plugin "options" page.), #2 (The form allowing you to add a new download link.), #3 (The table regrouping all the links that can be downloaded from your site.)
easy-download/easy-download.php 92% from 13 tests
The main PHP file in "Easy Download" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
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
Everything looks great! No dangerous files found in this plugin1,670 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 118 | 44 | 739 |
PHP | 14 | 95 | 446 | 714 |
JavaScript | 3 | 2 | 0 | 217 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 61.30KB | 16.79KB | ▼ 72.60% |
screenshot-1.png | 68.16KB | 18.68KB | ▼ 72.60% |
screenshot-3.png | 90.09KB | 25.83KB | ▼ 71.33% |