78% download-list-block-with-icons

Code Review | Download List with Icons

WordPress plugin Download List with Icons scored78%from 54 tests.

About plugin

  • Plugin page: download-list-blo...
  • Plugin version: 3.2.4
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 15, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 44
  • Update frequency: every 15.4 days
  • Top authors: threadi (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,925 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.07 ▼0.49
Dashboard /wp-admin3.31 ▲0.0043.28 ▼11.59
Posts /wp-admin/edit.php3.36 ▲0.0049.01 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.27 ▼13.70
Media Library /wp-admin/upload.php3.23 ▲0.0034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.74 ▼0.011.66 ▲0.0442.28 ▼1.82
Dashboard /wp-admin2,192 ▲125.59 ▲0.0191.38 ▼6.6841.80 ▼1.54
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0438.77 ▲2.0735.57 ▼3.64
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.48634.15 ▼2.5551.99 ▲3.29
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0395.11 ▼17.7642.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS65,0641912,931
PHP253901,3291,948
PO File14857114
JSON40082
JavaScript22226

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 code0.24
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods98
▷ Static methods1313.27%
▷ Public methods7778.57%
▷ Protected methods00.00%
▷ Private methods2121.43%
Functions39
▷ Named functions3794.87%
▷ Anonymous functions25.13%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
FileSize - originalSize - compressedSavings
gfx/dl_icon.png0.71KB0.29KB▼ 58.34%