78% dash-effortless-digital-asset-management

Code Review | Dash Effortless Digital Asset Management

WordPress plugin Dash Effortless Digital Asset Management scored78%from 54 tests.

About plugin

  • Plugin page: dash-effortless-d...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Oct 19, 2023
  • Number of updates: 24
  • Update frequency: every 23.4 days
  • Top authors: brightminded (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,327 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼0.23ms] Passed 4 tests

A check of server-side resources used by Dash Effortless Digital Asset Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3644.57 ▲3.96
Dashboard /wp-admin3.67 ▲0.3253.42 ▼9.20
Posts /wp-admin/edit.php3.72 ▲0.3648.90 ▲0.63
Add New Post /wp-admin/post-new.php6.20 ▲0.3097.42 ▲3.67
Media Library /wp-admin/upload.php3.54 ▲0.3046.60 ▲11.08

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 10 new options
New WordPress options
dash_access_token
dash_client_subdomain
dash_client_secret
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
dash_client_id
widget_recent-comments

Browser metrics Passed 4 tests

Dash Effortless Digital Asset Management: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲24719.64 ▲5.285.62 ▲4.0844.07 ▲1.47
Dashboard /wp-admin2,320 ▲1439.44 ▲3.78215.38 ▲126.6336.33 ▼6.78
Posts /wp-admin/edit.php2,215 ▲1339.24 ▲7.2375.45 ▲37.3433.96 ▼1.88
Add New Post /wp-admin/post-new.php1,715 ▲18721.89 ▼1.28532.12 ▼165.3337.20 ▼14.20
Media Library /wp-admin/upload.php1,609 ▲21211.07 ▲6.89145.24 ▲44.9247.12 ▲2.82

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/dash-effortless-digital-asset-management/admin/partials/dash-effortless-digital-asset-management-admin-button-display.php
    • > /wp-content/plugins/dash-effortless-digital-asset-management/public/partials/dash-effortless-digital-asset-management-public-display.php
  • 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dash-effortless-digital-asset-management/admin/partials/dash-effortless-digital-asset-management-admin-display.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/dash-effortless-digital-asset-management/vendor/guzzlehttp/promises/src/RejectedPromise.php:11

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, 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
3 plugin tags: images, dash, media

dash-effortless-digital-asset-management/dash-effortless-digital-asset-management.php 92% from 13 tests

Analyzing the main PHP file in "Dash Effortless Digital Asset Management" version 1.3.1
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)

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
No dangerous file extensions were detected32,171 lines of code in 208 files:
LanguageFilesBlank linesComment linesLines of code
JSON161017,048
PHP1662,9277,90210,908
Markdown161,23703,609
JavaScript4267102517
CSS28851
XML10019
make1409
YAML1007
Bourne Shell1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces18
Interfaces30
Traits10
Classes102
▷ Abstract classes21.96%
▷ Concrete classes10098.04%
▷ Final classes3434.00%
Methods934
▷ Static methods15516.60%
▷ Public methods74379.55%
▷ Protected methods586.21%
▷ Private methods13314.24%
Functions128
▷ Named functions3728.91%
▷ Anonymous functions9171.09%
Constants87
▷ Global constants1618.39%
▷ Class constants7181.61%
▷ Public constants6084.51%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin