89% clust-client-portal

Code Review | Clustdoc Client portal – Onboard anyone from WP

WordPress plugin Clustdoc Client portal – Onboard anyone from WP scored89%from 54 tests.

About plugin

  • Plugin page: clust-client-portal
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2019
  • Latest release: Nov 4, 2021
  • Number of updates: 22
  • Update frequency: every 43.3 days
  • Top authors: clusttech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,088 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.03ms] Passed 4 tests

Server-side resources used by Clustdoc Client portal – Onboard anyone from WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.07 ▼4.10
Dashboard /wp-admin3.34 ▲0.0447.58 ▼6.23
Posts /wp-admin/edit.php3.45 ▲0.1053.07 ▼2.09
Add New Post /wp-admin/post-new.php5.92 ▲0.03105.83 ▲8.13
Media Library /wp-admin/upload.php3.26 ▲0.0338.31 ▲4.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Clustdoc Client portal – Onboard anyone from WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.24 ▼1.131.71 ▼0.0542.43 ▲1.02
Dashboard /wp-admin2,206 ▲185.80 ▼0.07100.87 ▼4.0279.17 ▲35.67
Posts /wp-admin/edit.php2,110 ▲211.97 ▼0.0641.13 ▲3.6037.73 ▲3.28
Add New Post /wp-admin/post-new.php6,195 ▲4,66219.46 ▼3.82894.60 ▲209.7237.42 ▼14.54
Media Library /wp-admin/upload.php1,397 ▲64.17 ▼0.0399.24 ▼3.7447.45 ▲1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: client onboarding, receive client applications, clustdoc, document collection, client portal

clust-client-portal/clustdoc-client-portal.php 85% from 13 tests

This is the main PHP file of "Clustdoc Client portal – Onboard anyone from WP" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("clust-client-portal.php" instead of "clustdoc-client-portal.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected465 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24327309
PO File1273080
JavaScript26676

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods960.00%
▷ Protected methods00.00%
▷ Private methods640.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.33MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/clust-icon.png1.49KB0.87KB▼ 41.33%
images/clustdoc-icon.png1.49KB0.87KB▼ 41.33%
images/menu-icon.png1.33KB0.78KB▼ 41.53%
images/settings-screenshot.png334.77KB111.89KB▼ 66.58%