84% wpdm-elementor

Code Review | Download Manager Addons for Elementor

WordPress plugin Download Manager Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: wpdm-elementor
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Jul 6, 2023
  • Number of updates: 28
  • Update frequency: every 36.0 days
  • Top authors: codename065 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /65,425 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.02MB] [CPU: ▼3.30ms] Passed 4 tests

An overview of server-side resources used by Download Manager Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0249.73 ▲10.26
Dashboard /wp-admin3.33 ▲0.0346.57 ▼0.36
Posts /wp-admin/edit.php3.38 ▲0.0246.93 ▲4.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.01 ▼16.48
Media Library /wp-admin/upload.php3.25 ▲0.0231.29 ▼1.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Download Manager Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.191.64 ▼0.0438.26 ▼1.25
Dashboard /wp-admin2,192 ▲155.51 ▼0.1683.75 ▼4.7536.31 ▼8.56
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1233.65 ▼0.3037.23 ▲1.59
Add New Post /wp-admin/post-new.php1,526 ▼023.62 ▼0.03682.77 ▲12.5558.40 ▲2.95
Media Library /wp-admin/upload.php1,394 ▼34.22 ▲0.0496.78 ▼2.6943.01 ▲0.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/DirectLinkWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/CategoryWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/FrontendWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/PackagesWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/UserDashboardWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/UserProfileWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/AllPackagesWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/AllPackagesWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpdm-elementor/src/widgets/SearchResultWidget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPDM\\Elementor\\API\\add_action() in wp-content/plugins/wpdm-elementor/src/api/API.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

wpdm-elementor/wpdm-elementor.php Passed 13 tests

The principal PHP file in "Download Manager Addons for Elementor" v. 1.2.4 is loaded by WordPress automatically on each request
37 characters long description:
Download Manger modules for Elementor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,463 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP183821991,463

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.07
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods82
▷ Static methods22.44%
▷ Public methods5668.29%
▷ Protected methods2429.27%
▷ Private methods22.44%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin