83% m1downloadlist

Code Review | m1.DownloadList

WordPress plugin m1.DownloadList scored83%from 54 tests.

About plugin

  • Plugin page: m1downloadlist
  • Plugin version: 0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2015
  • Latest release: Jul 31, 2023
  • Number of updates: 53
  • Update frequency: every 54.5 days
  • Top authors: maennchen1.de (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

500+ active /12,924 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests

Server-side resources used by m1.DownloadList
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.71 ▼2.94
Dashboard /wp-admin3.31 ▲0.0045.07 ▼3.71
Posts /wp-admin/edit.php3.36 ▲0.0047.56 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.41 ▲7.28
Media Library /wp-admin/upload.php3.23 ▲0.0033.04 ▼0.74

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for m1.DownloadList
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.73 ▼0.681.90 ▲0.0539.68 ▼5.52
Dashboard /wp-admin2,206 ▲184.89 ▲0.03110.25 ▼7.0338.80 ▼6.58
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.93 ▲1.2735.50 ▼0.15
Add New Post /wp-admin/post-new.php1,533 ▼023.29 ▲0.28580.64 ▼194.4653.27 ▼1.62
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0295.05 ▼13.8942.59 ▼5.74

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/m1downloadlist/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (place the shortcode in your post), #2 (display the directory listing)
The official readme.txt might help

m1downloadlist/index.php 92% from 13 tests

The main PHP file in "m1.DownloadList" ver. 0.18 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("m1downloadlist.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin322 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17546240
PO File2121278
CSS1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity7.00
▷ Minimum method complexity7.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes1100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png38.86KB12.16KB▼ 68.70%
screenshot-1.png47.25KB16.63KB▼ 64.81%