84% dashly

Code Review | Dashly

WordPress plugin Dashly scored84%from 54 tests.

About plugin

  • Plugin page: dashly
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Nov 29, 2022
  • Number of updates: 11
  • Update frequency: every 126.8 days
  • Top authors: dashlyapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,281 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.70ms] Passed 4 tests

Analyzing server-side resources used by Dashly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1346.66 ▲6.09
Dashboard /wp-admin3.42 ▲0.0747.23 ▼11.78
Posts /wp-admin/edit.php3.53 ▲0.1744.77 ▼4.04
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.64 ▼7.50
Media Library /wp-admin/upload.php3.34 ▲0.1136.13 ▲0.51
Dashly /wp-admin/plugins.php?page=dashly3.3329.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options
dashly_api_key
widget_recent-comments
dashly_auth_key
db_upgraded
theysaidso_admin_options
can_compress_scripts
dashly_auth
widget_recent-posts
dashly_api_secret
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashly
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▲0.081.83 ▲0.2946.85 ▲7.50
Dashboard /wp-admin2,199 ▲255.63 ▲0.0593.43 ▲5.6841.99 ▲1.87
Posts /wp-admin/edit.php2,101 ▲11.94 ▼0.0233.64 ▼5.3836.09 ▼7.29
Add New Post /wp-admin/post-new.php1,541 ▲1318.37 ▼4.84607.35 ▼43.8473.51 ▲22.85
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0199.01 ▼1.8241.43 ▼6.04
Dashly /wp-admin/plugins.php?page=dashly8692.0424.1239.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • dashly_auth
    • dashly_api_secret
    • widget_theysaidso_widget
    • db_upgraded
    • dashly_api_key
    • can_compress_scripts
    • widget_recent-posts
    • dashly_auth_key
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dashly/dashly.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/dashly/options.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: customer tracking, live chat, lead collection, chatbot, abandoned carts...

dashly/dashly.php 92% from 13 tests

The main PHP script in "Dashly" version 2.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin706 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP495177663
PO File1101043

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity51.50
▷ Minimum class complexity15.00
▷ Maximum class complexity88.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods24100.00%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
There were not PNG files found in your plugin