84% dsdownloadlist

Code Review | DS.DownloadList

WordPress plugin DS.DownloadList scored 84% from 54 tests.

About plugin

  • Plugin page: dsdownloadlist
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: Jan 11, 2018
  • Number of updates: 8
  • Update frequency: every 15.0 days
  • Top authors: Daschmi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 931 total downloads

Benchmarks

Plugin footprint 83% 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.05MB] [CPU: ▼3.84ms] Passed 4 tests

Server-side resources used by DS.DownloadList
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.33 ▼6.17
Dashboard /wp-admin3.35 ▲0.0552.63 ▼6.73
Posts /wp-admin/edit.php3.40 ▲0.0554.89 ▲0.38
Add New Post /wp-admin/post-new.php5.93 ▲0.05104.56 ▲11.18
Media Library /wp-admin/upload.php3.27 ▲0.0540.46 ▼2.82

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for DS.DownloadList
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲8613.72 ▼0.685.71 ▲3.7042.90 ▲0.26
Dashboard /wp-admin2,209 ▼05.85 ▲0.99101.64 ▼16.0547.31 ▲3.99
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0542.36 ▲7.0736.33 ▲3.96
Add New Post /wp-admin/post-new.php1,534 ▲1523.23 ▼0.17618.09 ▼114.6447.87 ▼8.07
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0194.20 ▼5.9240.83 ▼6.89

Uninstaller [IO: ✅] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dsdownloadlist/dsdownloadlist.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: downloads, download, access, filelist, ajax...

dsdownloadlist/dsdownloadlist.php 92% from 13 tests

The main PHP script in "DS.DownloadList" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin275 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP612146217
JavaScript119037
CSS11021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin