84% dashi

Code Review | Dashi

WordPress plugin Dashi scored84%from 54 tests.

About plugin

  • Plugin page: dashi
  • Plugin version: 3.0.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2017
  • Latest release: Jul 10, 2023
  • Number of updates: 190
  • Update frequency: every 12.1 days
  • Top authors: jidaikobo (99.47%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,801 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.28MB] [CPU: ▲20.61ms] Passed 4 tests

Analyzing server-side resources used by Dashi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.82 ▲1.3665.46 ▲21.49
Dashboard /wp-admin4.63 ▲1.3282.40 ▲28.23
Posts /wp-admin/edit.php4.66 ▲1.3071.25 ▲21.30
Add New Post /wp-admin/post-new.php7.21 ▲1.32107.99 ▲14.06
Media Library /wp-admin/upload.php4.43 ▲1.2063.71 ▲25.59
Page Part /wp-admin/edit.php?post_type=pagepart4.5259.14
add Page Part /wp-admin/post-new.php?post_type=pagepart4.7469.24
Dashi Framework /wp-admin/options-general.php?page=dashi_options4.5258.79

Server storage [IO: ▲0.45MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • You have illegally modified 1 file (0.01KB) outside of "wp-content/plugins/dashi/" and "wp-content/uploads/"
    • (new file) wp-content/dashi_uploads/.htaccess
Filesystem: 66 new files
Database: no new tables, 29 new options
New WordPress options
dashi_utility_pages_are_ok
dashi_enrich_search_result_page
dashi_do_environmental_check
dashi_sitemap_depth_of_page
widget_recent-comments
dashi_show_wp_version
theysaidso_admin_options
dashi_development_diable_field_cache
dashi_remove_host_at_upload_file
dashi_auto_update_theme
...

Browser metrics Passed 4 tests

Dashi: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,130 ▲36914.00 ▼0.2713.50 ▲11.6932.90 ▼13.17
Dashboard /wp-admin2,397 ▲2175.71 ▲0.0390.12 ▲0.0145.60 ▼0.16
Posts /wp-admin/edit.php2,145 ▲421.99 ▼0.0433.81 ▼11.6136.24 ▼1.46
Add New Post /wp-admin/post-new.php1,560 ▲3223.20 ▼0.04647.98 ▲2.5157.76 ▲3.41
Media Library /wp-admin/upload.php1,439 ▲394.20 ▲0.07109.02 ▼2.2149.17 ▲2.59
Page Part /wp-admin/edit.php?post_type=pagepart1,1822.1640.0032.44
add Page Part /wp-admin/post-new.php?post_type=pagepart2,3497.92173.4364.67
Dashi Framework /wp-admin/options-general.php?page=dashi_options1,0812.0024.5138.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 29 options in the database
    • dashi_development_mode
    • dashi_show_csv_export_dashboard
    • dashi_alert_acl
    • dashi_activate_pagepart
    • dashi_show_wp_version
    • widget_recent-comments
    • dashi_remove_host_at_upload_file
    • dashi_alert_fileacl
    • dashi_public_form_done_sendmail
    • dashi_do_environmental_check
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dashi/dashi.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Session' not found in wp-content/plugins/dashi/classes/Posttype/Session.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Posttype\\Base' not found in wp-content/plugins/dashi/posttype/Crawlsearch.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Posttype\\Base' not found in wp-content/plugins/dashi/posttype/Pagepart.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/dashi/templates/base.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Validation' not found in wp-content/plugins/dashi/classes/Posttype/Validation.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Input' not found in wp-content/plugins/dashi/classes/Posttype/Input.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/dashi/templates/search.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Posttype\\Base' not found in wp-content/plugins/dashi/posttype/Editablehelp.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Dashi\\Core\\Field' not found in wp-content/plugins/dashi/classes/Posttype/Field.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: framework, custom field, plugin, custom, meta...

dashi/dashi.php 92% from 13 tests

The principal PHP file in "Dashi" v. 3.0.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)

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
No dangerous file extensions were detected10,442 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PHP501,2352,4857,226
JavaScript73954522,495
PO File122612436
CSS44524282
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity28.52
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity5.55
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces3
Interfaces0
Traits3
Classes43
▷ Abstract classes12.33%
▷ Concrete classes4297.67%
▷ Final classes00.00%
Methods284
▷ Static methods284100.00%
▷ Public methods21073.94%
▷ Protected methods20.70%
▷ Private methods7225.35%
Functions57
▷ Named functions00.00%
▷ Anonymous functions57100.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png11.49KB10.60KB▼ 7.72%