79% data-dash

Code Review | Data Dash

WordPress plugin Data Dash scored79%from 54 tests.

About plugin

  • Plugin page: data-dash
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 7, 2015
  • Latest release: Oct 12, 2018
  • Number of updates: 13
  • Update frequency: every 105.7 days
  • Top authors: think201 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,341 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.14MB] [CPU: ▼2.06ms] Passed 4 tests

This is a short check of server-side resources used by Data Dash
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1446.01 ▲3.91
Dashboard /wp-admin3.45 ▲0.1457.40 ▲5.34
Posts /wp-admin/edit.php3.56 ▲0.2053.50 ▲3.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1487.54 ▼18.98
Media Library /wp-admin/upload.php3.37 ▲0.1440.23 ▲3.70
Update Counter /wp-admin/admin.php?page=dd-update-counter3.3434.00
Dashboard /wp-admin/admin.php?page=data-dash3.3434.69
Data Counter /wp-admin/admin.php?page=dd-data-counter3.3442.34
Create Counter /wp-admin/admin.php?page=dd-create-counter3.3434.31

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: 1 new table, 6 new options
New tables
wp_dd_counters
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Data Dash
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲15213.66 ▼0.936.44 ▲4.4642.86 ▼1.48
Dashboard /wp-admin2,233 ▲454.78 ▼1.12102.12 ▼4.9942.63 ▼5.60
Posts /wp-admin/edit.php2,116 ▲272.02 ▲0.0141.56 ▲2.6235.02 ▼5.12
Add New Post /wp-admin/post-new.php1,554 ▲2122.37 ▼0.95657.38 ▼24.9845.34 ▼8.51
Media Library /wp-admin/upload.php1,415 ▲364.14 ▼0.07110.74 ▲11.5447.48 ▲4.70
Update Counter /wp-admin/admin.php?page=dd-update-counter1,5862.2929.6028.91
Dashboard /wp-admin/admin.php?page=data-dash8382.2024.8229.59
Data Counter /wp-admin/admin.php?page=dd-data-counter9642.0831.4035.62
Create Counter /wp-admin/admin.php?page=dd-create-counter9242.1326.6928.20

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/data-dash/pages/user-footer.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-create-counter.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/data-dash/includes/dd-shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-update-counter.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DataDash\\add_action() in wp-content/plugins/data-dash/includes/user-post-requests.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'DDData' not found in wp-content/plugins/data-dash/pages/admin-data-counter.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DataDash\\add_action() in wp-content/plugins/data-dash/includes/post-requests.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-dashboard.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: data dash, counter, website counter

data-dash/data-dash.php Passed 13 tests

"Data Dash" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Data dash allows you to create dynamic counters for your website pages.

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
Good job! No executable or dangerous file extensions detected1,817 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP18252891,032
JavaScript526756525
Sass3300149
CSS110111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods54
▷ Static methods2750.00%
▷ Public methods5398.15%
▷ Protected methods00.00%
▷ Private methods11.85%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin