79% zen-dash

Code Review | Zen Dash

WordPress plugin Zen Dash scored79%from 54 tests.

About plugin

  • Plugin page: zen-dash
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Nov 4, 2022
  • Number of updates: 35
  • Update frequency: every 95.1 days
  • Top authors: versluis (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /3,333 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.58ms] Passed 4 tests

This is a short check of server-side resources used by Zen Dash
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.95 ▲0.16
Dashboard /wp-admin3.40 ▲0.0950.84 ▲3.66
Posts /wp-admin/edit.php3.45 ▲0.0954.87 ▲10.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.11 ▼5.81
Media Library /wp-admin/upload.php3.32 ▲0.0939.26 ▼0.34
Zen Dash /wp-admin/index.php?page=zendash3.2965.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 33 new options
New WordPress options
zendash_widget9
zendash_version
zendash_widget8
widget_recent-comments
theysaidso_admin_options
zendash_widget2
widget_recent-posts
zendash_widget5
zendash_widget7
zendash_footer_wordpress
...

Browser metrics Passed 4 tests

A check of browser resources used by Zen Dash
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲2713.33 ▼1.221.62 ▼0.2637.50 ▼7.27
Dashboard /wp-admin2,204 ▲134.87 ▼0.13102.32 ▼0.8933.23 ▼10.28
Posts /wp-admin/edit.php2,087 ▼21.99 ▲0.0139.77 ▲2.6833.05 ▲0.38
Add New Post /wp-admin/post-new.php1,532 ▼123.30 ▲0.02604.37 ▼88.7949.23 ▼2.01
Media Library /wp-admin/upload.php1,386 ▲14.33 ▲0.1397.85 ▼6.6739.94 ▼6.42
Zen Dash /wp-admin/index.php?page=zendash1,7137.86228.2297.51

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-dash/zen-dash.php:36

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/index.php?page=zendash
    • > Network (severe)
    wp-content/plugins/zen-dash/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/index.php?page=zendash
    • > Network (severe)
    wp-content/plugins/zen-dash/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/index.php?page=zendash
    • > Network (severe)
    wp-content/plugins/zen-dash/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/index.php?page=zendash
    • > Network (severe)
    wp-content/plugins/zen-dash/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: jetpack, clutter, menu item, update notifications, remove...

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

The main file in "Zen Dash" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
125 characters long description:
Disable dashbaord widgets, menu items and update notifications. Declutter your admin area with Feng Shui magic. Less is more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,964 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS166571,256
PHP2144160705
JavaScript1343

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/guru-header-2013.png33.72KB13.19KB▼ 60.90%