78% webmaster-user-role

Code Review | Simple Client Dashboard

WordPress plugin Simple Client Dashboard scored78%from 54 tests.

About plugin

  • Plugin page: webmaster-user-role
  • Plugin version: 2.1.7.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2013
  • Latest release: Nov 25, 2023
  • Number of updates: 66
  • Update frequency: every 58.9 days
  • Top authors: tylerdigital (86.36%)croixhaug (15.15%)

Code review

54 tests

User reviews

19 reviews

Install metrics

3,000+ active /55,941 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.84MB] [CPU: ▲2.99ms] Passed 4 tests

Analyzing server-side resources used by Simple Client Dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8448.58 ▲5.75
Dashboard /wp-admin4.15 ▲0.8449.32 ▲3.12
Posts /wp-admin/edit.php4.20 ▲0.8453.88 ▲3.55
Add New Post /wp-admin/post-new.php6.77 ▲0.8891.70 ▼0.48
Media Library /wp-admin/upload.php4.07 ▲0.8439.89 ▲6.50
Simple Client Dashboard /wp-admin/options-general.php?page=simple-client-dashboard3.9935.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Client Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲714.54 ▲0.191.63 ▼0.3637.91 ▼7.62
Dashboard /wp-admin2,202 ▲225.60 ▼0.0495.77 ▲0.4244.41 ▲1.66
Posts /wp-admin/edit.php2,107 ▲101.94 ▼0.0840.14 ▼0.5535.57 ▼2.16
Add New Post /wp-admin/post-new.php1,529 ▼123.46 ▲0.32597.71 ▼36.1748.93 ▼0.57
Media Library /wp-admin/upload.php1,407 ▲44.20 ▲0.0398.69 ▲0.8042.23 ▲0.91
Simple Client Dashboard /wp-admin/options-general.php?page=simple-client-dashboard1,2365.0865.1567.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/webmaster-user-role/views/display.php
    • > /wp-content/plugins/webmaster-user-role/views/admin.php
  • 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webmaster-user-role/webmaster-user-role.php:733
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-itsec.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-table-press.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-simple-css.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/webmaster-user-role/languages/admin-app-translations.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webmaster-user-role/includes/themes/canvas-theme-module.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webmaster-user-role/includes/themes/boss-theme-module.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-draw-attention.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-ninja-forms.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SCD_Base_Module' not found in wp-content/plugins/webmaster-user-role/includes/module-business-profile.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

webmaster-user-role/webmaster-user-role.php 92% from 13 tests

"Simple Client Dashboard" version 2.1.7.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 169 characters long)

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 plugin7,033 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP571,1159344,426
SVG2001,330
PO File35325721,195
JavaScript622940
HTML20121
JSON10019
CSS2002

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.98
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes11.89%
Methods378
▷ Static methods195.03%
▷ Public methods32886.77%
▷ Protected methods61.59%
▷ Private methods4411.64%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin-app/dist/static/img/color.png10.11KB8.24KB▼ 18.50%