89% client-portal-suitedash-login

Code Review | Client Portal : SuiteDash Direct Login

WordPress plugin Client Portal : SuiteDash Direct Login scored89%from 54 tests.

About plugin

  • Plugin page: client-portal-sui...
  • Plugin version: 1.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 49
  • Update frequency: every 47.9 days
  • Top authors: suitedash (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /17,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.07ms] Passed 4 tests

This is a short check of server-side resources used by Client Portal : SuiteDash Direct Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.94 ▲1.81
Dashboard /wp-admin3.47 ▲0.1749.91 ▼3.42
Posts /wp-admin/edit.php3.58 ▲0.2350.05 ▼0.06
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.88 ▼10.39
Media Library /wp-admin/upload.php3.39 ▲0.1640.18 ▲1.61
SuiteDash Login /wp-admin/options-general.php?page=suitedash_login3.3939.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Client Portal : SuiteDash Direct Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.53 ▲0.181.91 ▼0.2041.09 ▼1.51
Dashboard /wp-admin2,202 ▲255.60 ▼0.1284.45 ▼7.8241.53 ▲0.26
Posts /wp-admin/edit.php2,101 ▲42.01 ▲0.0735.44 ▲0.1740.15 ▲2.95
Add New Post /wp-admin/post-new.php1,531 ▲323.13 ▲0.03680.16 ▲11.9152.14 ▲1.82
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0098.08 ▼4.3546.60 ▼1.55
SuiteDash Login /wp-admin/options-general.php?page=suitedash_login1,7394.1483.6930.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === client-portal-suitedash-login === )
You can look at the official readme.txt

client-portal-suitedash-login/suitedash-login.php 92% from 13 tests

The primary PHP file in "Client Portal : SuiteDash Direct Login" version 1.7.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("client-portal-suitedash-login.php" instead of "suitedash-login.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 detected941 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1235154870
JavaScript314871

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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 images were found in this plugin