79% onedash

Code Review | OneDash

WordPress plugin OneDash scored79%from 54 tests.

About plugin

  • Plugin page: onedash
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3.13+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2020
  • Latest release: Jan 20, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: vexdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /369 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.23MB] [CPU: ▼49.69ms] Passed 4 tests

This is a short check of server-side resources used by OneDash
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.68 ▼30.41
Dashboard /wp-admin2.78 ▼0.5316.14 ▼36.55
Posts /wp-admin/edit.php2.78 ▼0.5820.48 ▼31.23
Add New Post /wp-admin/post-new.php2.78 ▼3.1115.23 ▼100.55
Media Library /wp-admin/upload.php2.78 ▼0.4515.43 ▼21.52

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for OneDash
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.121.64 ▼0.5241.96 ▼2.64
Dashboard /wp-admin2,195 ▲185.65 ▲0.1096.22 ▲5.8843.90 ▲0.21
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0440.20 ▲4.0934.58 ▼1.21
Add New Post /wp-admin/post-new.php1,539 ▼623.09 ▼0.18668.36 ▲27.9451.11 ▼4.54
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.0598.82 ▲0.6640.79 ▼5.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/onedash/plugin.php+69
    include(wp-content/plugins/onedash/lib/js/index.asset.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

onedash/plugin.php 85% from 13 tests

This is the main PHP file of "OneDash" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("onedash.php" instead of "plugin.php")

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
No dangerous file extensions were detected74 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2242657
CSS13014
JavaScript2043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.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
No PNG files were detected