79% client-dash

Code Review | Client Dash

WordPress plugin Client Dash scored 79% from 54 tests.

About plugin

  • Plugin page: client-dash
  • Plugin version: 2.1.6
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Apr 29, 2014
  • Latest release: Mar 24, 2022
  • Number of updates: 151
  • Update frequency: every 19.1 days
  • Top authors: joelworsham (57.62%)BrashRebel (25.17%)d4mation (18.54%)

Code review

54 tests

User reviews

43 reviews

Install metrics

5,000+ active / 132,808 total downloads

Benchmarks

Plugin footprint 65% 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.77MB] [CPU: ▼290.24ms] Passed 4 tests

An overview of server-side resources used by Client Dash
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8268.60 ▲10.82
Dashboard /wp-admin4.18 ▲0.7744.65 ▲4.97
Posts /wp-admin/edit.php4.41 ▲0.7646.68 ▲1.60
Add New Post /wp-admin/post-new.php7.71 ▲0.73109.13 ▼1,172.29
Media Library /wp-admin/upload.php4.13 ▲0.8330.57 ▲4.75

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 182 new files
Database: 1 new table, 1 new option
New tables
wp_cd_customizations
New WordPress options
clientdash_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Client Dash
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲7016.87 ▲1.305.69 ▼0.952.11 ▲0.06
Dashboard /wp-admin2,944 ▲837.13 ▲0.96128.65 ▼7.28161.35 ▲0.97
Posts /wp-admin/edit.php2,740 ▲463.65 ▲0.2973.06 ▲7.30143.19 ▼0.19
Add New Post /wp-admin/post-new.php1,742 ▲8119.81 ▲3.47401.32 ▼30.07170.09 ▲22.87
Media Library /wp-admin/upload.php1,747 ▲496.17 ▲0.64132.65 ▼13.07202.46 ▲15.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_cd_customizations
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • clientdash_db_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #6, #7 in client-dash/assets to your readme.txt
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Client Dash" version 2.1.6
54 characters long description:
Creating a more intuitive admin interface for clients.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected20,769 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript282,7331,10410,532
PHP942,1324,4465,656
SVG2002,683
Sass25286111,608
JSON100225
Markdown28034
CSS66731

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.05
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes410.26%
▷ Concrete classes3589.74%
▷ Final classes12.86%
Methods264
▷ Static methods9636.36%
▷ Public methods22484.85%
▷ Protected methods31.14%
▷ Private methods3714.02%
Functions71
▷ Named functions6895.77%
▷ Anonymous functions34.23%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.42MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/cd-pro-logo.png24.09KB7.63KB▼ 68.31%
assets/static/screenshot-customize-admin-page.png468.49KB124.72KB▼ 73.38%
assets/dist/images/tutorial-editor.png23.63KB9.79KB▼ 58.60%
assets/static/screenshot-customize-dashboard.png325.79KB94.23KB▼ 71.08%
assets/static/banner.png180.92KB64.38KB▼ 64.42%