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.00MB] [CPU: ▼6.64ms] Passed 4 tests
Server-side resources used by Download List with Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.07 ▼0.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.28 ▼11.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.01 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.27 ▼13.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.37 ▲0.20 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Download List with Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.74 ▼0.01 | 1.66 ▲0.04 | 42.28 ▼1.82 |
Dashboard /wp-admin | 2,192 ▲12 | 5.59 ▲0.01 | 91.38 ▼6.68 | 41.80 ▼1.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 38.77 ▲2.07 | 35.57 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▼0.48 | 634.15 ▼2.55 | 51.99 ▲3.29 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▲0.03 | 95.11 ▼17.76 | 42.25 ▼5.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/download-list-block-with-icons/templates/list-end.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'downloadlist\\Iconset_Base' not found in wp-content/plugins/download-list-block-with-icons/classes/iconsets/class-dashicons.php:18
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/download-list-block-with-icons/inc/admin.php on line 201
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-list-block-with-icons/inc/iconsets/customset.php:20
- > PHP Fatal error
Uncaught Error: Class 'downloadlist\\Iconset_Base' not found in wp-content/plugins/download-list-block-with-icons/classes/iconsets/class-bootstrap.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/download-list-block-with-icons/templates/list-start.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-list-block-with-icons/inc/iconsets/bootstrap.php:20
- > PHP Fatal error
Uncaught Error: Class 'downloadlist\\Iconset_Base' not found in wp-content/plugins/download-list-block-with-icons/classes/iconsets/class-fontawesome.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-list-block-with-icons/inc/iconsets/dashicons.php:20
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/download-list-block-with-icons/classes/class-iconsets.php on line 85
- > PHP Notice
Undefined variable: wrapper_attributes in wp-content/plugins/download-list-block-with-icons/templates/list-start.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: block, list, icons, download
download-list-block-with-icons/download-list-block-with-icons.php 92% from 13 tests
"Download List with Icons" version 3.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "8.0")
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
There were no executable files found in this plugin15,101 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 5,064 | 19 | 12,931 |
PHP | 25 | 390 | 1,329 | 1,948 |
PO File | 1 | 48 | 57 | 114 |
JSON | 4 | 0 | 0 | 82 |
JavaScript | 2 | 2 | 2 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 13 | 13.27% |
▷ Public methods | 77 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 21.43% |
Functions | 39 | |
▷ Named functions | 37 | 94.87% |
▷ Anonymous functions | 2 | 5.13% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gfx/dl_icon.png | 0.71KB | 0.29KB | ▼ 58.34% |