Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲4.85ms] Passed 4 tests
This is a short check of server-side resources used by Lana Downloads Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 58.33 ▲13.62 |
Dashboard /wp-admin | 3.77 ▲0.43 | 57.95 ▼3.60 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 63.96 ▲17.82 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 96.95 ▼1.17 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 45.23 ▲10.56 |
Settings /wp-admin/edit.php?post_type=lana_download&page=lana-downloads-manager-settings | 3.61 | 48.02 |
Add New /wp-admin/post-new.php?post_type=lana_download | 3.82 | 58.86 |
All Downloads /wp-admin/edit.php?post_type=lana_download | 3.76 | 60.11 |
Categories /wp-admin/edit-tags.php?taxonomy=lana_download_category&post_type=lana_download | 3.76 | 48.40 |
Server storage [IO: ▲0.17MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_lana_downloads_manager_logs |
New WordPress options |
---|
widget_recent-posts |
lana_downloads_manager_post_type |
db_upgraded |
widget_lana_download |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Lana Downloads Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲228 | 14.60 ▲0.20 | 2.22 ▲0.17 | 44.14 ▲0.48 |
Dashboard /wp-admin | 2,378 ▲201 | 6.16 ▲0.54 | 114.65 ▲12.72 | 39.48 ▼4.51 |
Posts /wp-admin/edit.php | 2,303 ▲203 | 3.38 ▲1.37 | 55.12 ▲15.02 | 34.81 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.36 ▲5.13 | 581.27 ▼74.08 | 32.43 ▼36.90 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.10 ▼0.12 | 78.29 ▼18.10 | 41.17 ▼1.14 |
Settings /wp-admin/edit.php?post_type=lana_download&page=lana-downloads-manager-settings | 1,358 | 3.03 | 41.90 | 56.72 |
Add New /wp-admin/post-new.php?post_type=lana_download | 2,450 | 7.58 | 191.01 | 73.07 |
All Downloads /wp-admin/edit.php?post_type=lana_download | 1,351 | 3.29 | 46.97 | 32.06 |
Categories /wp-admin/edit-tags.php?taxonomy=lana_download_category&post_type=lana_download | 1,477 | 3.15 | 40.80 | 31.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_lana_downloads_manager_logs
- Zombie WordPress options were found after uninstall: 8 options
- lana_downloads_manager_post_type
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_lana_download
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-downloads-manager/includes/class-lana-download-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-downloads-manager/includes/class-lana-downloads-manager-logs-list-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: file manager, download, download counter, download manager
lana-downloads-manager/lana-downloads-manager.php Passed 13 tests
The principal PHP file in "Lana Downloads Manager" v. 1.8.2 is loaded by WordPress automatically on each request
39 characters long description:
Downloads Manager with counter and log.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,136 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 529 | 695 | 1,755 |
JSON | 1 | 0 | 0 | 1,205 |
JavaScript | 2 | 28 | 4 | 118 |
CSS | 2 | 12 | 0 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 61 | 96.83% |
▷ Anonymous functions | 2 | 3.17% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-header.png | 28.91KB | 29.86KB | 0.00% |