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.34MB] [CPU: ▼1.13ms] Passed 4 tests
Server-side resources used by Z-Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 41.24 ▲0.18 |
Dashboard /wp-admin | 3.67 ▲0.37 | 54.25 ▲8.89 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 45.48 ▼2.85 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 92.71 ▼7.03 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 42.14 ▲5.18 |
Help /wp-admin/admin.php?page=z-downloads-help | 3.75 | 33.90 |
Z-Downloads /wp-admin/admin.php?page=z-downloads | 3.64 | 39.47 |
Archives /wp-admin/admin.php?page=z-downloads-ziparchive | 3.95 | 34.08 |
Create archive /wp-admin/admin.php?page=z-downloads-add-archive | 3.59 | 33.91 |
Settings /wp-admin/admin.php?page=z-downloads-settings | 3.82 | 31.54 |
Premium /wp-admin/admin.php?page=z-downloads-premium | 3.59 | 32.28 |
Add file /wp-admin/admin.php?page=z-downloads-add-file | 3.54 | 32.70 |
Files /wp-admin/admin.php?page=z-downloads-files | 4.03 | 31.18 |
Logs /wp-admin/admin.php?page=z-downloads-log | 3.59 | 33.29 |
Server storage [IO: ▲0.60MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_zdm_archives |
wp_zdm_log |
wp_zdm_files_rel |
wp_zdm_files |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
zdm_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Z-Downloads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲231 | 14.21 ▼0.16 | 1.56 ▼0.08 | 43.38 ▲1.02 |
Dashboard /wp-admin | 2,392 ▲215 | 5.66 ▲0.08 | 85.74 ▼0.71 | 52.95 ▲10.79 |
Posts /wp-admin/edit.php | 2,201 ▲101 | 2.17 ▲0.18 | 36.99 ▲2.71 | 37.58 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,610 ▲79 | 18.25 ▼5.07 | 671.40 ▲40.26 | 69.67 ▲17.42 |
Media Library /wp-admin/upload.php | 1,498 ▲98 | 4.22 ▲0.03 | 110.87 ▲11.01 | 55.00 ▲14.81 |
Help /wp-admin/admin.php?page=z-downloads-help | 1,097 | 1.80 | 31.19 | 74.01 |
Z-Downloads /wp-admin/admin.php?page=z-downloads | 1,289 | 1.70 | 30.63 | 50.96 |
Archives /wp-admin/admin.php?page=z-downloads-ziparchive | 1,122 | 1.98 | 26.85 | 39.80 |
Create archive /wp-admin/admin.php?page=z-downloads-add-archive | 1,160 | 1.87 | 25.95 | 65.72 |
Settings /wp-admin/admin.php?page=z-downloads-settings | 1,990 | 1.83 | 28.64 | 80.55 |
Premium /wp-admin/admin.php?page=z-downloads-premium | 1,382 | 1.84 | 26.24 | 40.50 |
Add file /wp-admin/admin.php?page=z-downloads-add-file | 1,148 | 1.87 | 27.03 | 44.05 |
Files /wp-admin/admin.php?page=z-downloads-files | 1,116 | 1.84 | 26.70 | 35.45 |
Logs /wp-admin/admin.php?page=z-downloads-log | 1,104 | 1.82 | 26.19 | 36.67 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=z-downloads-add-archive
- > Notice in wp-content/plugins/z-downloads/templates/admin_menu_add_archive.php+152
Undefined index: name
- > GET request to /wp-admin/admin.php?page=z-downloads-add-archive
- > Notice in wp-content/plugins/z-downloads/templates/admin_menu_add_archive.php+159
Undefined index: zip-name
- > GET request to /wp-admin/admin.php?page=z-downloads-add-archive
- > Notice in wp-content/plugins/z-downloads/templates/admin_menu_add_archive.php+216
Undefined index: description
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=z-downloads-log
- > Notice in wp-content/plugins/z-downloads/templates/admin_hidden_log.php+198
Undefined variable: zdm_log_filter_type
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ZDMCore' not found in wp-content/plugins/z-downloads/templates/admin_dashboard_widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
z-downloads/z-downloads.php 92% from 13 tests
"Z-Downloads" version 1.11.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected9,013 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,071 | 864 | 6,821 |
PO File | 1 | 517 | 743 | 1,451 |
CSS | 4 | 116 | 73 | 741 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 35 | 55.56% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 36 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 4.27KB | 1.99KB | ▼ 53.51% |
assets/z-downloads-premium-backend-mini.png | 5.09KB | 4.17KB | ▼ 18.19% |